-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
740 lines (667 loc) · 35.5 KB
/
index.html
File metadata and controls
740 lines (667 loc) · 35.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lokii.tech - Break Into CS with Confidence</title>
<meta name="description" content="lokii.tech: An open-source platform providing valuable lessons and guidance to break into Computer Science in today's competitive world.">
<meta name="author" content="lokii (UnExplainableFish52)">
<meta name="theme-color" content="#050505">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://lokii.tech/">
<meta property="og:title" content="lokii.tech - Break Into CS with Confidence">
<meta property="og:description" content="An open-source platform providing valuable lessons and resources for Computer Science and Cybersecurity. Built by lokii to help the next generation break into tech.">
<meta property="og:image" content="https://lokii.tech/preview.jpg">
<meta property="og:site_name" content="lokii.tech">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://lokii.tech/">
<meta name="twitter:title" content="lokii.tech - Break Into CS with Confidence">
<meta name="twitter:description" content="An open-source platform providing valuable lessons and resources for Computer Science and Cybersecurity. Built by lokii to help the next generation break into tech.">
<meta name="twitter:image" content="https://lokii.tech/preview.jpg">
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<style>
/* Accordion Styles for Notes Sections */
.notes-accordion {
margin-top: 30px;
}
.accordion-section {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--border-radius-md);
margin-bottom: 15px;
overflow: hidden;
transition: all 0.3s ease;
}
.accordion-section:hover {
border-color: var(--accent-primary);
}
.accordion-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 25px;
cursor: pointer;
background: transparent;
border: none;
width: 100%;
text-align: left;
color: var(--text-primary);
font-family: inherit;
transition: background 0.3s ease;
}
.accordion-header:hover {
background: var(--bg-card-hover);
}
.accordion-header-content {
display: flex;
align-items: center;
gap: 15px;
}
.accordion-icon {
font-size: 1.8rem;
}
.accordion-title {
font-size: 1.4rem;
font-weight: 700;
color: #00bcd4;
margin: 0;
}
.accordion-subtitle {
font-size: 0.9rem;
color: var(--text-secondary);
margin: 0;
}
.accordion-arrow {
font-size: 1.2rem;
color: var(--text-secondary);
transition: transform 0.3s ease;
}
.accordion-section.active .accordion-arrow {
transform: rotate(180deg);
}
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
}
.accordion-section.active .accordion-content {
max-height: 2000px;
}
.accordion-body {
padding: 0 25px 25px;
}
/* Chapter List Styles */
.chapter-list {
display: grid;
gap: 12px;
}
.chapter-item {
display: flex;
align-items: center;
gap: 12px;
padding: 15px 20px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: var(--border-radius-sm);
color: var(--text-primary);
text-decoration: none;
transition: all 0.3s ease;
}
.chapter-item:hover {
background: rgba(0, 188, 212, 0.1);
border-color: #00bcd4;
transform: translateX(5px);
text-decoration: none;
}
.chapter-number {
background: linear-gradient(135deg, #00bcd4, #0099aa);
color: #000;
font-size: 0.75rem;
font-weight: 700;
padding: 4px 10px;
border-radius: 4px;
min-width: 45px;
text-align: center;
}
.chapter-info {
flex: 1;
}
.chapter-title {
font-weight: 600;
font-size: 1rem;
margin-bottom: 2px;
}
.chapter-desc {
font-size: 0.85rem;
color: var(--text-secondary);
}
/* Sub-section styling (for Networking sub-chapters) */
.chapter-subsection {
margin-top: 15px;
padding-left: 20px;
border-left: 2px solid var(--border-color);
}
.subsection-title {
font-size: 0.9rem;
color: #ffd700;
font-weight: 600;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.chapter-subsection .chapter-item {
padding: 12px 15px;
}
.chapter-subsection .chapter-number {
font-size: 0.7rem;
padding: 3px 8px;
min-width: 50px;
}
/* Coming soon badge */
.coming-soon {
background: rgba(255, 193, 7, 0.15);
color: #ffc107;
font-size: 0.75rem;
font-weight: 600;
padding: 4px 10px;
border-radius: 4px;
}
/* Level badges */
.level-badge {
font-size: 0.7rem;
font-weight: 700;
padding: 3px 8px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.level-intro {
background: rgba(16, 185, 129, 0.2);
color: #10B981;
}
.level-intermediate {
background: rgba(59, 130, 246, 0.2);
color: #3B82F6;
}
.level-pro {
background: rgba(239, 68, 68, 0.2);
color: #EF4444;
}
/* Matrix/Network Background Canvas */
#matrix-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
pointer-events: none;
}
</style>
</head>
<body>
<!-- Persistent Navigation -->
<header class="site-header">
<div class="container">
<div class="header-content">
<a href="/" class="branding">
<span class="logo" style="color: #00e5ff; font-size: 1.7rem; font-weight: 800; text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);">lokii.tech</span>
</a>
<nav class="nav-links" style="gap: 2rem;">
<a href="#about" class="nav-link nav-link-enhanced">About</a>
<a href="#resources" class="nav-link nav-link-enhanced">Resources</a>
<a href="https://github.com/UnExplainableFish52/lokii.tech" target="_blank" class="nav-link nav-link-enhanced">GitHub</a>
<a href="https://github.com/UnExplainableFish52/lokii.tech/issues" target="_blank" class="nav-link nav-contribute">Contribute ✨</a>
</nav>
</div>
</div>
</header>
<main>
<!-- Hero Section -->
<section class="hero">
<!-- Matrix/Network Background (hero only) -->
<canvas id="matrix-bg"></canvas>
<div class="container">
<div class="hero-content">
<h1 class="hero-title">Break Into CS with Confidence</h1>
<p class="hero-subtitle">An open-source platform dedicated to empowering the next generation of tech professionals</p>
<p class="hero-description">Built by <strong>lokii</strong> (UnExplainableFish52) with a vision to provide valuable lessons and guidance to navigate today's competitive world and give back to the community.</p>
<div class="cta-buttons">
<a href="#resources" class="btn btn-primary">Explore Resources</a>
<a href="https://github.com/UnExplainableFish52/lokii.tech" target="_blank" class="btn btn-secondary">View on GitHub</a>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section class="about" id="about">
<div class="container">
<h2>About This Project</h2>
<div class="about-grid">
<div class="about-card">
<div class="card-icon">📚</div>
<h3>Comprehensive Learning</h3>
<p>High-quality, well-structured guides on Computer Science fundamentals, security, systems, and development tools.</p>
</div>
<div class="about-card">
<div class="card-icon">🎯</div>
<h3>Practical Insights</h3>
<p>Real-world knowledge from industry experience, helping you tackle challenges faced by professional developers.</p>
</div>
<div class="about-card">
<div class="card-icon">🤝</div>
<h3>Community Driven</h3>
<p>Open to contributions and feedback. Together, we're building a better resource ecosystem for everyone.</p>
</div>
</div>
</div>
</section>
<!-- Resources Section with Accordion -->
<section class="resources" id="resources">
<div class="container">
<h2>Available Resources</h2>
<p class="text-secondary" style="text-align: center; margin-bottom: 30px;">Click on a section to expand and explore chapters</p>
<div class="notes-accordion">
<!-- INTRO LEVEL -->
<div class="accordion-section active">
<button class="accordion-header" onclick="toggleAccordion(this)">
<div class="accordion-header-content">
<span class="accordion-icon">🎓</span>
<div>
<h3 class="accordion-title">Intro Level <span class="level-badge level-intro">Beginner</span></h3>
<p class="accordion-subtitle">Cybersecurity fundamentals, terminology, and foundations</p>
</div>
</div>
<span class="accordion-arrow">▼</span>
</button>
<div class="accordion-content">
<div class="accordion-body">
<div class="chapter-list">
<a href="intro/notes/1.1-what-is-cybersecurity.html" class="chapter-item">
<span class="chapter-number">1.1</span>
<div class="chapter-info">
<div class="chapter-title">🔐 What is Cybersecurity?</div>
<div class="chapter-desc">Introduction to cybersecurity, the CIA triad, and digital security landscape</div>
</div>
</a>
<a href="intro/notes/1.2-glossary.html" class="chapter-item">
<span class="chapter-number">1.2</span>
<div class="chapter-info">
<div class="chapter-title">📖 Cybersecurity Glossary</div>
<div class="chapter-desc">Comprehensive A-Z reference for terminology and acronyms</div>
</div>
</a>
<a href="intro/notes/1.3-landscape.html" class="chapter-item">
<span class="chapter-number">1.3</span>
<div class="chapter-info">
<div class="chapter-title">🌐 The Cybersecurity Landscape</div>
<div class="chapter-desc">Threat actors, attack vectors, and defense strategies</div>
</div>
</a>
<a href="intro/notes/1.4-intro-to-os.html" class="chapter-item">
<span class="chapter-number">1.4</span>
<div class="chapter-info">
<div class="chapter-title">💻 Introduction to Operating Systems</div>
<div class="chapter-desc">From Stallman to Linus: OS history and practical skills</div>
</div>
</a>
<!-- Networking Sub-section -->
<div class="chapter-subsection">
<div class="subsection-title">📡 1.5 Networking</div>
<a href="intro/notes/1.5_networks.html" class="chapter-item">
<span class="chapter-number">1.5</span>
<div class="chapter-info">
<div class="chapter-title">🌐 Networking Overview</div>
<div class="chapter-desc">Introduction to networking concepts</div>
</div>
</a>
<a href="intro/notes/1.5_networks/1.5.1_network_fundamentals.html" class="chapter-item">
<span class="chapter-number">1.5.1</span>
<div class="chapter-info">
<div class="chapter-title">Network Fundamentals</div>
<div class="chapter-desc">Core networking concepts, types, and topologies</div>
</div>
</a>
<a href="intro/notes/1.5_networks/1.5.2_osi_tcpip_models.html" class="chapter-item">
<span class="chapter-number">1.5.2</span>
<div class="chapter-info">
<div class="chapter-title">OSI & TCP/IP Models</div>
<div class="chapter-desc">Data flow, encapsulation, and layer functions</div>
</div>
</a>
<a href="intro/notes/1.5_networks/1.5.3_protocols_and_ports.html" class="chapter-item">
<span class="chapter-number">1.5.3</span>
<div class="chapter-info">
<div class="chapter-title">Protocols & Ports</div>
<div class="chapter-desc">TCP vs UDP, common ports, and vulnerabilities</div>
</div>
</a>
<a href="intro/notes/1.5_networks/1.5.4_network_devices.html" class="chapter-item">
<span class="chapter-number">1.5.4</span>
<div class="chapter-info">
<div class="chapter-title">Network Devices</div>
<div class="chapter-desc">Routers, switches, firewalls, and security implications</div>
</div>
</a>
<a href="intro/notes/1.5_networks/1.5.5_wifi_explained.html" class="chapter-item">
<span class="chapter-number">1.5.5</span>
<div class="chapter-info">
<div class="chapter-title">WiFi Explained</div>
<div class="chapter-desc">Wireless fundamentals, security, and technologies</div>
</div>
</a>
</div>
<a href="intro/notes/1.6_access_control.html" class="chapter-item">
<span class="chapter-number">1.6</span>
<div class="chapter-info">
<div class="chapter-title">🔑 Access Control</div>
<div class="chapter-desc">ISC2 CC Notes - DAC, MAC, RBAC, and authentication</div>
</div>
</a>
<a href="intro/notes/1.7-shell-scripting.html" class="chapter-item">
<span class="chapter-number">1.7</span>
<div class="chapter-info">
<div class="chapter-title">📜 Shell Scripting Basics</div>
<div class="chapter-desc">Variables, loops, conditionals, and writing your first scripts</div>
</div>
</a>
<a href="intro/notes/1.8-shell-scripting-practice.html" class="chapter-item">
<span class="chapter-number">1.8</span>
<div class="chapter-info">
<div class="chapter-title">🛡️ Shell Scripting Practice</div>
<div class="chapter-desc">10 realistic cybersec & DevOps scenarios with solutions</div>
</div>
</a>
</div>
</div>
</div>
</div>
<!-- INTERMEDIATE LEVEL -->
<div class="accordion-section">
<button class="accordion-header" onclick="toggleAccordion(this)">
<div class="accordion-header-content">
<span class="accordion-icon">🚀</span>
<div>
<h3 class="accordion-title">Intermediate Level <span class="level-badge level-intermediate">Intermediate</span></h3>
<p class="accordion-subtitle">Linux mastery, CLI tools, and expanding system-level courses</p>
</div>
</div>
<span class="accordion-arrow">▼</span>
</button>
<div class="accordion-content">
<div class="accordion-body">
<div class="chapter-list">
<a href="intermediate/notes/linux_course.html" class="chapter-item">
<span class="chapter-number">2.1</span>
<div class="chapter-info">
<div class="chapter-title">🐧 Linux Mastery Course</div>
<div class="chapter-desc">Complete 17-module Linux command-line and cybersecurity course</div>
</div>
</a>
<!-- Tools Sub-section -->
<div class="chapter-subsection">
<div class="subsection-title">🛠️ CLI Tools Mastery</div>
<a href="intermediate/tools/grep.html" class="chapter-item">
<span class="chapter-number">2.2.1</span>
<div class="chapter-info">
<div class="chapter-title">🔍 grep Mastery Guide</div>
<div class="chapter-desc">Text processing and pattern matching</div>
</div>
</a>
<a href="intermediate/tools/sed.html" class="chapter-item">
<span class="chapter-number">2.2.2</span>
<div class="chapter-info">
<div class="chapter-title">✏️ sed Stream Editor</div>
<div class="chapter-desc">Text transformation and data manipulation</div>
</div>
</a>
<a href="intermediate/tools/awk.html" class="chapter-item">
<span class="chapter-number">2.2.3</span>
<div class="chapter-info">
<div class="chapter-title">⚙️ awk Programming Language</div>
<div class="chapter-desc">Data extraction, processing, and reporting</div>
</div>
</a>
<a href="intermediate/tools/vim.html" class="chapter-item">
<span class="chapter-number">2.2.4</span>
<div class="chapter-info">
<div class="chapter-title">⚡ Vim & Neovim Mastery</div>
<div class="chapter-desc">Modal editing from zero to lightning speed</div>
</div>
</a>
<a href="intermediate/tools/nmap.html" class="chapter-item">
<span class="chapter-number">2.2.5</span>
<div class="chapter-info">
<div class="chapter-title">🌐 Nmap Network Scanner</div>
<div class="chapter-desc">Network discovery, port scanning, and security auditing</div>
</div>
</a>
</div>
<div class="chapter-subsection">
<div class="subsection-title">📚 Networking Interview Prep</div>
<a href="intermediate/notes/networking_interview_prep/networking_study_guide_part_1.html" class="chapter-item">
<span class="chapter-number">2.3.1</span>
<div class="chapter-info">
<div class="chapter-title">🧠 Networking Study Guide - Part 1</div>
<div class="chapter-desc">Levels 01-05: Fundamentals, subnetting, switching, and routing</div>
</div>
</a>
<a href="intermediate/notes/networking_interview_prep/networking_study_guide_part_2.html" class="chapter-item">
<span class="chapter-number">2.3.2</span>
<div class="chapter-info">
<div class="chapter-title">🧠 Networking Study Guide - Part 2</div>
<div class="chapter-desc">Levels 06-10: Dynamic routing, services, security, WAN, and troubleshooting</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- PRO LEVEL -->
<div class="accordion-section">
<button class="accordion-header" onclick="toggleAccordion(this)">
<div class="accordion-header-content">
<span class="accordion-icon">⚡</span>
<div>
<h3 class="accordion-title">Pro Level <span class="level-badge level-pro">Advanced</span></h3>
<p class="accordion-subtitle">Higher-level topics and structured notes, with more releases coming soon</p>
</div>
</div>
<span class="accordion-arrow">▼</span>
</button>
<div class="accordion-content">
<div class="accordion-body">
<div class="chapter-list">
<div class="chapter-item" style="justify-content: center; cursor: default;">
<span class="coming-soon">🚧 Coming Soon</span>
<span style="color: var(--text-secondary);">Advanced content is being developed</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Mission Section -->
<section class="mission">
<div class="container">
<h2>Our Mission</h2>
<p>lokii.tech exists to <strong>give back to the community</strong> by creating accessible, high-quality learning resources. We believe that everyone deserves the opportunity to break into Computer Science, regardless of their background.</p>
<p>Whether you're a complete beginner or looking to sharpen your skills, you'll find practical, battle-tested knowledge here.</p>
</div>
</section>
</main>
<!-- Footer -->
<footer class="site-footer">
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h4>lokii.tech</h4>
<p>An open-source learning platform by lokii (UnExplainableFish52)</p>
</div>
<div class="footer-section">
<h4>Quick Links</h4>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#resources">Resources</a></li>
<li><a href="https://github.com/UnExplainableFish52/lokii.tech" target="_blank">GitHub</a></li>
</ul>
</div>
<div class="footer-section">
<h4>Community</h4>
<p>Contributions welcome! Help us make CS education accessible to everyone.</p>
</div>
</div>
<div class="footer-bottom">
<p>© 2025 lokii.tech. Open source and community-driven. <a href="LICENSE">See License</a></p>
</div>
</div>
</footer>
<script>
function toggleAccordion(header) {
const section = header.parentElement;
section.classList.toggle('active');
}
</script>
<script src="/js/main.js"></script>
<!-- Enhanced Matrix/Network Background Animation -->
<script>
(function() {
const canvas = document.getElementById('matrix-bg');
if (!canvas) return;
const ctx = canvas.getContext('2d');
const hero = document.querySelector('.hero');
let width, height;
let particles = [];
let matrixDrops = [];
let mouseX = 0, mouseY = 0;
// Matrix characters
const matrixChars = 'アイウエオカキクケコサシスセソタチツテト01234567890$#~/|><{}[]@&*;:=+-_./\\sudo apt wget curl chmod bash nmap grep';
const charArray = matrixChars.split('');
function resize() {
width = canvas.width = hero.offsetWidth;
height = canvas.height = hero.offsetHeight;
initParticles();
initMatrix();
}
// Floating network particles
function initParticles() {
particles = [];
const count = Math.floor((width * height) / 12000);
for (let i = 0; i < count; i++) {
particles.push({
x: Math.random() * width,
y: Math.random() * height,
vx: (Math.random() - 0.5) * 0.5,
vy: (Math.random() - 0.5) * 0.5,
radius: Math.random() * 2.5 + 1,
opacity: Math.random() * 0.6 + 0.3
});
}
}
// Matrix rain columns
function initMatrix() {
const fontSize = 14;
const columns = Math.floor(width / fontSize);
matrixDrops = [];
for (let i = 0; i < columns; i++) {
matrixDrops.push({
y: Math.random() * -100,
speed: 0.3 + Math.random() * 0.4,
x: i * fontSize,
active: Math.random() > 0.6
});
}
}
// Track mouse for interactive effects
document.addEventListener('mousemove', (e) => {
const rect = hero.getBoundingClientRect();
mouseX = e.clientX - rect.left;
mouseY = e.clientY - rect.top;
});
function draw() {
// Clear with fade effect
ctx.fillStyle = 'rgba(5, 5, 5, 0.1)';
ctx.fillRect(0, 0, width, height);
// Draw matrix rain
const fontSize = 14;
ctx.font = fontSize + 'px JetBrains Mono, Consolas, monospace';
matrixDrops.forEach((drop) => {
if (!drop.active) return;
const char = charArray[Math.floor(Math.random() * charArray.length)];
const opacity = 0.2 + Math.random() * 0.2;
if (Math.random() > 0.93) {
ctx.fillStyle = `rgba(0, 229, 255, ${opacity + 0.4})`;
} else {
ctx.fillStyle = `rgba(0, 255, 65, ${opacity})`;
}
ctx.fillText(char, drop.x, drop.y * fontSize);
if (drop.y * fontSize > height && Math.random() > 0.97) {
drop.y = 0;
drop.active = Math.random() > 0.5;
}
drop.y += drop.speed;
});
// Draw particles with connections
particles.forEach((p, i) => {
p.x += p.vx;
p.y += p.vy;
// Mouse interaction
const dx = mouseX - p.x;
const dy = mouseY - p.y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < 150) {
p.vx -= dx * 0.0001;
p.vy -= dy * 0.0001;
}
// Boundary wrap
if (p.x < 0) p.x = width;
if (p.x > width) p.x = 0;
if (p.y < 0) p.y = height;
if (p.y > height) p.y = 0;
// Draw particle with glow
ctx.beginPath();
ctx.arc(p.x, p.y, p.radius, 0, Math.PI * 2);
ctx.fillStyle = `rgba(0, 229, 255, ${p.opacity})`;
ctx.shadowColor = '#00e5ff';
ctx.shadowBlur = 8;
ctx.fill();
ctx.shadowBlur = 0;
// Draw connections
particles.slice(i + 1).forEach((p2) => {
const dx = p.x - p2.x;
const dy = p.y - p2.y;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < 130) {
ctx.beginPath();
ctx.moveTo(p.x, p.y);
ctx.lineTo(p2.x, p2.y);
ctx.strokeStyle = `rgba(0, 188, 212, ${0.2 * (1 - distance / 130)})`;
ctx.lineWidth = 0.6;
ctx.stroke();
}
});
});
requestAnimationFrame(draw);
}
window.addEventListener('resize', resize);
resize();
draw();
})();
</script>
</body>
</html>