-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
318 lines (275 loc) · 15.8 KB
/
index.html
File metadata and controls
318 lines (275 loc) · 15.8 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="km">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>7B2 // SIGMA ELITE</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@300;400;700&family=Moul&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
<style>
:root { --cyan: #00f2ff; --pink: #ff007f; }
body {
font-family: 'Kantumruy Pro', sans-serif;
background-color: #020205;
color: #ffffff;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
scroll-behavior: smooth;
}
.khmer-moul { font-family: 'Moul', cursive; }
.font-sigma { font-family: 'Orbitron', sans-serif; letter-spacing: 2px; }
.master-bg {
position: fixed;
inset: 0;
z-index: -1;
background: radial-gradient(circle at center, #0a0a1f 0%, #020205 100%);
}
.neon-glow {
color: #fff;
text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
animation: neonPulse 1.5s infinite alternate;
}
@keyframes neonPulse {
from { text-shadow: 0 0 5px var(--cyan), 0 0 10px var(--cyan); opacity: 0.8; }
to { text-shadow: 0 0 15px var(--cyan), 0 0 30px var(--cyan); opacity: 1; }
}
.step-screen {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
animation: slideUp 0.6s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.search-input {
width: 100%;
max-width: 400px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(0, 242, 255, 0.2);
border-radius: 12px;
padding: 15px;
color: white;
outline: none;
margin-bottom: 10px;
}
.name-box {
width: 100%;
max-width: 400px;
max-height: 250px;
overflow-y: auto;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
}
.name-row {
padding: 12px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
cursor: pointer;
transition: 0.2s;
}
.name-row:hover { background: rgba(0, 242, 255, 0.15); color: var(--cyan); }
.sigma-textarea {
width: 100%;
max-width: 400px;
height: 120px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 15px;
color: white;
resize: none;
outline: none;
}
.btn-sigma {
padding: 12px 35px;
background: var(--cyan);
color: black;
border-radius: 50px;
font-weight: 900;
cursor: pointer;
transition: 0.3s;
box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}
.btn-sigma:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--cyan); }
.skip-text {
margin-top: 20px;
opacity: 0.4;
font-size: 10px;
cursor: pointer;
text-decoration: underline;
}
.glass-card {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
padding: 20px;
}
.active-day { border-color: var(--cyan); background: rgba(0, 242, 255, 0.03); }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }
</style>
</head>
<body>
<div class="master-bg"></div>
<audio id="musMorning" loop><source src="https://files.catbox.moe/l6fo2d.mp4" type="audio/mp4"></audio>
<audio id="musAfternoon" loop><source src="https://files.catbox.moe/yluiv3.mp4" type="audio/mp4"></audio>
<audio id="sfx"><source src="https://assets.mixkit.co/active_storage/sfx/2571/2571-preview.mp3" type="audio/mpeg"></audio>
<!-- STEP 1: NAME SELECTOR -->
<div id="step1" class="step-screen">
<h2 class="khmer-moul text-2xl mb-6 neon-glow">តើអ្នកឈ្មោះអ្វី?</h2>
<input type="text" id="searchInput" class="search-input" placeholder="ស្វែងរកឈ្មោះរបស់អ្នក...">
<div id="nameList" class="name-box"></div>
<p onclick="skipToMode()" class="skip-text font-sigma">SKIP LOGIN</p>
</div>
<!-- STEP 2: THOUGHT INPUT -->
<div id="step2" class="step-screen hidden">
<h2 class="khmer-moul text-2xl mb-2 neon-glow">និយាយរឿងក្នុងចិត្ត</h2>
<p id="targetUser" class="font-sigma text-[9px] text-cyan-400 mb-6"></p>
<textarea id="thoughtInput" class="sigma-textarea" placeholder="សរសេរអ្វីម្យ៉ាង..."></textarea>
<div onclick="finishOnboarding()" class="btn-sigma mt-6 font-sigma">CONFIRM & ENTER</div>
</div>
<!-- STEP 3: MODE PICKER -->
<div id="step3" class="step-screen hidden">
<h2 class="khmer-moul text-2xl mb-10 neon-glow">ជ្រើសរើសវេនសិក្សា</h2>
<div class="flex flex-col md:flex-row gap-6 w-full max-w-xl">
<div onclick="launch('morning')" class="flex-1 p-8 bg-white/5 border border-white/10 rounded-2xl text-center cursor-pointer hover:border-cyan-400 transition-all">
<span class="text-5xl mb-4 block">🌅</span>
<h3 class="khmer-moul text-xl">ពេលព្រឹក</h3>
</div>
<div onclick="launch('afternoon')" class="flex-1 p-8 bg-white/5 border border-white/10 rounded-2xl text-center cursor-pointer hover:border-pink-500 transition-all">
<span class="text-5xl mb-4 block">☀️</span>
<h3 class="khmer-moul text-xl text-pink-500">ពេលថ្ងៃ</h3>
</div>
</div>
</div>
<!-- MAIN APP -->
<div id="mainApp" class="hidden">
<header class="p-6 max-w-6xl mx-auto flex justify-between items-center">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-cyan-600 rounded-lg flex items-center justify-center">🔱</div>
<h1 class="khmer-moul text-md">7B2 SYSTEM</h1>
</div>
<div class="text-right">
<div id="clock" class="font-sigma text-xl">00:00:00</div>
<p id="userLabel" class="text-[8px] text-cyan-400 font-sigma"></p>
</div>
</header>
<div class="px-6 max-w-6xl mx-auto">
<div class="w-full bg-white/5 border border-white/10 p-3 rounded-xl text-center mb-8">
<p id="dateLabel" class="khmer-moul text-[9px] opacity-40"></p>
</div>
<main id="grid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 pb-20"></main>
</div>
<footer class="py-20 text-center">
<p class="font-sigma text-[8px] opacity-20 tracking-[1.5em] mb-4">ENGINEERED BY</p>
<h2 class="khmer-moul text-4xl neon-glow">មាស ប៊ុណ្ណាVit</h2>
</footer>
</div>
<script>
const students = ["ខុម សុខឡាង", "ដួន លីស្រីគីម", "ចាន់ ស្រីពេជ្រ", "ច័ន្ទ អេរីហហ្សា", "ជា ឆាយលី", "ឈួន ចំណានស្រីណែ", "ដេត វឌ្ឍនា", "ឌី ដាវិត", "ណាង សុគន្ធធារី", "ភយ ឡេងហូ", "តែម ណារ៉ុង", "ថាក់ សុគន្ធកេសរ", "ធ្លាង គុជកុម្ភៈ", "ឌីង ចាន់សុខារ៉ាភីទិ", "ទុយ ដុងហុង", "ធន មុនីរាជ", "ធន ភារត", "ធឿន សីលា", "ប៉េង សត្តាមុនី", "បុណ្យ សោភា", "មាស ប៊ុណ្ណាVit", "ឫទ្ធី ពន្លឺដារ៉ា", "រស់ ម៉ាណាត", "រិន គីមអេង", "រាជសីហ៍ បញ្ចពណ៌", "រុណ បញ្ញា", "រុន ចាន់ស្រីពេជ្រ", "លី ភារា", "លី បញ្ញាលីកា", "លីន តេជោវឌ្ឍនៈ", "លីសុភៀង ខាង", "វណ្ណា សុនិតា", "វណ្ណា សុភារី", "ស៊ាង ស្រីពេជ្រ", "ស៊ាង រ៉ាលី", "សុខ រក្សា", "សុខ ហេង", "ស៊ូ សុខបញ្ញា", "សួស ស្រីនាថ", "សឿន ស៊ីថាវ៉ិត", "សោម រដ្ឋា", "សៅ ចាន់នី", "ស្រី ឡោ", "ស្រី ពេជ្រ", "ហាម ហៀងលាង", "ហ៊ឺ ហៀង", "ហ៊ួត លក្ខិណា", "ហ៊ាន ពេជ្រសុវណ្ណដារិទ្ធ", "ហុក ធីតា", "អ៊ុង កែវរត្ននា", "អ៊ុំ ចាន់វិយា", "អ៊ុង វីហា"];
const schedule = [
{ d: 'ចន្ទ (Monday)', s: ['អង់គ្លេស', 'ប្រវត្តិវិទ្យា', 'គណិតវិទ្យា', 'គណិតវិទ្យា'] },
{ d: 'អង្គារ (Tuesday)', s: ['អក្សរសាស្ត្រខ្មែរ', 'ភាសិន', 'ផែនដីវិទ្យា', 'ភូមិវិទ្យា'] },
{ d: 'ពុធ (Wednesday)', s: ['គណិតវិទ្យា', 'គណិតវិទ្យា', 'គីមីវិទ្យា', 'ជីវវិទ្យា'] },
{ d: 'ព្រហស្បតិ៍ (Thursday)', s: ['អក្សរសាស្ត្រខ្មែរ', 'អក្សរសាស្ត្រខ្មែរ', 'សីលធម៌-ពលរដ្ឋ', 'ជីវវិទ្យា'] },
{ d: 'សុក្រ (Friday)', s: ['អក្សរសាស្ត្រខ្មែរ', 'អក្សរសាស្ត្រខ្មែរ', 'សីលធម៌-ពលរដ្ឋ', 'រូបវិទ្យា'] },
{ d: 'សៅរ៍ (Saturday)', s: ['ភូមិវិទ្យា', 'គណិតវិទ្យា', 'គណិតវិទ្យា', 'អង់គ្លេស'] }
];
let currentUser = localStorage.getItem('sigma_user') || "";
let currentMode = "";
const webhook = "https://discord.com/api/webhooks/1414970670013612064/GYfrravPexHUQhXQQjD4F6w_DBaLGziKNBo6mmYlBk9vbgXtMRjtZ8BCWdh4KoPG90eu";
window.onload = () => {
if (currentUser) {
document.getElementById('step1').classList.add('hidden');
document.getElementById('step3').classList.remove('hidden');
} else {
initSearch();
}
setInterval(updateClock, 1000);
updateClock();
};
function initSearch(f = "") {
const list = document.getElementById('nameList');
list.innerHTML = "";
students.filter(n => n.includes(f)).forEach(name => {
const d = document.createElement('div');
d.className = 'name-row';
d.innerText = name;
d.onclick = () => {
currentUser = name;
document.getElementById('targetUser').innerText = `USER: ${name}`;
document.getElementById('step1').classList.add('hidden');
document.getElementById('step2').classList.remove('hidden');
};
list.appendChild(d);
});
}
document.getElementById('searchInput').oninput = (e) => initSearch(e.target.value);
async function finishOnboarding() {
const msg = document.getElementById('thoughtInput').value;
localStorage.setItem('sigma_user', currentUser);
// SEND TO DISCORD
fetch(webhook, {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ content: `**User:** [${currentUser}]\n**Message:** ${msg || "No message"}` })
}).catch(e => console.error(e));
document.getElementById('step2').classList.add('hidden');
document.getElementById('step3').classList.remove('hidden');
}
function skipToMode() {
document.getElementById('step1').classList.add('hidden');
document.getElementById('step3').classList.remove('hidden');
}
function launch(m) {
currentMode = m;
document.getElementById(m === 'morning' ? 'musMorning' : 'musAfternoon').play().catch(() => {});
document.getElementById('step3').classList.add('hidden');
document.getElementById('mainApp').classList.remove('hidden');
document.getElementById('userLabel').innerText = currentUser || "GUEST_SIGMA";
renderSchedule();
setTimeout(() => {
const active = document.querySelector('.active-day');
if (active) active.scrollIntoView({ behavior: 'smooth', block: 'center' });
}, 500);
}
function renderSchedule() {
const grid = document.getElementById('grid');
grid.innerHTML = "";
const phn = new Date(new Date().toLocaleString("en-US", {timeZone: "Asia/Phnom_Penh"}));
let day = phn.getDay();
let hr = phn.getHours();
let target = (hr >= 21) ? (day + 1) % 7 : day;
schedule.forEach((data, idx) => {
const dayIdx = idx + 1;
const active = (dayIdx === target);
const card = document.createElement('div');
card.className = `glass-card ${active ? 'active-day' : 'opacity-20'}`;
let rows = "";
data.s.forEach(s => rows += `<div class="flex justify-between p-3 bg-white/5 rounded-lg mb-2"><span class="text-xs font-bold">${s}</span><span class="font-sigma text-[7px] text-cyan-400">SESSION</span></div>`);
card.innerHTML = `<div class="flex justify-between items-center mb-4"><h3 class="khmer-moul text-sm ${active ? 'text-cyan-400' : ''}">${data.d}</h3>${active ? '<span class="text-[7px] bg-cyan-500 text-black px-2 rounded font-bold">LIVE</span>':''}</div>${rows}`;
grid.appendChild(card);
});
}
function updateClock() {
const n = new Date();
const t = n.toLocaleString("en-US", {timeZone: "Asia/Phnom_Penh", hour:'2-digit', minute:'2-digit', second:'2-digit', hour12: false});
const d = n.toLocaleString("km-KH", {timeZone: "Asia/Phnom_Penh", weekday: 'long', day: 'numeric', month: 'long'});
document.getElementById('clock').innerText = t;
document.getElementById('dateLabel').innerText = d;
}
document.addEventListener('visibilitychange', () => {
if (document.hidden) {
document.getElementById('musMorning').pause();
document.getElementById('musAfternoon').pause();
} else if (currentMode) {
document.getElementById(currentMode === 'morning' ? 'musMorning' : 'musAfternoon').play().catch(() => {});
}
});
</script>
</body>
</html>