Skip to content

Commit f08f504

Browse files
docs: update architecture wording and OS icon
1 parent e1d108c commit f08f504

1 file changed

Lines changed: 48 additions & 1 deletion

File tree

site/app/page.jsx

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function HomePage() {
5656
<div className="mt-8 flex flex-wrap items-center gap-3">
5757
<a
5858
href="/docs"
59-
className="inline-flex items-center gap-2 rounded-lg border border-zinc-200 bg-white px-5 py-3 text-sm font-semibold text-zinc-900 shadow-sm transition-colors hover:border-zinc-300 hover:bg-zinc-50"
59+
className="inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-white px-5 py-3 text-sm font-semibold text-zinc-900 shadow-sm transition-colors hover:border-zinc-300 hover:bg-zinc-50"
6060
>
6161
<span>🚀</span> Get started
6262
</a>
@@ -104,6 +104,53 @@ export default function HomePage() {
104104
</div>
105105
</section>
106106

107+
{/* Architecture Section */}
108+
<section className="border-t border-zinc-200 bg-zinc-50">
109+
<div className="mx-auto max-w-6xl px-6 py-20 lg:py-24">
110+
<div className="mb-12 text-center">
111+
<h2 className="text-3xl font-bold tracking-tight text-zinc-900">
112+
Simple Runtime Architecture
113+
</h2>
114+
<p className="mt-4 text-lg text-zinc-600">
115+
How your JavaScript code interacts with the system.
116+
</p>
117+
</div>
118+
<div className="mx-auto flex max-w-4xl flex-col items-center justify-between gap-8 rounded-2xl border border-zinc-200 bg-white p-8 shadow-sm md:flex-row">
119+
<div className="flex-1 text-center">
120+
<div className="mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-brand-100 text-xl font-black text-brand-700">V8</div>
121+
<h3 className="mt-4 font-semibold text-zinc-900">JavaScript</h3>
122+
<p className="mt-2 text-sm text-zinc-600">Executes your JS/ESM code at lightning speed.</p>
123+
</div>
124+
<div className="hidden text-brand-400 md:block">
125+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
126+
</div>
127+
<div className="flex-1 text-center">
128+
<div className="mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-orange-100 text-2xl">🦀</div>
129+
<h3 className="mt-4 font-semibold text-zinc-900">Op Layer</h3>
130+
<p className="mt-2 text-sm text-zinc-600">Drives the event loop and low-cost boundary calls.</p>
131+
</div>
132+
<div className="hidden text-brand-400 md:block">
133+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
134+
</div>
135+
<div className="flex-1 text-center">
136+
<div className="mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-blue-100 text-2xl">🧩</div>
137+
<h3 className="mt-4 font-semibold text-zinc-900">Runtime Modules</h3>
138+
<p className="mt-2 text-sm text-zinc-600">Standard Web APIs like fetch, crypto, and streams.</p>
139+
</div>
140+
<div className="hidden text-brand-400 md:block">
141+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
142+
</div>
143+
<div className="flex-1 text-center">
144+
<div className="mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-zinc-100 text-2xl">
145+
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="text-zinc-600"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line></svg>
146+
</div>
147+
<h3 className="mt-4 font-semibold text-zinc-900">OS Level</h3>
148+
<p className="mt-2 text-sm text-zinc-600">Kernel networking, file system, and raw system I/O.</p>
149+
</div>
150+
</div>
151+
</div>
152+
</section>
153+
107154
{/* Why Choose Section */}
108155
<WhyChooseSection />
109156

0 commit comments

Comments
 (0)