-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
764 lines (714 loc) · 32 KB
/
index.html
File metadata and controls
764 lines (714 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
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
<!doctype html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="crow-icon-white.ico" />
<title>crow-cli - Minimal Native ACP Agent Framework</title>
<meta
name="description"
content="crow-cli: A minimal reference implementation of a native ACP agent. No frameworks, just OpenAI SDK, FastMCP, and SQLAlchemy."
/>
<script src="https://cdn.tailwindcss.com"></script>
<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@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
crow: {
DEFAULT: "#2600ab",
50: "#f5f3ff",
100: "#ede9fe",
200: "#ddd6fe",
300: "#c4b5fd",
400: "#a78bfa",
500: "#8b5cf6",
600: "#7c3aed",
700: "#6d28d9",
800: "#5b21b6",
900: "#4c1d95",
950: "#2600ab",
1000: "#2bd445",
1100: "#21dead",
1200: "#3ec1b1",
},
},
fontFamily: {
sans: ["Inter", "system-ui", "sans-serif"],
},
},
},
};
</script>
<style>
body {
font-family: "Inter", sans-serif;
background-color: #1c005f;
}
.font-display {
font-weight: 700;
font-style: italic;
letter-spacing: -0.02em;
}
.font-display-plain {
font-weight: 700;
letter-spacing: -0.02em;
}
.gradient-text {
background: linear-gradient(
135deg,
#1c005f 0%,
#8a6cf7 50%,
#b29dff 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.glow {
box-shadow:
0 0 20px rgba(28, 0, 95, 0.3),
0 0 40px rgba(138, 108, 247, 0.1);
}
.code-block {
background: linear-gradient(180deg, #2a0080 0%, #1c005f 100%);
border: 1px solid rgba(138, 108, 247, 0.2);
}
.feature-card {
background: rgba(28, 0, 95, 0.05);
border: 1px solid rgba(138, 108, 247, 0.1);
transition: all 0.3s ease;
}
.feature-card:hover {
background: rgba(28, 0, 95, 0.1);
border-color: rgba(138, 108, 247, 0.3);
transform: translateY(-2px);
}
.grid-bg {
background-image: radial-gradient(
circle at 1px 1px,
rgba(167, 139, 250, 0.15) 1px,
transparent 0
);
background-size: 40px 40px;
}
/* Scroll animations */
.fade-in-section {
opacity: 0;
transform: translateY(30px);
transition:
opacity 0.8s ease-out,
transform 0.8s ease-out;
will-change: opacity, transform;
}
.fade-in-section.is-visible {
opacity: 1;
transform: translateY(0);
}
/* Stagger delay for child elements */
.fade-in-section .stagger-child:nth-child(1) {
transition-delay: 0.1s;
}
.fade-in-section .stagger-child:nth-child(2) {
transition-delay: 0.2s;
}
.fade-in-section .stagger-child:nth-child(3) {
transition-delay: 0.3s;
}
.fade-in-section .stagger-child:nth-child(4) {
transition-delay: 0.4s;
}
.fade-in-section .stagger-child:nth-child(5) {
transition-delay: 0.5s;
}
.fade-in-section .stagger-child:nth-child(6) {
transition-delay: 0.6s;
}
/* Sticky scroll progress bar */
.scroll-progress {
position: fixed;
top: 0;
left: 0;
height: 3px;
background: linear-gradient(90deg, #2600ab, #8b5cf6);
z-index: 1000;
transition: width 0.1s ease-out;
}
/* Parallax effect for hero */
.parallax-bg {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body class="text-gray-300 antialiased overflow-x-hidden">
<!-- Scroll Progress Bar -->
<div class="scroll-progress" id="scrollProgress"></div>
<!-- Navigation -->
<nav
class="fixed top-0 w-full z-50 bg-[#1c005f]/80 backdrop-blur-md border-b border-crow-900/30"
>
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center space-x-2">
<span class="font-display text-xl text-white"
>crow</span
>
<img src="crow-logo.svg" class="w-6 h-6" alt="crow" />
</div>
<div class="hidden md:flex space-x-8">
<a
href="#install"
class="text-sm font-medium hover:text-crow-300 transition-colors"
>Install</a
>
<a
href="#features"
class="text-sm font-medium hover:text-crow-300 transition-colors"
>Features</a
>
<a
href="#architecture"
class="text-sm font-medium hover:text-crow-300 transition-colors"
>Architecture</a
>
<a
href="/docs/"
class="text-sm font-medium hover:text-crow-300 transition-colors"
>Docs</a
>
</div>
<a
href="https://github.com/crow-cli/crow-cli"
target="_blank"
class="flex items-center space-x-2 text-sm font-medium text-crow-300 hover:text-crow-200 transition-colors"
>
<i data-lucide="github" class="w-4 h-4"></i>
<span>GitHub</span>
</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative pt-32 pb-20 lg:pt-40 lg:pb-32 overflow-hidden">
<div class="absolute inset-0 grid-bg opacity-50"></div>
<div
class="absolute top-0 left-1/2 -translate-x-1/2 w-full h-full max-w-4xl"
>
<div
class="absolute top-20 left-10 w-72 h-72 bg-crow-400/20 rounded-full blur-3xl"
></div>
<div
class="absolute bottom-20 right-10 w-96 h-96 bg-crow-800/20 rounded-full blur-3xl"
></div>
</div>
<div
class="relative max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 text-center"
>
<div
class="inline-flex items-center space-x-2 px-4 py-2 rounded-full bg-crow-950/50 border border-crow-800/50 mb-8"
>
<span
class="flex h-2 w-2 rounded-full bg-crow-400 animate-pulse"
></span>
<span class="text-sm font-medium text-crow-200"
>Native ACP Agent Reference Implementation</span
>
</div>
<h1
class="font-display text-5xl md:text-7xl lg:text-8xl text-white mb-6 tracking-tight"
>
crow-cli
</h1>
<p
class="text-xl md:text-2xl text-gray-400 max-w-2xl mx-auto mb-12 leading-relaxed"
>
Minimal. Extensible. Native. A reference implementation of
the Agent Client Protocol with
<span class="text-crow-1200 font-semibold"
>zero frameworks</span
>—just pure Python, OpenAI SDK, FastMCP, and SQLAlchemy.
</p>
<div
class="flex flex-col sm:flex-row gap-4 justify-center items-center"
>
<button
onclick="
copyToClipboard(
'uv tool install crow-cli --python 3.14',
)
"
class="group relative px-8 py-4 bg-crow-1200 hover:bg-crow-400 text-white rounded-lg font-mono text-sm transition-all glow flex items-center space-x-3"
>
<i data-lucide="terminal" class="w-4 h-4"></i>
<span>uv tool install crow-cli</span>
<i
data-lucide="copy"
class="w-4 h-4 opacity-50 group-hover:opacity-100 transition-opacity"
></i>
</button>
<a
href="/docs/"
class="px-8 py-4 rounded-lg border border-crow-800 hover:border-crow-400 text-crow-300 hover:text-white transition-all text-sm font-medium"
>
Documentation →
</a>
</div>
<div class="mt-4 text-xs text-gray-500 font-mono">
Or run directly with
<span class="text-crow-400">uvx crow-cli</span>
</div>
</div>
</section>
<!-- Install Section -->
<section id="install" class="py-20 relative">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h2
class="font-display-plain text-3xl md:text-4xl text-white mb-8 text-center"
>
Get Started in Seconds
</h2>
<div class="space-y-6">
<div
class="code-block rounded-xl p-6 font-mono text-sm overflow-x-auto"
>
<div
class="flex items-center justify-between mb-4 text-gray-500 text-xs uppercase tracking-wider"
>
<span>Installation</span>
<button
onclick="
copyToClipboard(
'uv tool install crow-cli --python 3.14',
)
"
class="hover:text-crow-300 transition-colors flex items-center space-x-1"
>
<i data-lucide="copy" class="w-3 h-3"></i>
<span>Copy</span>
</button>
</div>
<code class="text-gray-300">
<span class="text-crow-400">$</span>
<span class="text-green-400">uv</span> tool install
crow-cli --python 3.14<br />
<span class="text-gray-500"
># Or run without installing:</span
><br />
<span class="text-crow-400">$</span>
<span class="text-green-400">uvx</span> crow-cli
</code>
</div>
<div
class="code-block rounded-xl p-6 font-mono text-sm overflow-x-auto"
>
<div
class="flex items-center justify-between mb-4 text-gray-500 text-xs uppercase tracking-wider"
>
<span>Initialize Project</span>
<button
onclick="copyToClipboard('uvx crow-cli init')"
class="hover:text-crow-300 transition-colors flex items-center space-x-1"
>
<i data-lucide="copy" class="w-3 h-3"></i>
<span>Copy</span>
</button>
</div>
<code class="text-gray-300">
<span class="text-crow-400">$</span>
<span class="text-green-400">uvx</span>
crow-cli init<br />
<span class="text-gray-500"
># Creates project structure with:</span
><br />
<span class="text-gray-500"
># - Docker Compose with SearXNG</span
><br />
<span class="text-gray-500"
># - Agent configuration</span
><br />
<span class="text-gray-500"
># - Minimal boilerplate</span
>
</code>
</div>
</div>
</div>
</section>
<!-- ACP Registry Installation -->
<section
id="acp-registry"
class="py-20 bg-gradient-to-b from-crow-950/30 to-transparent"
>
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-10">
<h2
class="font-display-plain text-3xl md:text-4xl text-white mb-4"
>
Install from Your Editor
</h2>
<p class="text-gray-400 max-w-2xl mx-auto">
crow-cli is available on the ACP Registry. Install it
directly from Zed, JetBrains, or any ACP-compatible
client.
</p>
</div>
<div
class="rounded-xl overflow-hidden border border-crow-800/50 shadow-2xl"
>
<img
src="https://raw.githubusercontent.com/crow-cli/crow-cli.github.io/refs/heads/main/img/zed-agent-registry.png"
alt="ACP Registry in Zed editor showing crow-cli and other agents"
class="w-full h-auto"
/>
</div>
</div>
</section>
<!-- Features Grid -->
<section id="features" class="py-20 bg-crow-950/20">
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2
class="font-display-plain text-3xl md:text-4xl text-white mb-4"
>
Built for Simplicity
</h2>
<p class="text-gray-400 max-w-2xl mx-auto">
No bloat. No unnecessary abstractions. Just the
essentials for building native ACP agents.
</p>
</div>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="feature-card rounded-xl p-6 stagger-child">
<div
class="w-12 h-12 rounded-lg bg-crow-900/50 flex items-center justify-center mb-4"
>
<i
data-lucide="search"
class="w-6 h-6 text-crow-400"
></i>
</div>
<h3 class="text-white font-semibold mb-2">
SearXNG Included
</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Built-in web browser capabilities via Docker
Compose. No API keys required for search.
</p>
</div>
<div class="feature-card rounded-xl p-6 stagger-child">
<div
class="w-12 h-12 rounded-lg bg-crow-900/50 flex items-center justify-center mb-4"
>
<i
data-lucide="zap"
class="w-6 h-6 text-crow-400"
></i>
</div>
<h3 class="text-white font-semibold mb-2">FastMCP</h3>
<p class="text-gray-400 text-sm leading-relaxed">
All tools are build on top of FastMCP because you
don't need a tool calling framework in 2026.
</p>
</div>
<div class="feature-card rounded-xl p-6 stagger-child">
<div
class="w-12 h-12 rounded-lg bg-crow-900/50 flex items-center justify-center mb-4"
>
<i
data-lucide="brain"
class="w-6 h-6 text-crow-400"
></i>
</div>
<h3 class="text-white font-semibold mb-2">
OpenAI SDK
</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Direct integration with OpenAI's Python SDK. No
wrapper frameworks between you and the API.
</p>
</div>
<div class="feature-card rounded-xl p-6 stagger-child">
<div
class="w-12 h-12 rounded-lg bg-crow-900/50 flex items-center justify-center mb-4"
>
<i
data-lucide="database"
class="w-6 h-6 text-crow-400"
></i>
</div>
<h3 class="text-white font-semibold mb-2">
SQLAlchemy
</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Robust database management with SQLAlchemy ORM.
Store agent state, memory, and logs efficiently.
</p>
</div>
<div class="feature-card rounded-xl p-6 stagger-child">
<div
class="w-12 h-12 rounded-lg bg-crow-900/50 flex items-center justify-center mb-4"
>
<i
data-lucide="container"
class="w-6 h-6 text-crow-400"
></i>
</div>
<h3 class="text-white font-semibold mb-2">
Docker Ready
</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Production-ready Docker Compose setup out of the
box. Isolate your agent environment completely.
</p>
</div>
<div class="feature-card rounded-xl p-6 stagger-child">
<div
class="w-12 h-12 rounded-lg bg-crow-900/50 flex items-center justify-center mb-4"
>
<i
data-lucide="puzzle"
class="w-6 h-6 text-crow-400"
></i>
</div>
<h3 class="text-white font-semibold mb-2">
Extensible Design
</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Minimal core, maximum flexibility. Reference
architecture that's easy to extend and customize.
</p>
</div>
</div>
</div>
</section>
<!-- Architecture Deep Dive -->
<section id="architecture" class="py-20">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h2
class="font-display-plain text-3xl md:text-4xl text-white mb-8 text-center"
>
Architecture Philosophy
</h2>
<div class="space-y-8">
<div class="relative pl-8 border-l-2 border-crow-800">
<div
class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-crow-400 border-4 border-[#1c005f]"
></div>
<h3 class="text-xl font-semibold text-white mb-2">
Zero Framework Dependencies
</h3>
<p class="text-gray-400 leading-relaxed">
We believe in transparency. crow-cli uses only
<code class="text-crow-300 bg-crow-950 px-1 rounded"
>openai</code
>,
<code class="text-crow-300 bg-crow-950 px-1 rounded"
>acp</code
>,
<code class="text-crow-300 bg-crow-950 px-1 rounded"
>fastmcp</code
>, and
<code class="text-crow-300 bg-crow-950 px-1 rounded"
>sqlalchemy</code
>. No black-box frameworks hiding the implementation
details.
</p>
</div>
<div class="relative pl-8 border-l-2 border-crow-800">
<div
class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-crow-400 border-4 border-[#1c005f]"
></div>
<h3 class="text-xl font-semibold text-white mb-2">
Native ACP Implementation
</h3>
<p class="text-gray-400 leading-relaxed">
Full compliance with the Agent Client Protocol
specification. Works with any ACP-compatible client.
</p>
</div>
<div class="relative pl-8 border-l-2 border-crow-800">
<div
class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-crow-400 border-4 border-[#1c005f]"
></div>
<h3 class="text-xl font-semibold text-white mb-2">
SearXNG Integration
</h3>
<p class="text-gray-400 leading-relaxed">
Unlimited search via self-hosted SearXNG instance in
Docker. API search keys? We don't need no stinking
API search keys.
</p>
</div>
</div>
</div>
</section>
<!-- Coming Soon -->
<section class="py-20 bg-gradient-to-b from-crow-950/30 to-transparent">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2
class="font-display-plain text-3xl md:text-4xl text-white mb-6"
>
The Ecosystem is Growing
</h2>
<div class="max-w-sm mx-auto">
<div
class="p-6 rounded-xl border border-crow-800/50 bg-crow-950/30"
>
<i
data-lucide="package"
class="w-8 h-8 text-crow-400 mx-auto mb-3"
></i>
<h3 class="text-white font-semibold mb-1">
Spec Kit Integration
</h3>
<p class="text-gray-400 text-sm">
Standardized agent specification tooling
</p>
</div>
</div>
</div>
</section>
<!-- ACP Registry Section -->
<section class="py-20">
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2
class="font-display-plain text-3xl md:text-4xl text-white mb-4"
>
ACP Registry
</h2>
<p class="text-gray-400 text-lg mb-8 max-w-xl mx-auto">
crow-cli is listed on the official Agent Client Protocol
Registry. Browse, compare, and install ACP-compatible
agents.
</p>
<a
href="https://agentclientprotocol.com/get-started/registry"
target="_blank"
class="inline-flex items-center gap-2 px-8 py-4 rounded-xl bg-crow-400 hover:bg-crow-300 text-crow-950 font-semibold text-lg transition-all group"
>
<i data-lucide="globe" class="w-5 h-5"></i>
View on ACP Registry
<i
data-lucide="arrow-right"
class="w-5 h-5 group-hover:translate-x-1 transition-transform"
></i>
</a>
</div>
</section>
<!-- Footer -->
<footer class="border-t border-crow-900/30 py-12 mt-20">
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<div
class="flex flex-col md:flex-row justify-between items-center"
>
<div class="flex items-center space-x-2 mb-4 md:mb-0">
<span class="font-display text-lg text-white"
>crow</span
>
<img
src="crow-icon-white.svg"
class="w-5 h-5"
alt="crow"
/>
</div>
<div class="flex space-x-6 text-sm text-gray-400">
<a
href="https://crow-ai.dev"
target="_blank"
class="hover:text-crow-300 transition-colors"
>crow-ai.dev</a
>
<a
href="https://github.com/crow-cli/crow-cli"
target="_blank"
class="hover:text-crow-300 transition-colors"
>GitHub</a
>
<a
href="https://docs.crow-ai.dev"
target="_blank"
class="hover:text-crow-300 transition-colors"
>Documentation</a
>
</div>
</div>
</div>
</footer>
<script src="https://unpkg.com/lucide@latest"></script>
<script>
lucide.createIcons();
function copyToClipboard(text) {
navigator.clipboard.writeText(text).then(() => {
// Create toast notification
const toast = document.createElement("div");
toast.className =
"fixed bottom-8 left-1/2 -translate-x-1/2 bg-crow-400 text-white px-6 py-3 rounded-lg shadow-lg z-50 text-sm font-medium animate-in fade-in slide-in-from-bottom-4 duration-300";
toast.textContent = "Copied to clipboard!";
document.body.appendChild(toast);
setTimeout(() => {
toast.classList.add(
"animate-out",
"fade-out",
"slide-out-to-bottom-4",
);
setTimeout(() => toast.remove(), 300);
}, 2000);
});
}
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
const target = document.querySelector(
this.getAttribute("href"),
);
if (target) {
target.scrollIntoView({
behavior: "smooth",
block: "start",
});
}
});
});
// Scroll progress bar
window.addEventListener("scroll", () => {
const winScroll =
document.body.scrollTop ||
document.documentElement.scrollTop;
const height =
document.documentElement.scrollHeight -
document.documentElement.clientHeight;
const scrolled = (winScroll / height) * 100;
document.getElementById("scrollProgress").style.width =
scrolled + "%";
});
// Intersection Observer for fade-in animations
const observerOptions = {
root: null,
rootMargin: "0px",
threshold: 0.1,
};
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("is-visible");
}
});
}, observerOptions);
// Observe all sections for fade-in
document.querySelectorAll("section").forEach((section) => {
section.classList.add("fade-in-section");
observer.observe(section);
});
</script>
</body>
</html>