-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
987 lines (894 loc) · 29 KB
/
Copy pathindex.html
File metadata and controls
987 lines (894 loc) · 29 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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class 9-D Memories 2024-25</title>
<!-- Import a fun font for the header -->
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
<style>
:root {
--primary: #FFB347; /* Honey gold */
--primary-light: #FFD699; /* Light honey */
--secondary: #FF9EB5; /* Blush pink */
--accent: #D8BFD8; /* Fairy lavender */
--text: #4A2C2A; /* Warm brown */
--bg-light: #FFF5E6; /* Creamy white */
--card-bg: #ffffff;
--border: #e0e0e0;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', system-ui, sans-serif;
}
body {
background: linear-gradient(135deg, #FFF5E6 0%, #FFEBD6 100%);
color: var(--text);
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
position: relative;
z-index: 1;
}
/* Header Styles */
.header {
text-align: center;
padding: 3rem 0;
animation: fadeIn 1s ease-in;
position: relative;
}
.header h1 {
font-size: 4rem;
/* Use a playful script font */
font-family: 'Pacifico', cursive;
/* Apply a fun gradient text effect */
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 2px 2px 4px rgba(255, 158, 181, 0.2);
}
.header p {
font-size: 1.5rem;
color: var(--text);
opacity: 0.8;
}
.header::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
background: radial-gradient(circle at 50% 50%,
rgba(255, 255, 255, 0.4) 0%,
rgba(255, 255, 255, 0) 70%);
pointer-events: none;
}
/* Photo Gallery */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
}
.gallery-item {
position: relative;
overflow: hidden;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
cursor: pointer;
}
.gallery-item:hover {
transform: scale(1.05);
}
.gallery-item img {
width: 100%;
height: 300px;
object-fit: cover;
}
.gallery-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to right, rgba(255, 158, 181, 0.9), rgba(255, 179, 71, 0.9));
color: white;
padding: 1rem;
transform: translateY(100%);
transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption {
transform: translateY(0);
}
/* Student Spotlights */
.spotlights {
margin: 4rem 0;
}
.spotlights h1{
text-align: center;
font-size: 3rem;
/* Use a playful script font */
font-family: 'Pacifico', cursive;
/* Apply a fun gradient text effect */
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 2px 2px 4px rgba(255, 158, 181, 0.2);
}
.spotlight-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.student-card {
background: white;
border-radius: 1rem;
padding: 1.5rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: all 0.3s ease;
cursor: pointer;
}
.student-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}
.student-photo {
width: 150px;
height: 150px;
border-radius: 50%;
margin: 0 auto 1rem;
display: block;
object-fit: cover;
}
/* Messages Wall */
.messages-wall {
background: white;
border-radius: 1rem;
padding: 2rem;
margin: 3rem 0;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.message-form {
display: grid;
gap: 1rem;
margin-bottom: 2rem;
}
.message-form input,
.message-form textarea {
padding: 0.8rem;
border: 1px solid #ddd;
border-radius: 0.5rem;
font-size: 1rem;
}
.btn {
background: var(--primary);
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 0.5rem;
cursor: pointer;
transition: background 0.3s ease;
}
.btn:hover {
background: var(--primary-light);
}
.messages-container {
display: grid;
gap: 1rem;
}
.message {
background: var(--bg-light);
padding: 1rem;
border-radius: 0.5rem;
animation: slideIn 0.3s ease;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateX(-20px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
/* Interactive Timeline */
.timeline {
position: relative;
margin: 4rem 0;
padding: 2rem 0;
}
.timeline::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 2px;
background: var(--primary);
}
.timeline-item {
display: flex;
justify-content: center;
padding: 2rem 0;
}
.timeline-content {
background: white;
padding: 1.5rem;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
width: 45%;
position: relative;
animation: fadeIn 1s ease;
}
.timeline-content::before {
content: '';
position: absolute;
width: 20px;
height: 20px;
background: var(--primary);
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
}
.timeline-item:nth-child(odd) .timeline-content {
margin-right: 50%;
}
.timeline-item:nth-child(even) .timeline-content {
margin-left: 50%;
}
/* Responsive Design */
@media (max-width: 768px) {
.header h1 {
font-size: 3rem;
}
.timeline::before {
left: 0;
}
.timeline-content {
width: 90%;
margin: 0 0 0 10% !important;
}
.timeline-content::before {
left: -30px;
}
}
.memories-gallery {
margin: 4rem 0;
}
.memories-gallery h2 {
text-align: center;
font-size: 3rem;
/* Use a playful script font */
font-family: 'Pacifico', cursive;
/* Apply a fun gradient text effect */
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 2px 2px 4px rgba(255, 158, 181, 0.2);
}
.memories-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin: 2rem 0;
}
.memory-item {
position: relative;
overflow: hidden;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
cursor: pointer;
}
.memory-item:hover {
transform: scale(1.02);
}
.memory-item img {
width: 100%;
height: 250px;
object-fit: cover;
}
.memory-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to right, rgba(255, 158, 181, 0.9), rgba(255, 179, 71, 0.9));
color: white;
padding: 1rem;
transform: translateY(100%);
transition: transform 0.3s ease;
}
.memory-item:hover .memory-caption {
transform: translateY(0);
}
/* Make first item span two columns and rows */
.memory-item.featured {
grid-column: span 2;
grid-row: span 2;
}
.memory-item.featured img {
height: 100%;
}
@media (max-width: 768px) {
.memories-grid {
grid-template-columns: 1fr;
}
.memory-item.featured {
grid-column: auto;
grid-row: auto;
}
}
.video-item {
position: relative;
overflow: hidden;
border-radius: 1rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
cursor: pointer;
}
.video-item video {
width: 100%;
height: 250px;
object-fit: cover;
}
.video-item:hover {
transform: scale(1.02);
}
.body h1 {
font-size: 4rem;
color: var(--primary);
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.audio-player {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}
.music-toggle {
background: var(--primary);
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
}
.music-toggle:hover {
transform: scale(1.1);
}
.music-icon {
color: white;
font-size: 20px;
}
.music-toggle.playing {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
/* Teacher Tribute */
.teacher-tribute {
margin: 6rem 0;
animation: fadeIn 1.5s ease-in;
}
.tribute-content {
display: flex;
flex-direction: column;
gap: 4rem;
}
.teacher-card, .class-message {
background: var(--card-bg);
border-radius: 1rem;
padding: 3rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
position: relative;
border: 1px solid var(--border);
transition: transform 0.3s ease;
}
.teacher-card:hover, .class-message:hover {
transform: translateY(-5px);
}
.teacher-photo {
width: 200px;
height: 200px;
border-radius: 50%;
margin: 0 auto 2rem;
display: block;
object-fit: cover;
border: 3px solid var(--primary);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.teacher-tribute h2 {
text-align: center;
color: var(--text);
font-size: 2rem;
margin-bottom: 2rem;
font-weight: 300;
letter-spacing: 2px;
}
.quote-marks {
font-size: 4rem;
color: var(--primary);
opacity: 0.5;
position: absolute;
top: 2rem;
left: 2rem;
}
.quote-marks.closing {
top: auto;
left: auto;
bottom: 2rem;
right: 2rem;
}
.teacher-message, .class-message p {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text);
opacity: 0.9;
text-align: justify;
padding: 0 2rem;
margin-bottom: 2rem;
}
.teacher-spotlight {
background: rgba(255, 255, 255, 0);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(7.4px);
-webkit-backdrop-filter: blur(7.4px);
border: 1px solid rgba(255, 255, 255, 0.3);
grid-column: 1 / -1;
display: grid;
grid-template-columns: auto 1fr;
gap: 2rem;
background: linear-gradient(45deg, var(--card-bg), var(--accent));
border: 2px solid var(--primary);
padding: 2rem;
margin-bottom: 2rem;
position: relative;
overflow: hidden;
animation: teacherCardFade 1s ease-in;
display: flex;
flex-direction: column;
align-items: center; /* Centers content */
text-align: center; /* Ensures text is centered */
}
.teacher-spotlight::before {
content: '✨ Class Teacher ✨';
position: absolute;
top: 1rem;
right: 1rem;
background: var(--primary);
padding: 0.5rem 1rem;
border-radius: 2rem;
font-size: 0.9rem;
color: white;
opacity: 0.9;
}
.teacher-spotlight .student-photo {
width: 200px;
height: 200px;
border: 3px solid var(--primary);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.teacher-spotlight h3 {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--text);
}
.teacher-spotlight p {
font-size: 1.2rem;
margin-bottom: 0.5rem;
font-size: 1rem;
padding: 0 1rem;
}
.teacher-spotlight em {
color: #5C3B21;
}
@keyframes teacherCardFade {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Fun Fact Section */
.fun-fact-section {
text-align: center;
margin: 3rem 0;
animation: fadeIn 1s ease;
}
.fun-fact-section button {
background: var(--secondary);
color: white;
border: none;
padding: 1rem 2rem;
font-size: 1.2rem;
border-radius: 50px;
cursor: pointer;
transition: background 0.3s ease, transform 0.3s ease;
margin-bottom: 1rem;
}
.fun-fact-section button:hover {
background: var(--primary);
transform: scale(1.1);
}
.fun-fact-section p {
font-size: 1.2rem;
color: var(--text);
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<h1>Class 9-D</h1>
<p>2024-2025: Our Unforgettable Journey</p>
<section class="fun-fact-section">
<button id="funFactButton">Click Me!</button>
<p id="funFactText"></p>
</section>
</header>
<!-- Photo Gallery -->
<section class="gallery">
<div class="gallery-item">
<img src="Pics/ClassPhoto.jpg" alt="Class Photo">
<div class="gallery-caption">Class Photo Day</div>
</div>
<div class="gallery-item">
<img src="Pics/ChildrensDay.jpg" alt="Childerns Day">
<div class="gallery-caption">Children's Day</div>
</div>
<div class="gallery-item">
<img src="Pics/mmmm.jpg" alt="Science Fair">
<div class="gallery-caption">EXPO 2024</div>
</div>
</section>
<!-- Memories Gallery -->
<section class="memories-gallery">
<h2>Memories Gallery</h2>
<div class="memories-grid">
<div class="memory-item">
<img src="Pics/mustafa.jpg" alt="Mustafa">
<div class="memory-caption">Mustafa lmaoo</div>
</div>
<div class="memory-item">
<img src="Pics/siyanah.jpg" alt="Siyan">
<div class="memory-caption">Autistic siyan photo</div>
</div>
<div class="memory-item">
<img src="Pics/group.jpg" alt="Children's Day">
<div class="memory-caption">Children's Day</div>
</div>
<div class="memory-item">
<img src="Pics/ahhh.jpg" alt="Teachers Day">
<div class="memory-caption">Sinan 0.5</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/fight.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">Nilafar ma'am prank</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/maam.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">Nilafar ma'am prank</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/throw.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">Throwing Sinan</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/cake.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">Cutting the cake</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/steal.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">Steal the flower</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/expo.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">EXPO 2024</div>
</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/expo2.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">EXPO 2024</div>
</div>
<div class="memory-item video-item">
<video controls>
<source src="Pics/expoo.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="memory-caption">ANEEQ</div>
</div>
</section>
<!-- Student Spotlights -->
<section class="spotlights">
<h1>Class Spotlights</h1>
<br>
<div class="spotlight-grid" id="spotlightGrid">
<!-- Student cards will be added here by JavaScript -->
</div>
</section>
<!-- Teacher Tribute -->
<section class="teacher-tribute">
<div class="tribute-content">
<div class="teacher-card">
<img src="Pics/ClassTeacher.jpg" alt="Class Teacher" class="teacher-photo">
<h2>Thank You, Ms. Nilafar</h2>
<div class="quote-marks">❝</div>
<p class="teacher-message">
Dear Ms. Nilafar,<br><br>
Thank you for being more than just our teacher - you've been our guide, mentor, and sometimes even our partner in crime! Your patience with our chaos, your understanding during our struggles, and your encouragement in our achievements have made this year unforgettable. You've taught us not just our subjects, but also valuable life lessons that we'll carry forever.<br><br>
You've handled our class's energy with grace and humor, turning even our most mischievous moments into learning opportunities. Your dedication to making sure we all succeed, while still letting us be ourselves, has made 9-D feel like a family.<br><br>
<strong>Messages from your students:</strong><br>
• Mustafa: <em>"best teacher of 9th"</em><br>
• Aneeq: <em>"it’s not nilafar maam it’s nilaFUR maam"</em><br>
• Sinan: <em>"I hope your our class teacher in 10th"</em><br>
• Siyan: <em>"One of the best teachers"</em><br>
• Shifa: <em>"Mam your English was Englishing. but my discipline wasn't disciplining and I am sorry about that 😭. I love you a lot 💗"</em><br>
• Aathifa: <em>"Love u Nilafar mam, Thanks for being our biggest Support. ❤️"</em><br>
• Shahama: <em>"Thanks for surviving us this year. I’m pretty sure you deserve a vacation... or a medal. Or both."</em><br>
</p>
<div class="quote-marks closing">❞</div>
</div>
<div class="class-message">
<h2>To Class 9-D</h2>
<div class="quote-marks">❝</div>
<p>
From first day jitters to final day tears, we've been through it all together. Every laugh we shared, every challenge we faced, and every memory we created has made this year special. We may have been the class that gave teachers headaches, but we were also the class that stuck together through thick and thin.<br><br>
To all the friendships formed, the inside jokes created, the study sessions that turned into gossip sessions, and the countless moments that made our year memorable - thank you. Whether we were pranking teachers, struggling through math, or celebrating our achievements, we did it as one.<br><br>
As we move forward, let's carry these memories with us. Here's to 9-D - the class that wasn't just a class, but a family of mischief-makers, dreamers, and friends for life!
</p>
<div class="quote-marks closing">❞</div>
</div>
</div>
</section>
</div>
<!-- Audio Player -->
<div class="audio-player">
<audio id="bgMusic" loop>
<source src="Pics/sweet.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
<button id="toggleMusic" class="music-toggle">
<span class="music-icon">🎵</span>
</button>
</div>
<script>
// Data for Student Spotlights
const students = [
{
name: "Ms. Nilafar",
photo: "Pics/ClassTeacher.jpg",
achievement: "Being the Class Teacher of IX D is my proudest Achievement so far..",
quote: "Happy Teachers create Happy Classrooms..",
isTeacher: true
},
{
name: "skibidi rizzler (Aneeq)",
photo: "Pics/aneeq.png",
achievement: "I have achieved the title of being the skibidiest of everything and everyone (mirror mirror on the wall who's the skibidiest of them all?)",
quote: "I wanna go to Mustafa's house bruh"
},
{
name: "Femboy :P (Siyan)",
photo: "Pics/Siyan.png",
achievement: "Finished 100 animes in a year, Weeb",
quote: "Life's hard but I'm harder"
},
{
name: "Twink :33 (Sinan)",
photo: "Pics/Sinan.jpg",
achievement: "Made this website, Part of UDST competition winning team",
quote: "I made this shi :3"
},
{
name: "Swag (Hadi)",
photo: "Pics/Hadi.jpg",
achievement: "Got interviewed by Alkass Sports Channel as one of the underrated young talents",
quote: "Swag it out"
},
{
name: "Alanoodles (Alanood)",
photo: "Pics/alnood.jpg",
achievement: "Didn't get deported",
quote: "Don't wank off"
},
{
name: "Shawarma (Shahama)",
photo: "Pics/Shahama.jpg",
achievement: "Consecutive school topper, Part of UDST competition winning team, Helped with this website",
quote: "Always at the top"
},
{
name: "chemmeen 🦐(Suha)",
photo: "Pics/Suha.jpg",
achievement: "Shotput 2nd place, won Hikmah exam, top 5 in arm wrestling",
quote: "Always maths"
},
{
name: "Mufasa (Mustafa)",
photo: "Pics/Mustafapfp.jpg",
achievement: "Nilafar Mam's fav student 😤👅",
quote: "Just watch"
},
{
name: "MEGAMIND (Aafia)",
photo: "Pics/Aafia.jpg",
achievement: "Got picked by the school for U-19 team as a 13 year old, Long jump twice gold medalist",
quote: "Play hard, tease harder"
},
{
name: "manutd🗣 (Fardeen)",
photo: "Pics/Fardeen.jpg",
achievement: "Group Profile maker",
quote: "I like sleep"
},
{
name: "(Shifa)",
photo: "Pics/shifa.jpg",
achievement: "Got first prize in Kalanjali Oppana",
quote: "It's better to live than dying ❤️🩹"
},
{
name: "Raising canes (Razeen)",
photo: "Pics/razeen.jpg",
achievement: "Part of the EXPO 2024 winning team",
quote: "Am I even from 9D?"
},
{
name: "Drunk (Hamda)",
photo: "Pics/Hamda.jpg",
achievement: "Gold medal in cluster, Got 25/25 in physics in model exam",
quote: "Don’t like it? I don’t care."
},
{
name: "(Aathifa)",
photo: "Pics/aathifa.jpg",
achievement: "Part of UDST competition winning team, Logo making 1st prize",
quote: "abcdefghijklmnopqrstuvwxyz<br>1234567890"
},
{
name: "(Reem)",
photo: "Pics/reem.jpg",
achievement: "Came to school kinda regularly",
quote: "I love music"
},
{
name: "(Ashika)",
photo: "Pics/ashika.jpg",
achievement: "Part of UDST competition winning team",
quote: "abcdefghijklmnopqrstuvwxy<br>z1234567890"
},
];
// Function to create Student Cards
function createStudentCards() {
const spotlightGrid = document.getElementById('spotlightGrid');
students.forEach(person => {
const card = document.createElement('div');
card.className = person.isTeacher ? 'student-card teacher-spotlight' : 'student-card';
card.innerHTML = `
<img src="${person.photo}" alt="${person.name}" class="student-photo">
<h3>${person.name}</h3>
<p>${person.achievement}</p>
<br>
<p><em>"${person.quote}"</em></p>
`;
spotlightGrid.appendChild(card);
});
}
// Initialize student cards on page load
window.addEventListener('load', () => {
createStudentCards();
});
// Smooth scrolling for anchor links (if any)
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Gallery hover effect
document.querySelectorAll('.gallery-item').forEach(item => {
item.addEventListener('mouseover', function() {
this.style.transform = 'scale(1.05)';
});
item.addEventListener('mouseout', function() {
this.style.transform = 'scale(1)';
});
});
// Audio player initialization
document.addEventListener('DOMContentLoaded', function() {
const audio = document.getElementById('bgMusic');
const toggleButton = document.getElementById('toggleMusic');
// Start audio on first click (for autoplay)
document.addEventListener('click', function initAudio() {
audio.play().catch(function(error) {
console.log("Audio autoplay failed:", error);
});
document.removeEventListener('click', initAudio);
}, { once: true });
toggleButton.addEventListener('click', function() {
if (audio.paused) {
audio.play();
toggleButton.classList.add('playing');
} else {
audio.pause();
toggleButton.classList.remove('playing');
}
});
});
// Fun Fact Feature
const funFacts = [
"I will miss you guys",
"Imagine 9-D becomes 10-D",
"Best class frrr",
];
const funFactButton = document.getElementById('funFactButton');
const funFactText = document.getElementById('funFactText');
funFactButton.addEventListener('click', () => {
const randomIndex = Math.floor(Math.random() * funFacts.length);
funFactText.textContent = funFacts[randomIndex];
launchConfetti();
});
// Confetti effect function
function launchConfetti() {
const confettiColors = ['#FFB347', '#FF9EB5', '#D8BFD8', '#FFD699'];
for (let i = 0; i < 30; i++) {
const confetti = document.createElement('div');
confetti.style.position = 'fixed';
confetti.style.width = '10px';
confetti.style.height = '10px';
confetti.style.backgroundColor = confettiColors[Math.floor(Math.random() * confettiColors.length)];
confetti.style.top = Math.random() * 100 + '%';
confetti.style.left = Math.random() * 100 + '%';
confetti.style.opacity = 0.8;
confetti.style.transform = `rotate(${Math.random() * 360}deg)`;
confetti.style.animation = 'fall 2s linear forwards';
document.body.appendChild(confetti);
}
}
</script>
</body>
</html>