-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsignup.html
More file actions
50 lines (42 loc) · 1.81 KB
/
signup.html
File metadata and controls
50 lines (42 loc) · 1.81 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com; img-src 'self' data: https:; font-src 'self' data: https://cdnjs.cloudflare.com; media-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'self'; upgrade-insecure-requests">
<title>Sign Up</title>
<link rel="stylesheet" href="auth.css">
<link rel="stylesheet" href="3d-effects.css">
</head>
<body class="auth-page">
<div class="auth-container">
<form id="signupForm">
<h2>Create Account</h2>
<div class="input-group">
<input type="text" id="username" placeholder="Username" required>
</div>
<div class="input-group">
<input type="email" id="email" placeholder="Email" required>
</div>
<div class="input-group">
<input type="password" id="password" placeholder="Password" required>
<span class="toggle-password" onclick="togglePassword('password', this)">👁</span>
</div>
<div class="input-group">
<input type="password" id="confirmPassword" placeholder="Confirm Password" required>
<span class="toggle-password" onclick="togglePassword('confirmPassword', this)">👁</span>
</div>
<div class="error" id="signupError"></div>
<button type="submit">Sign Up</button>
<p>Already have account? <a href="signin.html">Sign In</a></p>
</form>
</div>
<script src="auth.js"></script>
<script src="script.js"></script>
<script>
if (hasActiveSession()) {
window.location.href = "index.html";
}
</script>
</body>
</html>