-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
819 lines (758 loc) · 25.3 KB
/
index.html
File metadata and controls
819 lines (758 loc) · 25.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Machine Learning Notebooks</title>
<script src="https://cdn.tailwindcss.com"></script>
<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=Poppins:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<style>
:root {
--primary: #6366f1;
--secondary: #8b5cf6;
--accent: #ec4899;
--dark: #0f172a;
--light: #f8fafc;
--glow-color: rgba(99, 102, 241, 0.5);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
background: linear-gradient(-45deg, #0f172a, #1e293b, #1e1b4b, #312e81);
background-size: 400% 400%;
animation: gradientBG 15s ease infinite;
color: var(--light);
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
@keyframes gradientBG {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(
circle at 10% 20%,
rgba(99, 102, 241, 0.1) 0%,
transparent 20%
),
radial-gradient(
circle at 90% 80%,
rgba(139, 92, 246, 0.1) 0%,
transparent 20%
),
radial-gradient(
circle at 50% 30%,
rgba(236, 72, 153, 0.1) 0%,
transparent 30%
);
z-index: -1;
}
.hero-gradient {
background: linear-gradient(
135deg,
var(--primary),
var(--secondary),
var(--accent)
);
background-size: 200% 200%;
animation: gradientBG 12s ease infinite;
}
.glass {
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.card-hover {
transition: all 0.4s ease;
transform-style: preserve-3d;
perspective: 1000px;
}
.card-hover:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.2);
}
.sparkle::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: radial-gradient(circle, #ffffffaa 1px, transparent 1px);
background-size: 20px 20px;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 1;
}
.sparkle:hover::before {
opacity: 0.3;
}
.notebook-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 16px;
font-size: 24px;
margin-bottom: 20px;
background: rgba(255, 255, 255, 0.1);
}
.search-container {
transition: all 0.3s ease;
}
.search-container:focus-within {
transform: scale(1.02);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tag {
display: inline-block;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
background: rgba(255, 255, 255, 0.1);
margin: 0 4px 4px 0;
transition: all 0.2s ease;
}
.tag:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.2);
}
.floating {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%,
100% {
transform: translateY(0) rotate(0deg);
}
50% {
transform: translateY(-20px) rotate(5deg);
}
}
.grid-layout {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 25px;
}
.category-filter {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 30px;
}
/* UPDATED: Category button styling */
.category-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
color: white;
padding: 8px 16px;
border-radius: 30px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
position: relative;
overflow: hidden;
z-index: 1;
}
.category-btn::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
background: var(--primary);
transition: width 0.3s ease;
z-index: -1;
}
.category-btn:hover::before,
.category-btn.active::before {
width: 100%;
}
.category-btn:hover,
.category-btn.active {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
}
}
/* UPDATED: Clean category filter header */
.category-header {
position: relative;
padding-bottom: 12px;
margin-bottom: 20px;
}
.category-header::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(
90deg,
transparent,
rgba(99, 102, 241, 0.7),
transparent
);
}
.glow-text {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
0 0 20px rgba(255, 255, 255, 0.6);
}
.card-entrance {
animation: cardEntrance 0.6s ease-out forwards;
opacity: 0;
transform: translateY(30px);
}
@keyframes cardEntrance {
to {
opacity: 1;
transform: translateY(0);
}
}
.holographic {
background: linear-gradient(
45deg,
rgba(99, 102, 241, 0.1),
rgba(139, 92, 246, 0.1),
rgba(236, 72, 153, 0.1)
);
position: relative;
overflow: hidden;
}
.holographic::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
45deg,
transparent,
rgba(255, 255, 255, 0.1),
transparent
);
transform: rotate(45deg);
animation: holographicEffect 4s linear infinite;
}
@keyframes holographicEffect {
0% {
transform: rotate(45deg) translateX(-50%);
}
100% {
transform: rotate(45deg) translateX(50%);
}
}
.tilt-hover {
transition: transform 0.3s ease;
}
.tilt-hover:hover {
transform: rotate(2deg) scale(1.03);
}
.particle {
position: absolute;
border-radius: 50%;
pointer-events: none;
opacity: 0.7;
z-index: -1;
}
</style>
</head>
<body class="px-4 py-8 sm:px-8">
<!-- Floating shapes decoration -->
<div
class="absolute top-20 left-10 w-12 h-12 rounded-full bg-purple-500/20 floating"
></div>
<div
class="absolute top-1/3 right-20 w-16 h-16 rounded-full bg-pink-500/20 floating"
style="animation-delay: 1s"
></div>
<div
class="absolute bottom-1/4 left-1/4 w-14 h-14 rounded-full bg-indigo-500/20 floating"
style="animation-delay: 2s"
></div>
<div
class="absolute top-1/2 right-1/3 w-10 h-10 rounded-full bg-cyan-500/20 floating"
style="animation-delay: 3s"
></div>
<div class="max-w-6xl mx-auto">
<!-- Hero Section -->
<header
class="hero-gradient rounded-3xl p-8 mb-12 text-center overflow-hidden relative holographic"
>
<div class="absolute top-0 left-0 w-full h-full opacity-10">
<div
class="absolute top-10 left-10 w-24 h-24 rounded-full bg-white"
></div>
<div
class="absolute bottom-10 right-10 w-32 h-32 rounded-full bg-white"
></div>
<div
class="absolute top-1/2 left-1/3 w-16 h-16 rounded-full bg-white"
></div>
</div>
<div class="relative z-10">
<h1 class="text-4xl md:text-5xl font-bold mb-4 glow-text">
<span class="text-white">Machine Learning</span>
<span class="text-cyan-300">Notebooks</span>
</h1>
<p class="text-lg text-white/90 max-w-2xl mx-auto mb-8">
Master key machine learning concepts from ground up, with deep
mathematical rigor and clear intuitive explanations.
</p>
<div class="flex justify-center gap-4 mb-8">
<div class="pulse w-3 h-3 rounded-full bg-green-400"></div>
<p class="text-white/80">16 notebooks available</p>
</div>
<div class="glass rounded-xl max-w-2xl mx-auto p-4 search-container">
<div class="flex items-center">
<i class="fas fa-search text-white/70 ml-2 mr-3"></i>
<input
type="text"
placeholder="Search notebooks..."
class="bg-transparent border-0 text-white w-full focus:outline-none placeholder:text-white/60"
id="searchInput"
/>
<button
class="bg-white/10 hover:bg-white/20 transition px-4 py-2 rounded-lg text-sm font-medium ml-2"
>
Search
</button>
</div>
</div>
</div>
</header>
<!-- About Me Section - REMOVED HOVER ANIMATION -->
<section class="glass rounded-3xl p-8 mb-12 relative overflow-hidden">
<div class="flex flex-col md:flex-row items-center gap-8">
<div class="flex-shrink-0">
<div
class="w-40 h-40 rounded-full overflow-hidden border-4 border-white/20"
>
<div
class="w-full h-full bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center"
>
<i class="fas fa-user text-white text-6xl"></i>
</div>
</div>
</div>
<div class="flex-grow">
<h2 class="text-3xl font-bold mb-4 text-white glow-text">
About Me
</h2>
<p class="text-white/90 mb-4">
Hi, I'm Aaron, a ML enthusiast. I began my ML journey a year ago.
While I was immediately captivated by its power, I also realized
how difficult it is for beginners to truly grasp the concepts,
especially the underlying intuition and mathematical foundations.
Despite the abundance of resources, many are overly complex,
overly simplistic, or scattered across different platforms, and a
unified, structured path that can guide someone from the ground up
to mastery is often missing.
</p>
<p class="text-white/90 mb-4">
That's why I created this portfolio: as a curated record of my
learning to break down ML topics with both intuitive insights and
in-depth mathematical explanations. I believe to truly master ML,
one needs to understand not just how things work, but why they
work from both a intuitional and theoretical lens. My goal is to
make complex topics more accessible with clear, structured, and
intuitive explanations. These notebooks will help you build a
strong foundation, but they are theory-heavy, which requires
strong mathematical backgrounds. Beyond that, I highly encourage
implementing the ideas to deepen your understanding. This is an
ongoing, open-source project, and I welcome contributions from
anyone to help expand and refine these resources. I hope this
portfolio serves as a helpful companion on your journey.
</p>
<p class="text-white/90 mb-4">
Note: These notebooks haven't been professionally reviewed, so
errors may be present. Please read them with a critical eye. I'm
continuously learning and welcome any feedback or suggestions. If
you spot a mistake or have ideas for new content, feel free to
reach out or contribute via GitHub.
</p>
</div>
</div>
<div class="absolute bottom-4 right-4 text-white/10">
<i class="fas fa-code text-6xl"></i>
</div>
</section>
<!-- UPDATED: Category Filters with cleaner styling -->
<div class="mb-10">
<div class="category-header">
<h2 class="text-xl font-semibold mb-2 glow-text">
Filter by Category
</h2>
</div>
<div class="category-filter">
<button class="category-btn active" data-category="all">
<i class="fas fa-layer-group"></i> All
</button>
<button class="category-btn" data-category="supervised">
<i class="fas fa-chart-line"></i> Supervised
</button>
<button class="category-btn" data-category="unsupervised">
<i class="fas fa-project-diagram"></i> Unsupervised
</button>
<button class="category-btn" data-category="deep">
<i class="fas fa-brain"></i> Deep Learning
</button>
<button class="category-btn" data-category="nlp">
<i class="fas fa-language"></i> NLP
</button>
<button class="category-btn" data-category="generative">
<i class="fas fa-magic"></i> Generative
</button>
<button class="category-btn" data-category="vision">
<i class="fas fa-eye"></i> Vision
</button>
<button class="category-btn" data-category="rl">
<i class="fas fa-gamepad"></i> Reinforcement
</button>
</div>
</div>
<!-- Notebook Grid -->
<div id="notebook-grid" class="grid-layout">
<!-- Cards will be inserted here by JavaScript -->
</div>
<!-- Contribute Section - REMOVED HOVER ANIMATION -->
<section
class="glass rounded-3xl p-8 mt-16 mb-8 relative overflow-hidden"
>
<div class="text-center max-w-3xl mx-auto">
<div
class="w-20 h-20 rounded-full bg-gradient-to-br from-green-500 to-teal-400 flex items-center justify-center mx-auto mb-6"
>
<i class="fab fa-github text-white text-4xl"></i>
</div>
<h2 class="text-3xl font-bold mb-4 text-white glow-text">
Help Improve These Notebooks
</h2>
<p class="text-white/90 mb-6">
Found an issue or have suggestions for improvement? I welcome
contributions from the community!
</p>
<p class="text-white/90 mb-8">
If you'd like to contribute fixes, improvements, or new notebooks,
please submit a Pull Request on GitHub. Your contributions help make
this resource better for everyone in the ML community.
</p>
<a
href="https://github.com/guaaaaa/ML_Notebook"
target="_blank"
class="inline-block bg-gradient-to-r from-green-500 to-teal-500 hover:from-green-600 hover:to-teal-600 text-white font-bold py-3 px-8 rounded-full transition transform hover:scale-105 shadow-lg"
>
<i class="fab fa-github mr-2"></i> Submit a Pull Request
</a>
<div class="mt-4 text-sm text-white/70">
<i class="fas fa-external-link-alt mr-2"></i
>https://github.com/guaaaaa/ML_Notebook
</div>
</div>
<div class="absolute top-4 left-4 text-white/10">
<i class="fas fa-hands-helping text-6xl"></i>
</div>
<div class="absolute bottom-4 right-4 text-white/10">
<i class="fas fa-code-branch text-6xl"></i>
</div>
</section>
<!-- Footer -->
<footer class="mt-16 pt-8 pb-12 border-t border-white/10 text-center">
<div class="flex justify-center space-x-6 mb-6">
<a
href="https://github.com/guaaaaa"
class="text-white/70 hover:text-white transition transform hover:scale-125"
>
<i class="fab fa-github text-xl"></i>
</a>
<a
href="https://www.linkedin.com/in/aaron-gu-a3865823a/"
class="text-white/70 hover:text-white transition transform hover:scale-125"
>
<i class="fab fa-linkedin text-xl"></i>
</a>
</div>
<p class="text-white/60">
© 2025 Machine Learning Notebooks. All rights reserved.
</p>
</footer>
</div>
<script>
const notebooks = [
{
name: "Anomaly Detection",
link: "Anomaly%20detection.html",
category: "unsupervised",
icon: "fas fa-search",
tags: ["outliers", "detection", "security"],
new: false,
},
{
name: "Convolutional Neural Networks",
link: "CNN.html",
category: "vision",
icon: "fas fa-image",
tags: ["convolutional", "vision", "image"],
new: false,
},
{
name: "Classifications",
link: "Classifications.html",
category: "supervised",
icon: "fas fa-shapes",
tags: ["classification", "logistic"],
new: false,
},
{
name: "Clustering",
link: "Clustering.html",
category: "unsupervised",
icon: "fas fa-object-group",
tags: ["k-means", "grouping"],
new: false,
},
{
name: "Concepts & Guilds",
link: "Concepts%20&%20Guild.html",
category: "general",
icon: "fas fa-book",
tags: ["concepts", "ml-cycles", "feature-engineering"],
new: false,
},
{
name: "Decision Tree",
link: "Decision%20tree.html",
category: "supervised",
icon: "fas fa-tree",
tags: ["tree", "ensemble", "random-forest"],
new: false,
},
{
name: "Diffusion Models",
link: "Diffusion.html",
category: "generative",
icon: "fas fa-cloud",
tags: ["generative", "images"],
new: false,
},
{
name: "Principal Component Analysis",
link: "Principal%20components%20analysis.html",
category: "unsupervised",
icon: "fas fa-compress",
tags: ["PCA", "dimensionality", "feature-reduction"],
new: false,
},
{
name: "Recommender Systems",
link: "Recommender%20system.html",
category: "unsupervised",
icon: "fas fa-star",
tags: ["recommendation", "collaborative-filtering"],
new: false,
},
{
name: "Generative Adversarial Networks",
link: "GANs.html",
category: "generative",
icon: "fas fa-chess",
tags: ["GAN", "generative", "images"],
new: false,
},
{
name: "Linear Regression",
link: "Linear%20regression.html",
category: "supervised",
icon: "fas fa-chart-line",
tags: ["regression", "statistics", "prediction"],
new: false,
},
{
name: "Naive Bayes",
link: "Naive%20bayes.html",
category: "supervised",
icon: "fas fa-calculator",
tags: ["bayes", "probability", "spam-filter"],
new: false,
},
{
name: "Natural Language Processing",
link: "NLP.html",
category: "nlp",
icon: "fas fa-language",
tags: ["NLP", "text", "transformers"],
new: false,
},
{
name: "Neural Network",
link: "Neural%20network.html",
category: "deep",
icon: "fas fa-network-wired",
tags: ["NN", "perceptron", "backpropagation"],
new: false,
},
{
name: "Reinforcement Learning",
link: "Reinforcement%20learning.html",
category: "rl",
icon: "fas fa-gamepad",
tags: ["RL", "Q-learning", "agent"],
new: false,
},
{
name: "Variational Autoencoders",
link: "VAEs.html",
category: "generative",
icon: "fas fa-project-diagram",
tags: ["VAE", "generative", "latent-space"],
new: false,
},
];
const grid = document.getElementById("notebook-grid");
const searchInput = document.getElementById("searchInput");
const categoryButtons = document.querySelectorAll(".category-btn");
// Function to render notebooks
function renderNotebooks(notebooksToRender) {
grid.innerHTML = "";
notebooksToRender.forEach((nb, i) => {
const card = document.createElement("a");
card.href = nb.link;
card.target = "_blank";
card.className =
"glass card-hover sparkle p-6 rounded-2xl transition relative overflow-hidden";
card.style.animationDelay = `${i * 0.05}s`;
card.innerHTML = `
<div class="flex justify-between items-start">
<div class="notebook-icon">
<i class="${nb.icon}"></i>
</div>
${
nb.new
? `<span class="bg-pink-500 text-white px-2 py-1 rounded-full text-xs font-bold">NEW</span>`
: ""
}
</div>
<h2 class="text-xl font-bold mb-3 text-white">${nb.name}</h2>
<div class="flex flex-wrap">
${nb.tags.map((tag) => `<span class="tag">${tag}</span>`).join("")}
</div>
<div class="mt-4 flex items-center text-sm text-cyan-300 font-medium">
<span>View Notebook</span>
<i class="fas fa-arrow-right ml-2"></i>
</div>
<div class="absolute bottom-4 right-4 text-white/20">
<i class="fab fa-python text-2xl"></i>
</div>
`;
// Add entrance animation
card.style.opacity = "0";
card.style.transform = "translateY(30px)";
setTimeout(() => {
card.style.transition = "opacity 0.6s ease, transform 0.6s ease";
card.style.opacity = "1";
card.style.transform = "translateY(0)";
}, i * 100);
grid.appendChild(card);
});
}
// Filter notebooks by search term
function filterNotebooks() {
const searchTerm = searchInput.value.toLowerCase();
const activeCategory = document.querySelector(".category-btn.active")
.dataset.category;
const filtered = notebooks.filter((nb) => {
const matchesSearch =
nb.name.toLowerCase().includes(searchTerm) ||
nb.tags.some((tag) => tag.toLowerCase().includes(searchTerm));
const matchesCategory =
activeCategory === "all" || nb.category === activeCategory;
return matchesSearch && matchesCategory;
});
renderNotebooks(filtered);
}
// Set active category
categoryButtons.forEach((btn) => {
btn.addEventListener("click", () => {
categoryButtons.forEach((b) => b.classList.remove("active"));
btn.classList.add("active");
filterNotebooks();
// Add animation effect
btn.style.transform = "scale(0.95)";
setTimeout(() => {
btn.style.transform = "";
}, 300);
});
});
// Initialize with all notebooks
renderNotebooks(notebooks);
// Add search functionality
searchInput.addEventListener("input", filterNotebooks);
// Add scroll animation to cards
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.style.opacity = "1";
entry.target.style.transform = "translateY(0)";
}
});
},
{ threshold: 0.1 }
);
document.querySelectorAll(".card-hover").forEach((card) => {
card.style.opacity = "0";
card.style.transform = "translateY(20px)";
card.style.transition = "opacity 0.6s ease, transform 0.6s ease";
observer.observe(card);
});
</script>
</body>
</html>