-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
729 lines (641 loc) · 32 KB
/
index.html
File metadata and controls
729 lines (641 loc) · 32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO Basics -->
<meta name="title" content="Arewa Crypto Community | Leading Web3 Revolution in Northern Nigeria">
<meta name="description"
content="The Arewa Crypto Community (ACC) is creating a vibrant Web3 family, uniting Arewa youth through education, opportunity, trust, and innovation. We're empowering the next generation to lead the crypto revolution in our region!">
<meta name="robots" content="index, follow">
<!-- Favicon -->
<link rel="icon" href="imgs/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="imgs/favicon.png">
<link rel="shortcut icon" href="imgs/favicon.png" type="image/png">
<!-- Google Site Verification -->
<meta name="google-site-verification" content="iDtUh_Z0c5BNP48oMBH8Z4iF7aZkXkk7S_gHs6B4Hsk" />
<!-- Open Graph / Facebook Preview -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://accommunity.ng/">
<meta property="og:title" content="Arewa Crypto Community | Leading Web3 Revolution in Northern Nigeria">
<meta property="og:description"
content="Empowering Northern Nigeria through blockchain education, trust, opportunity, and innovation.">
<meta property="og:image" content="https://accommunity.ng/imgs/og-banner.png">
<!-- Replace with your actual OG banner -->
<!-- Twitter Preview -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://accommunity.ng/">
<meta name="twitter:title" content="Arewa Crypto Community | Leading Web3 Revolution in Northern Nigeria">
<meta name="twitter:description"
content="Empowering Northern Nigeria through blockchain education, trust, opportunity, and innovation.">
<meta name="twitter:image" content="https://accommunity.ng/imgs/og-banner.png"> <!-- Replace with same OG banner -->
<!-- Title -->
<title>Arewa Crypto Community | Leading Web3 Revolution in Northern Nigeria</title>
<!-- Fonts & Styles -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link
href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Quantum Grid Background -->
<div class="quantum-grid"></div>
<!-- Blockchain Visualization -->
<!-- <div class="blockchain-viz" id="blockchainViz"></div> -->
<!-- Header -->
<header>
<div class="nav-container">
<a href="#" class="logo">
<img src="imgs/icon.png" alt="ACC Logo" class="logo-img">
<span>A.</span>C.C <span></span>
</a>
<button class="mobile-menu-btn" id="mobileMenuBtn">
<i class="fas fa-bars"></i>
</button>
<ul class="nav-links" id="navLinks">
<li><a href="#home">HOME</a></li>
<li><a href="alp-program.html" class="nav-link">ALP PROGRAM <span class="new-indicator"
title="New Program!">NEW</span>
</a></li>
<li><a href="#mission">MISSION</a></li>
<li><a href="#features">FEATURES</a></li>
<li><a href="#events">EVENTS</a></li>
<li><a href="#join">JOIN</a></li>
</ul>
</div>
</header>
<!-- Hero Section -->
<section class="hero" id="home">
<div class="hero-container">
<div class="hero-content">
<h1 class="hero-title">WEB3 REVOLUTION IN NORTHERN NIGERIA</h1>
<p class="hero-subtitle">
The Arewa Crypto Community (ACC) is creating a vibrant Web3 family, uniting Arewa youth through
education, opportunity, trust, and innovation. We're empowering the next generation to lead the
crypto revolution in our region!
</p>
<div class="hero-btns">
<a href="#join" class="btn btn-primary">
<i class="fas fa-rocket"></i> JOIN NOW
</a>
<a href="./pfp-maker.html" class="btn btn-primary">
<i class="fas fa-paint-brush"></i> PFP MAKER
</a>
</div>
</div>
<div class="hero-image">
<div class="hero-img-container">
<img src="imgs/acc3d1.png" alt="ACC Community" class="hero-img">
<div class="hero-img-overlay"></div>
</div>
<div class="floating-elements" id="floatingElements"></div>
</div>
</div>
</section>
<!-- Stats Section -->
<section class="stats">
<div class="stats-container">
<div class="stats-header">
<h2 class="section-title">OUR IMPACT</h2>
<p class="section-subtitle">Building the future of finance in Northern Nigeria through blockchain
technology</p>
</div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-icon">
<i class="fas fa-users"></i>
</div>
<div class="stat-number" id="membersCount">2K+</div>
<div class="stat-label">Community Members</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<i class="fas fa-calendar-check"></i>
</div>
<div class="stat-number" id="eventsCount">100+</div>
<div class="stat-label">Events Hosted</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<i class="fas fa-graduation-cap"></i>
</div>
<div class="stat-number" id="educationCount">120+</div>
<div class="stat-label">People Educated</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<i class="fas fa-project-diagram"></i>
</div>
<div class="stat-number" id="projectsCount">10+</div>
<div class="stat-label">Web3 Projects</div>
</div>
</div>
</div>
</section>
<!-- Mission Section -->
<section class="mission" id="mission">
<div class="mission-container">
<div class="mission-image">
<div class="mission-img-container">
<img src="imgs/Request.jpg" alt="ACC Mission" class="mission-img">
<div class="mission-img-overlay"></div>
</div>
</div>
<div class="mission-content">
<h2 class="section-title">OUR MISSION</h2>
<p class="section-text">
ACC is a dynamic movement empowering people in Northern Nigeria and beyond to embrace the future of
finance through cryptocurrency. We're building bridges between traditional communities and the
decentralized future.
</p>
<div class="mission-highlight">
<p>We're empowering the next generation to lead the crypto revolution in our region! 💪💚</p>
</div>
<p class="section-text">
Through education, community building, and strategic partnerships, we're creating opportunities for
Arewa youth to thrive in the Web3 economy and become leaders in blockchain innovation.
</p>
<ul class="mission-list">
<li>Providing comprehensive crypto education programs</li>
<li>Creating economic opportunities through DeFi</li>
<li>Fostering a supportive Web3 community</li>
<li>Connecting With blockchain projects</li>
<li>Advocating for crypto adoption in our region</li>
</ul>
</div>
</div>
</section>
<!-- Features Section -->
<section class="features" id="features">
<div class="features-container">
<div class="features-header">
<h2 class="section-title">WHY JOIN ACC?</h2>
<p class="section-subtitle">We provide everything you need to succeed in the crypto space</p>
</div>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-graduation-cap"></i>
</div>
<h3 class="feature-title">CRYPTO EDUCATION</h3>
<p class="feature-text">
From Bitcoin basics to advanced DeFi strategies, we provide step-by-step guides and workshops to
build your crypto knowledge from the ground up.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-users"></i>
</div>
<h3 class="feature-title">VIBRANT COMMUNITY</h3>
<p class="feature-text">
Connect with like-minded individuals, network with experts, and collaborate on exciting Web3
projects with our growing community.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-bolt"></i>
</div>
<h3 class="feature-title">EXCLUSIVE OPPORTUNITIES</h3>
<p class="feature-text">
Get early access to promising projects, airdrops, and investment opportunities carefully vetted
by our experienced team.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-calendar-alt"></i>
</div>
<h3 class="feature-title">REGULAR EVENTS</h3>
<p class="feature-text">
AMAs with industry leaders, hands-on workshops, hackathons, and networking events to keep you
engaged and continuously learning.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-hands-helping"></i>
</div>
<h3 class="feature-title">MENTORSHIP PROGRAM</h3>
<p class="feature-text">
Get paired with experienced mentors who will guide your crypto journey, help you avoid common
pitfalls, and accelerate your growth.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-project-diagram"></i>
</div>
<h3 class="feature-title">PROJECT OPPORTUNITIES</h3>
<p class="feature-text">
Have a Web3 idea? We provide resources, technical support, and Jobs opportunities to help our
communities.
</p>
</div>
</div>
</div>
</section>
<!-- Events Section -->
<section class="events" id="events">
<div class="events-container">
<div class="events-header">
<h2 class="section-title">ACC EVENTS</h2>
<p class="section-subtitle">Join our live sessions and learn directly from industry experts</p>
</div>
<div class="event-tabs">
<!-- <button class="event-tab active">ALL EVENTS</button> -->
<button class="event-tab active">AMA SESSIONS</button>
<!-- <button class="event-tab">WORKSHOPS</button> -->
<!-- <button class="event-tab">MEETUPS</button> -->
</div>
<div class="event-cards">
<div class="event-card">
<div class="event-image">
<img src="imgs/space-host.jpg" alt="AMA Session" class="event-img">
</div>
<div class="event-content">
<span class="event-date">EVERY MONDAY 9:00AM</span>
<h3 class="event-title">GM OPEN DISCUSSION</h3>
<p class="event-description">
Start your day with an engaging discussion on the latest crypto trends, market analysis, and community updates in our GM Open Discussion sessions.
</p>
<div class="event-meta">
<span><i class="fas fa-user"></i> ACC</span>
<span><i class="fas fa-map-marker-alt"></i> TWITTER SPACES</span>
</div>
</div>
</div>
<div class="event-card">
<div class="event-image">
<img src="imgs/space-host.jpg" alt="AMA Session" class="event-img">
</div>
<div class="event-content">
<span class="event-date">EVERY SUNDAY 9:00 PM</span>
<h3 class="event-title">SPECIAL GUEST (OPTIONAL)</h3>
<p class="event-description">
Join us every Sunday as we host industry experts and thought leaders for in-depth discussions on decentralized finance, economic opportunities, and financial inclusion in our region.
</p>
<div class="event-meta">
<span><i class="fas fa-user"></i> ACC </span>
<span><i class="fas fa-map-marker-alt"></i> TWITTER SPACES</span>
</div>
</div>
</div>
<div class="event-card">
<div class="event-image">
<img src="imgs/megamubmit.jpg" alt="AMA Session" class="event-img">
</div>
<div class="event-content">
<span class="event-date">BIMONTHLY</span>
<h3 class="event-title">MEGA ONLINE SUBMIT</h3>
<p class="event-description">
Join our bimonthly mega online summit featuring top Web3 experts, industry leaders, and innovators sharing insights on blockchain technology and cryptocurrency opportunities.
</p>
<div class="event-meta">
<span><i class="fas fa-user"></i> ACC CORE TEAM</span>
<span><i class="fas fa-map-marker-alt"></i> TWITTER SPACES</span>
</div>
</div>
</div>
<div class="event-card">
<div class="event-image">
<img src="imgs/web3-learning.jpg" alt="AMA Session" class="event-img">
</div>
<div class="event-content">
<span class="event-date">EVERY FRIDAY 9:00PM</span>
<h3 class="event-title">WEB3 LEARNING SERIES</h3>
<p class="event-description">
Join our weekly educational series focusing on Web3 fundamentals, blockchain technology, NFTs, DeFi protocols, and Many More About cryptocurrency.
</p>
<div class="event-meta">
<span><i class="fas fa-user"></i> ACC CORE TEAM</span>
<span><i class="fas fa-map-marker-alt"></i> TWITTER SPACES</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Join Section -->
<section class="join" id="join">
<div class="join-container">
<h2 class="join-title">READY TO JOIN THE WEB3 REVOLUTION?</h2>
<p class="join-text">
Become part of the fastest growing crypto community in Northern Nigeria. Whether you're a complete
beginner or an experienced crypto enthusiast, there's a place for you in ACC.
</p>
<!-- <div class="join-form">
<input type="email" class="form-input" placeholder="Enter your email address">
<button type="submit" class="form-btn">SIGN UP NOW</button>
</div> -->
<div class="social-links">
<a href="https://discord.gg/3pJxBJVWZ4" target="_blank" class="social-link"><i
class="fab fa-discord"></i></a>
<a href="https://t.me/acccommunitychannel" target="_blank" class="social-link"><i
class="fab fa-telegram"></i></a>
<a href="https://x.com/acc_community" target="_blank" class="social-link"><i
class="fab fa-twitter"></i></a>
<!-- <a href="#" class="social-link"><i class="fab fa-youtube"></i></a> -->
</div>
</div>
</section>
<div class="popup-overlay" id="joinPopup">
<div class="popup-container">
<button class="popup-close" id="closePopup">×</button>
<div class="popup-content">
<div class="popup-icon">
<i class="fas fa-graduation-cap"></i>
</div>
<h3 class="popup-title">JOIN THE WEB3 REVOLUTION</h3>
<p class="popup-text">
Ready to dive into the future of finance? Join ACC Academy and start your Web3 journey today
with our expert-led courses and vibrant community.
</p>
<div class="popup-buttons">
<a href="alp-form.html" class="popup-btn popup-btn-primary">
<i class="fas fa-rocket"></i> Register Now
</a>
<button class="popup-btn popup-btn-outline" id="laterBtn">
<i class="fas fa-clock"></i> Maybe Later
</button>
</div>
<p class="popup-cookie">
By joining, you agree to our terms and privacy policy
</p>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div class="footer-container">
<div class="footer-col">
<div class="footer-logo">
<span>A</span>CC
</div>
<p class="footer-about">
The Arewa Crypto Community is empowering Northern Nigeria through blockchain education and
innovation, creating opportunities in the Web3 economy.
</p>
<div class="footer-social">
<a href="https://discord.gg/3pJxBJVWZ4" target="_blank" class="footer-social-link"><i
class="fab fa-discord"></i></a>
<a href="https://t.me/acccommunitychannel" target="_blank" class="footer-social-link"><i
class="fab fa-telegram"></i></a>
<a href="https://x.com/acc_community" target="_blank" class="footer-social-link"><i
class="fab fa-twitter"></i></a>
<!-- <a href="#" class="footer-social-link"><i class="fab fa-instagram"></i></a> -->
</div>
</div>
<div class="footer-col">
<h3 class="footer-title">QUICK LINKS</h3>
<ul class="footer-links">
<li><a href="#home">Home</a></li>
<li><a href="#mission">Our Mission</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#join">Join Us</a></li>
</ul>
</div>
<div class="footer-col">
<h3 class="footer-title">RESOURCES</h3>
<ul class="footer-links">
<li><a href="#">PFP Maker</a></li>
<!-- <li><a href="#">Crypto Glossary</a></li>
<li><a href="#">Security Tips</a></li>
<li><a href="#">Recommended Tools</a></li>
<li><a href="#">FAQ</a></li> -->
</ul>
</div>
<div class="footer-col">
<h3 class="footer-title">CONTACT US</h3>
<ul class="footer-links">
<!-- <li><a href="mailto:info@arewacrypto.com">info@arewacrypto.com</a></li> -->
<li><a href="https://x.com/acc_community" target="_blank">Twitter</a></li>
<li><a href="https://t.me/acccommunitychannel" target="_blank">Telegram</a></li>
<li><a href="https://discord.gg/3pJxBJVWZ4" target="_blank">Discord</a></li>
<!-- <li><a href="#">Instagram</a></li> -->
</ul>
</div>
</div>
<div class="footer-bottom">
<p>© 2025 AREWA CRYPTO COMMUNITY. ALL RIGHTS RESERVED.</p>
</div>
</footer>
<script>
// Wait for DOM to load
document.addEventListener('DOMContentLoaded', function () {
const popup = document.getElementById('joinPopup');
const closeBtn = document.getElementById('closePopup');
const laterBtn = document.getElementById('laterBtn');
// Check if user has already dismissed the popup
if (!localStorage.getItem('popupDismissed')) {
// Show popup after 5 seconds
setTimeout(() => {
popup.classList.add('active');
}, 700);
}
// Close popup handlers
closeBtn.addEventListener('click', function () {
popup.classList.remove('active');
// localStorage.setItem('popupDismissed', 'true');
});
laterBtn.addEventListener('click', function () {
popup.classList.remove('active');
// localStorage.setItem('popupDismissed', 'true');
});
// Close when clicking outside
popup.addEventListener('click', function (e) {
if (e.target === popup) {
popup.classList.remove('active');
// localStorage.setItem('popupDismissed', 'true');
}
});
// Optional: Show popup when leaving the page
// window.addEventListener('mouseout', function (e) {
// if (e.clientY < 50 && !localStorage.getItem('popupDismissed')) {
// popup.classList.add('active');
// }
// });
});
// Mobile Menu Toggle
const mobileMenuBtn = document.getElementById('mobileMenuBtn');
const navLinks = document.getElementById('navLinks');
mobileMenuBtn.addEventListener('click', () => {
navLinks.classList.toggle('active');
mobileMenuBtn.innerHTML = navLinks.classList.contains('active') ?
'<i class="fas fa-times"></i>' : '<i class="fas fa-bars"></i>';
});
// Close mobile menu when clicking a link
document.querySelectorAll('.nav-links a').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
mobileMenuBtn.innerHTML = '<i class="fas fa-bars"></i>';
});
});
// Blockchain Network Visualization
const blockchainViz = document.getElementById('blockchainViz');
const nodes = [];
const numNodes = 20;
// Create nodes
for (let i = 0; i < numNodes; i++) {
const node = document.createElement('div');
node.classList.add('blockchain-node');
// Random position with more density in center
const centerX = window.innerWidth / 2;
const centerY = window.innerHeight / 2;
const angle = Math.random() * Math.PI * 2;
const distance = Math.random() * Math.min(centerX, centerY) * 0.7;
const posX = centerX + Math.cos(angle) * distance;
const posY = centerY + Math.sin(angle) * distance;
// Random animation delay
const delay = Math.random() * 3;
node.style.left = `${posX}px`;
node.style.top = `${posY}px`;
node.style.animationDelay = `${delay}s`;
blockchainViz.appendChild(node);
nodes.push({ x: posX, y: posY, element: node });
}
// Create connections between nodes
nodes.forEach((node1, i) => {
// Connect to 3-5 nearest nodes
const connections = [];
nodes.forEach((node2, j) => {
if (i !== j) {
const distance = Math.sqrt(
Math.pow(node1.x - node2.x, 2) +
Math.pow(node1.y - node2.y, 2)
);
connections.push({ distance, node: node2 });
}
});
// Sort by distance and take the closest 3-5
connections.sort((a, b) => a.distance - b.distance);
const closest = connections.slice(0, 3 + Math.floor(Math.random() * 3));
closest.forEach(target => {
// Check if connection already exists
let exists = false;
document.querySelectorAll('.blockchain-connection').forEach(conn => {
if ((conn.dataset.from === `${i}` && conn.dataset.to === `${nodes.indexOf(target.node)}`) ||
(conn.dataset.from === `${nodes.indexOf(target.node)}` && conn.dataset.to === `${i}`)) {
exists = true;
}
});
if (!exists && target.distance < 400) {
const connection = document.createElement('div');
connection.classList.add('blockchain-connection');
const angle = Math.atan2(target.node.y - node1.y, target.node.x - node1.x);
const length = target.distance;
connection.style.width = `${length}px`;
connection.style.left = `${node1.x}px`;
connection.style.top = `${node1.y}px`;
connection.style.transform = `rotate(${angle}rad)`;
connection.dataset.from = i;
connection.dataset.to = nodes.indexOf(target.node);
// Random animation properties
connection.style.animationDelay = `${Math.random() * 5}s`;
connection.style.animationDuration = `${5 + Math.random() * 10}s`;
blockchainViz.appendChild(connection);
}
});
});
// Floating crypto elements in hero section
const floatingElements = document.getElementById('floatingElements');
const cryptoIcons = [
'bitcoin', 'bitcoin', 'bitcoin', 'bitcoin', 'bitcoin',
'bitcoin', 'bitcoin', 'bitcoin', 'bitcoin', 'bitcoin'
];
for (let i = 0; i < 12; i++) {
const element = document.createElement('div');
element.classList.add('floating-element');
// Random properties
const posX = Math.random() * 100;
const delay = Math.random() * 10;
const duration = 10 + Math.random() * 15;
const size = 30 + Math.random() * 40;
const icon = cryptoIcons[Math.floor(Math.random() * cryptoIcons.length)];
element.style.left = `${posX}%`;
element.style.backgroundImage = `url('./logos/${icon}-logo.png')`;
element.style.width = `${size}px`;
element.style.height = `${size}px`;
element.style.animationDelay = `${delay}s`;
element.style.animationDuration = `${duration}s`;
floatingElements.appendChild(element);
}
// Animate stats counting
const animateCount = (element, target) => {
let current = 0;
const increment = target / 50;
const timer = setInterval(() => {
current += increment;
if (current >= target) {
clearInterval(timer);
element.textContent = target + '+';
} else {
element.textContent = Math.floor(current) + '+';
}
}, 20);
};
// Intersection Observer for animations
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate');
// Start counting animations for stats
if (entry.target.id === 'membersCount') animateCount(entry.target, 2500);
if (entry.target.id === 'eventsCount') animateCount(entry.target, 50);
if (entry.target.id === 'educationCount') animateCount(entry.target, 1000);
if (entry.target.id === 'projectsCount') animateCount(entry.target, 15);
observer.unobserve(entry.target);
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.animate').forEach(el => {
observer.observe(el);
});
// Parallax effect for blockchain nodes
window.addEventListener('mousemove', (e) => {
const x = e.clientX / window.innerWidth;
const y = e.clientY / window.innerHeight;
document.querySelectorAll('.blockchain-node').forEach((node, i) => {
const speed = 0.5 + (i % 3) * 0.5;
const xMove = (x - 0.5) * 20 * speed;
const yMove = (y - 0.5) * 20 * speed;
node.style.transform = `translate(${xMove}px, ${yMove}px)`;
});
});
// Dynamic glow effect for elements on hover
document.querySelectorAll('.btn, .feature-card, .event-card, .stat-card').forEach(el => {
el.addEventListener('mouseenter', () => {
const rect = el.getBoundingClientRect();
const x = rect.left + rect.width / 2;
const y = rect.top + rect.height / 2;
const glow = document.createElement('div');
glow.style.position = 'fixed';
glow.style.width = '200px';
glow.style.height = '200px';
glow.style.background = 'radial-gradient(circle, rgba(15,255,157,0.3) 0%, transparent 70%)';
glow.style.borderRadius = '50%';
glow.style.pointerEvents = 'none';
glow.style.transform = `translate(-50%, -50%)`;
glow.style.left = `${x}px`;
glow.style.top = `${y}px`;
glow.style.zIndex = '0';
glow.style.transition = 'opacity 0.5s ease';
glow.style.opacity = '0';
document.body.appendChild(glow);
setTimeout(() => {
glow.style.opacity = '1';
}, 10);
el.addEventListener('mouseleave', () => {
glow.style.opacity = '0';
setTimeout(() => {
document.body.removeChild(glow);
}, 500);
}, { once: true });
});
});
</script>
</body>
</html>