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
49 changes: 49 additions & 0 deletions components/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!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>
<div class="contact-form">
<h2 class="con-title">Login to your Account</h2>
<p class="conlogin-paragraph">
Welcome back!
<div className="form-container">
<div className="login-form-container">
<form className="login-form" onSubmit={formSubmit}>
<div className="form-group">
<label htmlFor="email">
Email
<br />
<input type="email" name="email" id="signup-email" className="form-control" placeholder="Enter your email" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="password">
Password
<br />
<input type="password" name="password" id="signup-password" className="form-control" placeholder="Enter your password" required onChange={(e) =>
</label>
</div>
<a href="forgot password?" class="forgot">forgot password?</a>
<div className="signup-buttons">
<button type="submit" className="login-btn" to="/">Login</button>
</div>
</form>

<div className="notice-account">
<p>
Dont have an account?
<span><Link className="login-link" to="/register" id="login-on-signup">Register</Link></span>
</p>
</div>
</div>
</div>
</section>
</body>
</html>

97 changes: 97 additions & 0 deletions components/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!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>
<div class="contact-form">
<h2 class="con-title">Create Account</h2>
<p class="conRegist-paragraph">
Enter your details to get start your track
started with us.

<div className="form-container">
<div className="register-form-container">
<form className="register-form" onSubmit={formSubmit}>
<div className="form-group">
<label htmlFor="name">
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?

<div className="form-group">
<label htmlFor="Gender">
Gender
<br />
<input type=" gender" name=" gender" id="register-gender" className="form-control" placeholder="Enter your gender" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="Age Range">
Age Range
<br />
<input type=" Age Range" name=" Age Range" id="register-Age Range" className="form-control" placeholder="Enter your Age Range" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="Track">
Track
<br />
<input type=" Track" name=" Track" id="register-Track" className="form-control" placeholder="Enter your Track" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="Time Dedication">
Time Dedication
<br />
<input type=" Time Dedication" name=" Time Dedication" id="register-Time Dedication" className="form-control" placeholder="Enter your Time Dedication" required onChange={(e) =>
</label>
</div>
<div className="form-group">
<label htmlFor="Employment Status">
Employment Status
<br />
<input type=" Employment Status" name=" Employment Status" id="register-Employment Status" className="form-control" placeholder="Enter your Employment Status" required onChange={(e) =>
</label>
</div>
<div className="register-buttons">
<button type="submit" className="register-btn" to="/signin">Register</button>
</div>
</form>
<div className="notice-account">
<p>
Already have an account?
<span><Link className="login-link" id="register-on-login" to="/login">Login</Link></span>
</p>
</div>
</div>
</div>
</section>
</body>
</html>
36 changes: 36 additions & 0 deletions css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
*body {
padding: 12px 24px 12px 24px;
}

/* input fields */
input[type=email], input[type=password]{
width: 40%;
padding: 30px;
margin: 5px 10px 22px 10px;
display: inline-block;
border: none;
background: #f1f1f1;
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
background-color: #ddd;
outline: none;
}

/* all buttons */
button {
background-color: blue;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 45%;
}

.forgot {
padding-left: 500px;
padding-bottom: 10rem;
margin-top: 10rem;
}
32 changes: 32 additions & 0 deletions css/reg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
*body {
padding: 12px 24px 12px 24px;
}

/* input fields */
input[type=], input[type=email]{
width: 40%;
padding: 30px;
margin: 5px 10px 22px 10px;
display:inline-block;
border: none;
background: #f1f1f1;
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
background-color: #ddd;
outline: none;
}

/* all buttons */
button {
background-color: blue;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 11%;
}