-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.html
More file actions
117 lines (109 loc) · 5.18 KB
/
Copy pathauth.html
File metadata and controls
117 lines (109 loc) · 5.18 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UniClub – Sign In</title>
<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=Barlow:ital,wght@0,400;0,600;0,700;0,800;0,900;1,800&family=DM+Sans:wght@300;400;500;600&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
</head>
<body class="auth-screen" onload="initAuth()">
<!-- ===================== AUTH PAGE ===================== -->
<div id="page-auth" class="page-container active">
<div class="auth-left">
<div class="auth-brand">UniClub</div>
<div>
<div class="auth-statement">Your<br><span>campus.</span><br>Your<br>community.</div>
<p class="auth-tagline">Join 2,400+ students and faculty already discovering, connecting, and growing through
UniClub.</p>
</div>
<div class="label" style="color:rgba(255,255,255,0.4)">© UniClub 2026</div>
</div>
<div class="auth-right">
<div style="max-width:400px">
<div class="display-lg mb-6" style="margin-bottom:6px">Welcome back</div>
<p class="body-text mb-6" style="margin-bottom:24px">Sign in to discover your next club.</p>
<!-- Error Message -->
<div id="auth-error"
style="display:none; background:#FEE2E2; color:#DC2626; padding:12px 16px; border-radius:8px; font-size:0.85rem; margin-bottom:16px; border:2px solid #DC2626; font-weight:600;">
</div>
<div class="auth-tabs">
<button class="auth-tab active" onclick="switchAuthTab(this,'login')">Sign In</button>
<button class="auth-tab" onclick="switchAuthTab(this,'signup')">Sign Up</button>
</div>
<div id="auth-login">
<div class="form-group">
<label class="form-label">Email Address</label>
<input type="email" class="form-input" placeholder="you@srm.edu">
</div>
<div class="form-group">
<label class="form-label">Password</label>
<input type="password" class="form-input" placeholder="••••••••">
</div>
<button class="btn btn-primary w-full" style="justify-content:center" onclick="handleAuth('login')">Sign In
→</button>
<div style="text-align:center; margin-top:14px; font-size:0.8rem; color:var(--gray)">Don't have an account? <a
href="#" style="color:var(--blue);font-weight:600" onclick="switchAuthTabByName('signup')">Sign up</a>
</div>
<div
style="text-align:center; margin-top:20px; padding-top:16px; border-top:1px solid var(--border); font-size:0.75rem; color:var(--gray-light)">
<strong>Demo:</strong> student@demo.edu / UniClub2025!<br>
faculty@demo.edu / UniClub2025!
</div>
</div>
<div id="auth-signup" style="display:none">
<div class="form-group">
<label class="form-label">Full Name</label>
<input type="text" class="form-input" placeholder="Aarav Kumar">
</div>
<div class="form-group">
<label class="form-label">University Email</label>
<input type="email" class="form-input" placeholder="you@srm.edu">
</div>
<div class="form-group">
<label class="form-label">Password</label>
<input type="password" class="form-input" placeholder="••••••••">
</div>
<div class="form-group">
<label class="form-label">Department</label>
<input type="text" class="form-input" placeholder="e.g. Computer Science">
</div>
<div class="role-select">
<div class="role-option selected" onclick="selectRole(this)">
<span class="role-icon" aria-hidden="true">
<svg viewBox="0 0 24 24">
<path d="M22 10 12 4 2 10l10 6z" />
<path d="M6 12v5c0 1.1 2.7 2 6 2s6-.9 6-2v-5" />
</svg>
</span>
<div class="role-name">Student</div>
</div>
<div class="role-option" onclick="selectRole(this)">
<span class="role-icon" aria-hidden="true">
<svg viewBox="0 0 24 24">
<circle cx="12" cy="8" r="3" />
<path d="M5 20v-1a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v1" />
</svg>
</span>
<div class="role-name">Faculty</div>
</div>
</div>
<button class="btn btn-primary w-full" style="justify-content:center" onclick="handleAuth('signup')">Create
Account →</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="js/config.js"></script>
<script src="js/api.js"></script>
<script src="js/data.js"></script>
<script src="js/components.js"></script>
<script src="js/app.js"></script>
</body>
</html>