Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button ,input and text area, Add register files and Login files #14

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

SiansandaTamara
Copy link
Collaborator

The following were implemented

  • Create a well responsive Button, input field with label and also textarea with label. The button should be reusable across the app. Please see the design for reference

@SiansandaTamara SiansandaTamara requested review from donkennie, AbonyiXavier and John-pels and removed request for donkennie and AbonyiXavier November 4, 2022 19:38
Comment on lines 22 to 47
Name
<br />
<input type="text" name="name" id="register-name" className="form-control" placeholder="Enter your name" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="email">
Email
<br />
<input type="email" name="email" id="register-email" className="form-control" placeholder="Enter your email" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="phonenumber">
Phone number
<br />
<input type="phone number" name="phone number" id="register-phone number" className="form-control" placeholder="Enter your phone number" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="Address">
Address
<br />
<input type=" Address" name=" Address" id="register-Address" className="form-control" placeholder="Enter your Address" required onChange={(e) =>
</label>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you using react syntax for the attributes?

Comment on lines 1 to 27
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/login.css" />
<title>Digit Login</title>
</head>
<body>

<form action="/action_page">
<div class="container">
<h1>Login to your account </h1>
<p>Welcome back!</p>
<hr>

<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" id="email" required>

<label for="password"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" id="password" required>

<hr>
<a href="forgot password?" class="forgot">forgot password?</a>

<button type="submit" class="registerbtn">Register</button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is meant to be a component and not a whole web page

Comment on lines 1 to 31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/reg.css" />
<title>Digit Register Page</title>
</head>
<body>

<h3>Register</h3>
<p> Enter your details to get start your track
started with us.</p>

<div class="container">
<form action="form">
<label for="name"> Name</label>
<input type="text" id="name" name="name" placeholder="Your name..">

<label for="email">Email</label>
<input type="text" id="email" name="email" placeholder="Your email..">

<label for="phone number">Phone Number</label>
<select id="phone number" name="phone number">

<label for="address">Address</label>
<input type="text" id="address" name="address" placeholder=" Your address..">

<label for="gender">Gender</label>
<input type="gender" id="gender" name="gender" placeholder=" gender..">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also meant to be a component and not a web page. Somebody has done the login page, you can check login.html and use the same layout for the register page.

Copy link
Contributor

@John-pels John-pels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The html files in the components folder shouldn't have HTML delimiters and head tag.

@John-pels you can check the latest changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants