-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: develop
Are you sure you want to change the base?
Conversation
components/register.html
Outdated
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"> | ||
<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> |
There was a problem hiding this comment.
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?
components/login.html
Outdated
<!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> |
There was a problem hiding this comment.
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
components/register.html
Outdated
<!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.."> |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
The following were implemented