forked from anuragverma108/WildGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.html
99 lines (87 loc) · 3.98 KB
/
register.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
<link rel="stylesheet" href="./assets/css/login.css">
<title>Register</title>
</head>
<body>
<div class="login-page">
<div class="content">
<h2>Create an account</h2>
<form class="data">
<!-- Email Field -->
<div class="entry">
<label for="email"><h3>Email</h3></label>
<div class="input-wrapper">
<input type="email" id="email" placeholder="[email protected]" required>
<div class="fa"><i class="fas fa-user"></i></div>
</div>
</div>
<!-- Password Field with Toggle Visibility -->
<div class="entry">
<label for="password"><h3>Password</h3></label>
<div class="input-wrapper">
<input type="password" id="password" placeholder="Enter your password" required>
<div class="fa toggle-password" onclick="togglePasswordVisibility('password')">
<i class="fas fa-eye"></i>
</div>
</div>
</div>
<!-- Repeat Password Field with Toggle Visibility -->
<div class="entry">
<label for="repeat-password"><h3>Re-enter Password</h3></label>
<div class="input-wrapper">
<input type="password" id="repeat-password" placeholder="Re-enter your password" required>
<div class="fa toggle-password" onclick="togglePasswordVisibility('repeat-password')">
<i class="fas fa-eye"></i>
</div>
</div>
</div>
<!-- Remember Me Checkbox & Forgot Password Link -->
<div class="extras">
<label class="remember-me">
<input type="checkbox"> Remember Me
</label>
<a href="#" class="forgot-password">Forgot Password?</a>
</div>
<!-- Sign up Button -->
<div class="entry">
<button type="submit">Sign Up</button>
</div>
<!-- Social Media Buttons -->
<div class="social-login">
<p>Or Sign up with</p>
<div class="social-buttons">
<button type="button" class="social-btn google-btn">
<img src="./assets/images/social.png" alt="Google Logo" class="google-logo"> Continue with Google
</button>
<button type="button" class="social-btn google-btn">
<img src="./assets/images/facebook.png" alt="FaceBook Logo" class="google-logo"> Continue with Facebook
</button>
</div>
</div>
<!-- Login Link -->
<p class="signup-link">Already have an account? <a href="login.html">Login</a></p>
</form>
</div>
</div>
<script>
function togglePasswordVisibility(id) {
const passwordField = document.getElementById(id);
const icon = passwordField.nextElementSibling.querySelector('i');
if (passwordField.type === 'password') {
passwordField.type = 'text';
icon.classList.remove('fa-eye');
icon.classList.add('fa-eye-slash');
} else {
passwordField.type = 'password';
icon.classList.remove('fa-eye-slash');
icon.classList.add('fa-eye');
}
}
</script>
</body>
</html>