-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
760 lines (703 loc) · 23.7 KB
/
Copy pathindex.html
File metadata and controls
760 lines (703 loc) · 23.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="extrastyle.css" />
<title>World Computing Organization</title>
<style>
:root {
--transition-speed: 0.4s;
--primary-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
/* light mode */
--bg-color: #ffffff;
--text-color: #000000;
--nav-bg: rgba(255, 255, 255, 0.8);
--nav-text-color: #000000;
--accent-color: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #000000;
--text-color: #ffffff;
--nav-bg: rgba(0, 0, 0, 0.8);
--nav-text-color: #ffffff;
--accent-color: #ffffff;
}
}
html,
body {
margin: 0;
padding: 0;
font-family: var(--primary-font);
background: var(--bg-color);
color: var(--text-color);
transition: background var(--transition-speed) ease,
color var(--transition-speed) ease;
scroll-snap-type: y mandatory;
height: 100%;
overscroll-behavior: none;
}
nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: var(--nav-bg);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1rem;
z-index: 9999;
transition: background var(--transition-speed) ease,
color var(--transition-speed) ease;
flex-wrap: wrap;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
width: 40px;
height: 40px;
margin-right: 0.5rem;
border-radius: 50%;
}
.menu-toggle {
display: block; /* Change to block to make it visible */
cursor: pointer;
font-size: 1.5rem;
color: var(--nav-text-color);
}
.nav-container {
display: flex;
align-items: center;
gap: 2rem;
flex: 1;
justify-content: center;
max-width: 800px;
margin: 0 auto;
}
nav ul {
list-style: none;
display: flex;
gap: 2rem;
margin: 0;
padding: 0;
flex-direction: column;
display: none; /* Ensure it's hidden by default */
width: 100%;
}
nav ul.active {
display: flex; /* Show the menu when active */
}
nav a {
text-decoration: none;
color: var(--nav-text-color);
font-weight: 500;
transition: color var(--transition-speed) ease;
padding: 0.5rem 1rem;
}
nav a:hover {
color: #0070c9;
}
.dark-mode-toggle {
cursor: pointer;
font-size: 1.2rem;
color: var(--nav-text-color);
display: flex;
align-items: center;
transition: color var(--transition-speed) ease;
}
@media (min-width: 768px) {
nav ul {
flex-direction: row;
display: flex; /* Ensure it's visible on larger screens */
}
.menu-toggle {
display: none; /* Hide the toggle button on larger screens */
}
}
body {
margin-top: 60px;
}
section {
scroll-snap-align: start;
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 1rem 0.5rem;
}
section.visible {
opacity: 1;
transform: translateY(0);
}
#overview {
min-height: calc(100vh - 60px);
}
.hero-logo {
max-width: 150px;
margin: 1rem auto;
display: block;
}
.tagline {
font-size: 1.5rem;
font-weight: 600;
margin: 0.5rem 0;
}
.subtext {
max-width: 600px;
margin: 0 auto;
font-size: 0.95rem;
line-height: 1.4;
}
#projects,
#sponsors,
#events,
#join,
#connect {
min-height: 60vh;
}
h2 {
font-size: 1.3rem;
margin-bottom: 0.3rem;
}
.section-content {
max-width: 700px;
margin: 0 auto;
line-height: 1.4;
font-size: 0.9rem;
}
.btn {
display: inline-block;
padding: 0.6rem 1rem;
margin: 1rem 0.3rem;
background: var(--accent-color);
color: var(--bg-color);
border: none;
border-radius: 4px;
font-size: 0.9rem;
cursor: pointer;
text-decoration: none;
transition: background 0.3s ease;
}
.btn:hover {
background: #0070c9;
color: #fff;
}
footer {
text-align: center;
padding: 0.5rem;
font-size: 0.8rem;
}
body.dark-mode {
--bg-color: #000000;
--text-color: #ffffff;
--nav-bg: rgba(0, 0, 0, 0.8);
--nav-text-color: #ffffff;
--accent-color: #ffffff;
}
.section-image {
margin: 1rem auto;
max-width: 400px;
}
.section-image img {
width: 100%;
height: auto;
display: block;
}
.social-links {
display: flex;
gap: 2rem;
align-items: center;
justify-content: center;
margin-top: 1rem;
}
.social-links img {
width: 40px;
height: 40px;
cursor: pointer;
transition: transform 0.3s ease;
}
.social-links img:hover {
transform: scale(1.1);
}
/* light mode to dark mode switch */
.dark-icon {
display: none;
}
.light-icon {
display: inline-block;
}
body.dark-mode .light-icon {
display: none;
}
body.dark-mode .dark-icon {
display: inline-block;
}
.hidden {
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
.visible {
opacity: 1;
}
.button-container {
display: flex;
justify-content: center;
align-items: center;
gap: 1.5rem;
margin-top: 20px; /* Add space above the buttons */
}
.button {
cursor: pointer;
text-decoration: none;
color: #ffff;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #2d2e32;
border: 2px solid #2d2e32;
transition: all 0.45s;
}
.button:hover {
transform: rotate(360deg);
transform-origin: center center;
background-color: #ffff;
color: #2d2e32;
}
.button:hover .btn-svg {
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(305deg)
brightness(103%) contrast(103%);
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
@keyframes blinkCursor {
50% {
border-right-color: transparent;
}
}
@keyframes typeAndDelete {
0%,
10% {
width: 0;
}
45%,
55% {
width: 6.2em;
}
90%,
100% {
width: 0;
}
}
.loader-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgb(0, 0, 0); /* Changed from rgba to rgb for solid black */
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loader-overlay.active {
opacity: 1;
visibility: visible;
}
.terminal-loader {
border: 0.1em solid #333;
background-color: #1a1a1a;
color: #0f0;
font-family: "Courier New", Courier, monospace;
font-size: 1em;
padding: 1.5em 1em;
width: 12em;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 4px;
position: relative;
overflow: hidden;
box-sizing: border-box;
}
.terminal-header {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1.5em;
background-color: #333;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 0 0.4em;
box-sizing: border-box;
}
.terminal-controls {
float: right;
}
.control {
display: inline-block;
width: 0.6em;
height: 0.6em;
margin-left: 0.4em;
border-radius: 50%;
}
.control.close {
background-color: #ff5f56;
}
.control.minimize {
background-color: #ffbd2e;
}
.control.maximize {
background-color: #27c93f;
}
.terminal-title {
float: left;
line-height: 1.5em;
color: #eee;
}
.text {
display: inline-block;
white-space: nowrap;
overflow: hidden;
border-right: 0.2em solid green;
animation: typeAndDelete 4s steps(11) infinite,
blinkCursor 0.5s step-end infinite alternate;
margin-top: 1.5em;
}
</style>
</head>
<body>
<div class="loader-overlay">
<div class="terminal-loader">
<div class="terminal-header">
<div class="terminal-title">Status</div>
<div class="terminal-controls">
<div class="control close"></div>
<div class="control minimize"></div>
<div class="control maximize"></div>
</div>
</div>
<div class="text">Loading...</div>
</div>
</div>
<nav>
<div class="logo">
<img src="./assets/IMG_1362-removebg-preview.png" alt="WCO Logo" />
<span style="font-weight: bold">WCO</span>
</div>
<div class="menu-toggle" id="menuToggle">☰</div>
<div class="nav-container">
<ul id="navMenu">
<li><a href="#overview">Overview</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#sponsors">Sponsors</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#join">Join</a></li>
<li><a href="#connect">Connect</a></li>
<li><a href="board.html">Board</a></li>
<li><a href="resources.html">Resources</a></li>
</ul>
</div>
<div
class="dark-mode-toggle"
id="darkModeToggle"
title="Toggle Dark Mode">
☼
</div>
</nav>
<section id="overview">
<img
class="hero-logo"
src="./assets/IMG_1361-removebg-preview.png"
alt="WCO Seal Logo" />
<h1 id="typed-tagline" class="tagline">
Bridging Business & Computer Science for Real-World Success
</h1>
<p id="typed-subtext" class="subtext hidden">
We unite Computer Science and Business majors to collaborate on
innovative projects, host career-focused workshops, and help each other
succeed in the ever-evolving tech industry.
</p>
<button class="ui-btn" id="scrollToJoinBtn" style="margin-top: 1rem">
<span> Join Now! </span>
</button>
</section>
<section id="projects">
<h2>Projects</h2>
<div class="section-image"></div>
<div class="section-content">
<p>No active projects yet, but we’re collecting ideas!</p>
<a
href="https://forms.gle/YOUR_PROJECT_SUBMISSION_FORM"
target="_blank"
class="btn">
Submit a Project Idea
</a>
</div>
</section>
<section id="sponsors">
<h2>Sponsors & Partners</h2>
<div class="section-image"></div>
<div class="section-content">
<div class="sponsor">
<img src="./assets/backonmondaylogo.svg" alt="Back on Monday Logo" />
<p class="sponsor-text">Back on Mondays</p>
</div>
</div>
</section>
<section id="events">
<h2>Upcoming Events</h2>
<div class="section-image"></div>
<div class="section-content">
<ul style="list-style: none; padding: 0">
<li><strong>Resume Workshops</strong> – Dates TBA</li>
<li>
<strong>Hackathon</strong> – 24/48-hour coding + business plan
creation, TBA
</li>
<li>
<strong>Guest Speakers</strong> – Stay tuned for announcements
</li>
</ul>
<a
href="https://calendar.google.com/calendar/render?action=TEMPLATE&text=WCO+Meeting&dates=20250101T080000Z/20250101T090000Z&details=Monthly+Meeting&location=SDSU"
target="_blank"
class="btn">
Add to Google Calendar
</a>
<a href="./assets/WCO-Event.ics" class="btn">Add to Apple Calendar</a>
</div>
</section>
<section id="join">
<h2>Join the Club</h2>
<div class="section-image"></div>
<div class="section-content">
<p>
Ready to bridge Computer Science and Business? Fill out our membership
form!
</p>
<!-- membership form link v -->
<a
href="https://forms.gle/YCYTanK8aCfK1o99A"
target="_blank"
class="btn"
>Membership Form</a
>
</div>
</section>
<section id="connect">
<h2>Connect With Us</h2>
<div class="section-image">
<!-- e.g. <img src="./assets/connect-graphic.png" alt="Connect Graphic" /> -->
</div>
<div class="section-content">
<p>Follow us on GitHub, join our Discord, or send us an email!</p>
<iframe
src="https://discord.com/widget?id=1327329013991215104&theme=dark"
width="350"
height="500"
allowtransparency="true"
frameborder="0"
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
<div class="button-container">
<button
class="button flex-center"
onclick="window.open('https://www.instagram.com/wcosdsu/', '_blank')">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
width="22px"
class="btn-svg"
viewBox="0 0 24 24">
<g stroke-width="0" id="SVGRepo_bgCarrier"></g>
<g
stroke-linejoin="round"
stroke-linecap="round"
id="SVGRepo_tracerCarrier"></g>
<g id="SVGRepo_iconCarrier">
<path
fill="#fff"
d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z"
clip-rule="evenodd"
fill-rule="evenodd"></path>
<path
fill="#fff"
d="M18 5C17.4477 5 17 5.44772 17 6C17 6.55228 17.4477 7 18 7C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z"></path>
<path
fill="#fff"
d="M1.65396 4.27606C1 5.55953 1 7.23969 1 10.6V13.4C1 16.7603 1 18.4405 1.65396 19.7239C2.2292 20.8529 3.14708 21.7708 4.27606 22.346C5.55953 23 7.23969 23 10.6 23H13.4C16.7603 23 18.4405 23 19.7239 22.346C20.8529 21.7708 21.7708 20.8529 22.346 19.7239C23 18.4405 23 16.7603 23 13.4V10.6C23 7.23969 23 5.55953 22.346 4.27606C21.7708 3.14708 20.8529 2.2292 19.7239 1.65396C18.4405 1 16.7603 1 13.4 1H10.6C7.23969 1 5.55953 1 4.27606 1.65396C3.14708 2.2292 2.2292 3.14708 1.65396 4.27606ZM13.4 3H10.6C8.88684 3 7.72225 3.00156 6.82208 3.0751C5.94524 3.14674 5.49684 3.27659 5.18404 3.43597C4.43139 3.81947 3.81947 4.43139 3.43597 5.18404C3.27659 5.49684 3.14674 5.94524 3.0751 6.82208C3.00156 7.72225 3 8.88684 3 10.6V13.4C3 15.1132 3.00156 16.2777 3.0751 17.1779C3.14674 18.0548 3.27659 18.5032 3.43597 18.816C3.81947 19.5686 4.43139 20.1805 5.18404 20.564C5.49684 20.7234 5.94524 20.8533 6.82208 20.9249C7.72225 20.9984 8.88684 21 10.6 21H13.4C15.1132 21 16.2777 20.9984 17.1779 20.9249C18.0548 20.8533 18.5032 20.7234 18.816 20.564C19.5686 20.1805 20.1805 19.5686 20.564 18.816C20.7234 18.5032 20.8533 18.0548 20.9249 17.1779C20.9984 16.2777 21 15.1132 21 13.4V10.6C21 8.88684 20.9984 7.72225 20.9249 6.82208C20.8533 5.94524 20.7234 5.49684 20.564 5.18404C20.1805 4.43139 19.5686 3.81947 18.816 3.43597C18.5032 3.27659 18.0548 3.14674 17.1779 3.0751C16.2777 3.00156 15.1132 3 13.4 3Z"
clip-rule="evenodd"
fill-rule="evenodd"></path>
</g>
</svg>
</button>
<button
class="button flex-center"
onclick="window.open('https://www.linkedin.com/company/wcosdsu/', '_blank')">
<svg
xmlns="http://www.w3.org/2000/svg"
width="22px"
class="btn-svg"
viewBox="0 0 24 24"
fill="#fff">
<path
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
</svg>
</button>
<button
class="button flex-center"
onclick="window.open('https://github.com/WorldComputingSDSU', '_blank')">
<svg
stroke="#fff"
fill="#fff"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
class="btn-svg"
width="22px"
viewBox="0 0 20 20">
<g stroke-width="0" id="SVGRepo_bgCarrier"></g>
<g
stroke-linejoin="round"
stroke-linecap="round"
id="SVGRepo_tracerCarrier"></g>
<g id="SVGRepo_iconCarrier">
<title>github [#fff142]</title>
<defs></defs>
<g
fill-rule="evenodd"
fill="none"
stroke-width="1"
stroke="none"
id="Page-1">
<g
fill="#fff"
transform="translate(-140.000000, -7559.000000)"
id="Dribbble-Light-Preview">
<g transform="translate(56.000000, 160.000000)" id="icons">
<path
id="github-[#fff142]"
d="M94,7399 C99.523,7399 104,7403.59 104,7409.253 C104,7413.782 101.138,7417.624 97.167,7418.981 C96.66,7419.082 96.48,7418.762 96.48,7418.489 C96.48,7418.151 96.492,7417.047 96.492,7415.675 C96.492,7414.719 96.172,7414.095 95.813,7413.777 C98.04,7413.523 100.38,7412.656 100.38,7408.718 C100.38,7407.598 99.992,7406.684 99.35,7405.966 C99.454,7405.707 99.797,7404.664 99.252,7403.252 C99.252,7403.252 98.414,7402.977 96.505,7404.303 C95.706,7404.076 94.85,7403.962 94,7403.958 C93.15,7403.962 92.295,7404.076 91.497,7404.303 C89.586,7402.977 88.746,7403.252 88.746,7403.252 C88.203,7404.664 88.546,7405.707 88.649,7405.966 C88.01,7406.684 87.619,7407.598 87.619,7408.718 C87.619,7412.646 89.954,7413.526 92.175,7413.785 C91.889,7414.041 91.63,7414.493 91.54,7415.156 C90.97,7415.418 89.522,7415.871 88.63,7414.304 C88.63,7414.304 88.101,7413.319 87.097,7413.247 C87.097,7413.247 86.122,7413.234 87.029,7413.87 C87.029,7413.87 87.684,7414.185 88.139,7415.37 C88.139,7415.37 88.726,7417.2 91.508,7416.58 C91.513,7417.437 91.522,7418.245 91.522,7418.489 C91.522,7418.76 91.338,7419.077 90.839,7418.982 C86.865,7417.627 84,7413.783 84,7409.253 C84,7403.59 88.478,7399 94,7399"></path>
</g>
</g>
</g>
</g>
</svg>
</button>
</div>
</div>
</section>
<!-- FOOTER -->
<footer>© 2024 World Computing Organization</footer>
<script>
const sections = document.querySelectorAll("section");
const observerOptions = { threshold: 0.1 };
const observer = new IntersectionObserver((entries, obs) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("visible");
obs.unobserve(entry.target);
}
});
}, observerOptions);
sections.forEach((section) => observer.observe(section));
const toggleBtn = document.getElementById("darkModeToggle");
let isDarkMode = false;
if (localStorage.getItem("theme") === "dark") {
document.body.classList.add("dark-mode");
isDarkMode = true;
toggleBtn.innerHTML = "☽";
} else {
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)"
).matches;
if (prefersDark) {
document.body.classList.add("dark-mode");
isDarkMode = true;
toggleBtn.innerHTML = "☽";
}
}
toggleBtn.addEventListener("click", () => {
isDarkMode = !isDarkMode;
document.body.classList.toggle("dark-mode");
toggleBtn.innerHTML = isDarkMode ? "☽" : "☼";
localStorage.setItem("theme", isDarkMode ? "dark" : "light");
});
const navLinks = document.querySelectorAll('nav a[href^="#"]');
navLinks.forEach((link) => {
link.addEventListener("click", (e) => {
e.preventDefault();
const targetID = link.getAttribute("href").replace("#", "");
const targetEl = document.getElementById(targetID);
if (targetEl) {
targetEl.scrollIntoView({ behavior: "smooth" });
}
});
});
const scrollToJoinBtn = document.getElementById("scrollToJoinBtn");
if (scrollToJoinBtn) {
scrollToJoinBtn.addEventListener("click", () => {
const joinSection = document.getElementById("join");
if (joinSection) {
joinSection.scrollIntoView({ behavior: "smooth" });
}
});
}
const menuToggle = document.getElementById("menuToggle");
const navMenu = document.getElementById("navMenu");
menuToggle.addEventListener("click", () => {
navMenu.classList.toggle("active");
});
// Typing effect function with callback
function typeText(element, text, delay = 50, callback) {
let i = 0;
element.innerHTML = "";
const interval = setInterval(() => {
if (i < text.length) {
element.innerHTML += text.charAt(i);
i++;
} else {
clearInterval(interval);
if (callback) callback();
}
}, delay);
}
// Add these utility functions
const loader = {
show: function () {
document.querySelector(".loader-overlay").classList.add("active");
},
hide: function () {
document.querySelector(".loader-overlay").classList.remove("active");
},
};
// Example usage: Show loader when page loads, hide after 2 seconds
window.onload = () => {
loader.show();
setTimeout(() => {
loader.hide();
const tagline = document.getElementById("typed-tagline");
const subtext = document.getElementById("typed-subtext");
typeText(tagline, tagline.textContent, 30, () => {
subtext.classList.add("visible");
});
}, 2000);
};
</script>
</body>
</html>