-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (64 loc) · 2.39 KB
/
Copy pathindex.html
File metadata and controls
70 lines (64 loc) · 2.39 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Orthodontics Instruction - Login</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="theme.js"></script>
<script src="login.js"></script>
<script>
// Check if user already has a token (is logged in)
const token = localStorage.getItem("token");
if (token) {
// Has a tokeeen, redirect to modules.html
window.location.href = "modules.html";
}
</script>
</head>
<body>
<div class="login-container">
<div class="login-card">
<button id="themeToggleBtn" class="theme-toggle-btn login-theme-toggle" aria-label="Toggle theme" title="Toggle light/dark theme">
<i class="fas fa-sun theme-icon"></i>
</button>
<div class="login-header">
<h1 class="login-title">Proffit Instruction<span class="title-dot">.</span></h1>
<p class="login-subtitle">Learning Platform</p>
</div>
<form class="login-form" onsubmit="handleLogin(event)">
<div class="form-group">
<label for="username" class="form-label">Username</label>
<input
id="username"
type="text"
class="form-input"
placeholder="Enter your username"
required
autocomplete="username"
/>
</div>
<div class="form-group">
<label for="password" class="form-label">Password</label>
<input
id="password"
type="password"
class="form-input"
placeholder="Enter your password"
required
autocomplete="current-password"
/>
</div>
<button type="submit" class="login-btn" id="loginBtn">
<span class="btn-text">Log In</span>
<span class="btn-arrow">→</span>
</button>
</form>
</div>
</div>
</body>
</html>