Repository navigation
Expand file tree
/
Copy pathauth_v2.html
More file actions
56 lines (52 loc) · 1.97 KB
/
Copy pathauth_v2.html
File metadata and controls
56 lines (52 loc) · 1.97 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
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CodePilot - Authentication</title>
<link rel="stylesheet" href="css/style.css">
<style>
.auth-container {
max-width: 400px;
margin: 4rem auto;
text-align: center;
}
.toggle-text {
cursor: pointer;
color: var(--primary);
text-decoration: underline;
}
</style>
</head>
<body>
<nav>
<a href="index.html" class="logo">CodePilot</a>
</nav>
<div class="auth-container card">
<h2 id="formTitle">Sign In to CodePilot</h2>
<p class="text-secondary mb-2" id="formDesc">Welcome back, let's keep that streak alive!</p>
<div id="errorMsg" style="color: var(--danger); margin-bottom: 1rem;" class="hidden"></div>
<form id="authForm">
<div class="form-group hidden" id="usernameGroup">
<label>Username</label>
<input type="text" id="username" class="form-control" placeholder="johndoe">
</div>
<div class="form-group">
<label>Email Address</label>
<input type="email" id="email" class="form-control" required placeholder="you@example.com">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" id="password" class="form-control" required placeholder="••••••••">
</div>
<button type="submit" class="btn-primary" style="width: 100%; margin-top: 1rem;">Continue</button>
</form>
<p class="mt-2 text-secondary">
<span id="toggleQuestion">Don't have an account?</span>
<span class="toggle-text" id="toggleMode">Sign up</span>
</p>
</div>
<script src="js/app.js?v=2"></script>
<script src="js/auth.js"></script>
</body>
</html>