-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
214 lines (184 loc) · 6.74 KB
/
index.html
File metadata and controls
214 lines (184 loc) · 6.74 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photon Core — Photon Studios Hub</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="Photon_Core.png">
<!-- Firebase SDKs -->
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-database-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-storage-compat.js"></script>
<!-- Secret Modal Styles -->
<link rel="stylesheet" href="secret-modal.css">
<!-- Auth Guard System (BEFORE other scripts) -->
<link rel="stylesheet" href="auth-guard.css">
<script src="members-list.js"></script>
<script src="auth-guard.js"></script>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
.auth-methods {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
max-width: 300px;
margin-top: 24px;
}
.auth-divider {
display: flex;
align-items: center;
gap: 16px;
margin: 16px 0;
color: var(--text-muted, #888);
font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border-color, #2d2d44);
}
.btn-google {
background: #fff;
color: #333;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.btn-google:hover {
background: #f5f5f5;
}
.btn-google .google-icon {
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #4285F4;
color: #fff;
font-weight: 700;
font-size: 12px;
line-height: 1;
flex-shrink: 0;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
max-width: 300px;
}
.auth-form input {
padding: 12px 16px;
border-radius: 8px;
border: 1px solid var(--border-color, #2d2d44);
background: var(--bg-tertiary, #232340);
color: var(--text-primary, #fff);
font-size: 14px;
}
.auth-form input:focus {
outline: none;
border-color: var(--primary, #6c5ce7);
}
.auth-toggle {
margin-top: 16px;
font-size: 13px;
color: var(--text-muted, #888);
}
.auth-toggle a {
color: var(--primary, #6c5ce7);
cursor: pointer;
text-decoration: none;
}
.auth-toggle a:hover {
text-decoration: underline;
}
.auth-error {
color: #ef4444;
font-size: 13px;
text-align: center;
min-height: 20px;
}
/* ... existing styles ... */
/* Spinner animation */
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Shake animation for errors */
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
/* Button disabled state */
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.btn-google:disabled {
background: #e0e0e0;
}
/* Hidden class */
.hidden {
display: none !important;
}
</style>
</head>
<body>
<div id="auth-screen" class="auth-screen">
<div class="auth-container">
<div class="auth-logo">
<div class="logo-icon">⚡</div>
<h1>Photon Core</h1>
<p>Photon Studios Internal Hub</p>
<p class="auth-note">Authorized members only — Photon Studios</p>
<p class="auth-warning">⚠️ Only registered team member emails are allowed</p>
</div>
<!-- Google Sign In (Primary) -->
<div class="auth-methods">
<button id="btn-google-signin" class="btn btn-large btn-google">
<span class="google-icon" aria-hidden="true">G</span>
Sign in with Google
</button>
</div>
<div class="auth-divider">or use email</div>
<!-- Email/Password Form -->
<form id="auth-form" class="auth-form">
<input type="email" id="auth-email" placeholder="Email" required>
<input type="password" id="auth-password" placeholder="Password" required minlength="6">
<input type="text" id="auth-username" placeholder="Display Name (for signup)" class="hidden">
<p id="auth-error" class="auth-error"></p>
<button type="submit" id="btn-email-auth" class="btn btn-primary btn-large">Sign In</button>
</form>
<p class="auth-toggle">
<span id="auth-toggle-text">Don't have an account?</span>
<a id="auth-toggle-link" onclick="toggleAuthMode()">Sign Up</a>
</p>
<p class="auth-note">Authorized members only — Photon Studios</p>
</div>
<div class="particles" id="particles"></div>
</div>
<div id="app" class="app hidden"></div>
<div id="toast-container" class="toast-container"></div>
<script src="config.js"></script>
<script src="auth.js"></script>
<script src="presence.js"></script>
<script src="discussions.js"></script>
<script src="files.js"></script>
<script src="ai.js"></script>
<script src="ui.js"></script>
<script src="boot.js"></script>
<!-- Secret Verification (AFTER other scripts) -->
<script src="secret-verify.js"></script>
</body>
</html>