Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions components/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!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
Copy Markdown
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

</div>

<div class="container signin">
<p> Dont have an account? <a href="#">Register here</a>.</p>
</div>
</form>

</body>
</html>
52 changes: 52 additions & 0 deletions components/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!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
Copy Markdown
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.


<label for="age range">Age Range</label>
<select id="age range" name="age range">

<label for="time dedication"><b>Time Dedication</b></label>
<input type="time dedication" id="time dedication" name="time dedication" placeholder="Time Dedication..">

<label for="employment status"><b>Employment Status</b></label>
<input type="employment status" id="employment status" name="employment status" placeholder="employment status..">

<input type="submit" value="Submit">
</form>

<p>
Already have an account?
<span><Link className="login-link" id="register-on-login" to="/login">Login</Link></span>
</p>
</div>

</body>
</html>
47 changes: 47 additions & 0 deletions css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
* {
box-sizing: border-box;
}

/* Add padding to containers */
.container {
padding: 16px;
background-color: white;
}

/* input fields */
input[type=text], input[type=password] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
display: inline-block;
border: none;
background: #f1f1f1;
}

input[type=text]:focus, input[type=password]:focus {
background-color: #ddd;
outline: none;
}


hr {
border: 1px solid #f1f1f1;
margin-bottom: 25px;
}

/* submit button */
.registerbtn {
background-color: blue;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 59%;
}

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

body {
font-family: Arial;
}

input[type=text], select {
width: 50%;
padding: 12px 20px;
margin: 8px 0;
display: block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}

input[type=submit] {
width: 10%;
background-color: blue;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 2px;
cursor: pointer;
}

input[type=submit]:hover {
background-color: blue;
}

div.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}