Skip to content

Commit

Permalink
Added sign up form to auth.html
Browse files Browse the repository at this point in the history
and a login.html and styleAuth.css to support the html files
  • Loading branch information
CharlesLedwaba committed Apr 4, 2024
1 parent 09c02aa commit c170ef9
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 1 deletion.
28 changes: 27 additions & 1 deletion pages/auth/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,34 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DevPost-Quiz | Authentication</title>
<link rel="stylesheet" href="styleAuth.css">
</head>
<body>

<div class = "wrapper">
<h1>Sign Up</h1>
<form action = "#">
<label for="UserName" >UserName:</label>
<input type="text" id="UserName" name="UserName" required>

<label for="email">Email:</label>
<input type="email" id="email" name="email" required>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required>

<label for="confirmPassword">Confirm Password:</label>
<input type="password" id="confirmPassword" name="confirmPassword" required>

</form>
<div class="terms">
<input type="checkbox" id="terms" name="terms" required>
<label for="terms">I agree to these <a href = "#">Terms & Conditions </a> </label>

</div>
<button type="submit">Sign Up</button>
<div class="login">
<p>Already have an account? <a href = "login.html">Login</a></p>
</div>
</div>
</body>
</html>
29 changes: 29 additions & 0 deletions pages/auth/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DevPost-Quiz | Authentication</title>
<link rel="stylesheet" href="styleAuth.css">
</head>
<body>
<div class = "wrapper">
<h1>Log in</h1>
<form action = "#">
<label for="UserName" >UserName:</label>
<input type="text" id="UserName" name="UserName" required>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<div class="recover">
<a href = "#">Forgot Password?</a>
</div>

</form>
<button type="submit">Sign Up </button>
<div class="login">
<p>No account? <a href = "./auth.html">Sign Up</a></p>
</div>
</div>
</body>
</html>
87 changes: 87 additions & 0 deletions pages/auth/styleAuth.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {

background: #dfe9ef;
}
.wrapper {
width: 230px;
padding: 2rem 1rem;
margin: 10px auto;
background: #ffffff;
border-radius: 10px;
text-align: center;
box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 2rem;
color: #000000;
margin-bottom: 1rem;
}
form input {
width: 90%;
padding: 6px 8px ;
margin: 4px 0;
border-radius: 10px;
background: #ebebeb;
border: 1px solid #000000;
outline: none;
}
button {
font-size: 1rem;
width: 50%;
padding: 8px;
margin: 8px 0;
border-radius: 10px;
background: #000000;
color: #ffffff;
border: none;
cursor: pointer;
outline: none;
}
button:hover {
background: #000000;
color: #236cf3;
}
input:focus {
border: 1px solid #236cf3;
}
.terms {
margin-top: 0.2rem;
}
.terms input {
margin-left: 0.5rem;
vertical-align: middle;
cursor: pointer;
}
.terms label {
font-size: 0.9rem;
}
.terms a {
text-decoration: none;
color: #236cf3;
}
.login{
font-size: 0.8rem;
margin-top: 1rem;
color:#636363 ;
}
.login a {
text-decoration: none;
color: #236cf3;
}
.recover {
font-size: 0.8rem;
margin: 0.5rem;
color:#636363 ;
text-decoration: none;
}
.recover a {
text-decoration: none;
color: #636363;
}

0 comments on commit c170ef9

Please sign in to comment.