-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsign_up.html
53 lines (41 loc) · 2.05 KB
/
sign_up.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="sign_up.css">
<title>Sign up|Studentify</title>
</head>
<body>
<form id="signupForm" action="http://localhost:3000/signup" method="post" style="border: 1px solid #ccc">
<div class="container">
<h1 style="display: flex; justify-content:center;">Sign Up</h1>
<p style="display: flex; justify-content:center;">Please fill in this form to create an account.</p>
<hr />
<!-- Error msg display -->
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" id="email" required />
<span id="emailError" class="error-message"></span><br><br>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" id="password" required />
<span id="passwordError" class="error-message"></span><br><br>
<label for="psw-repeat"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="repeatPassword" id="repeatPassword" required />
<span id="repeatPasswordError" class="error-message"></span><br><br>
<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom: 15px" />
Remember me
</label>
<p>
By creating an account you agree to our
<a href="#" style="color: dodgerblue">Terms & Privacy</a>.
</p>
<div class="clearfix">
<button type="button" class="cancelbtn" onclick="document.getElementById('signupForm').reset()">Cancel</button>
<button type="submit" class="signupbtn">Sign Up</button>
</div>
</div>
</form>
<script src="./sign_up.js" defer></script>
</body>
</html>