Skip to content

Commit 4784f39

Browse files
committed
fix: code example
1 parent 22c8edf commit 4784f39

File tree

2 files changed

+47
-11
lines changed

2 files changed

+47
-11
lines changed

routes/index.tsx

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,58 @@ export default function Home() {
117117

118118
{/* Quick Start Section */}
119119
<section id="install" class="py-20 px-4 bg-base">
120-
<div class="container mx-auto text-center">
121-
<h2 class="text-4xl font-bold mb-8 text-text">Quick Start</h2>
122-
<p class="text-xl text-subtext1 mb-12">
120+
<div class="container mx-auto">
121+
<h2 class="text-4xl font-bold mb-8 text-text text-center">
122+
Quick Start
123+
</h2>
124+
<p class="text-xl text-subtext1 mb-12 text-center max-w-3xl mx-auto">
123125
Get productive with Andromeda in seconds
124126
</p>
125-
<div class="max-w-2xl mx-auto">
126-
<div class="text-left">
127-
<pre class="bg-black text-green-400 p-6 rounded-lg overflow-x-auto border border-surface1">
128-
<code>{`# Install Andromeda
127+
128+
<div class="w-full max-w-2xl mx-auto">
129+
<div class="bg-mantle rounded-xl border border-surface1 overflow-hidden">
130+
{/* Header with actions */}
131+
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 p-4 bg-surface0 border-b border-surface1">
132+
<h4
133+
class="text-sm sm:text-base font-semibold flex items-center gap-2"
134+
style={{ color: "var(--color-text)" }}
135+
>
136+
Installation & Usage
137+
</h4>
138+
<div class="flex gap-2">
139+
</div>
140+
</div>
141+
{/* Command display */}
142+
<div class="p-4">
143+
<pre
144+
class="text-sm sm:text-base font-mono leading-relaxed overflow-x-auto"
145+
style={{ color: "var(--color-text)" }}
146+
>
147+
<code>{`# Install Andromeda
129148
cargo install --git https://github.com/tryandromeda/andromeda
130149
131150
# Run your TypeScript/JavaScript files
132151
andromeda run app.ts`}</code>
133-
</pre>
152+
</pre>
153+
</div>
154+
</div>
155+
156+
{/* Info note */}
157+
<div class="mt-4 bg-surface0/50 rounded-lg border border-surface1/50 p-4">
158+
<p
159+
class="text-xs sm:text-sm leading-relaxed"
160+
style={{ color: "var(--color-subtext1)" }}
161+
>
162+
<span
163+
class="font-semibold"
164+
style={{ color: "var(--color-text)" }}
165+
>
166+
Note:
167+
</span>{" "}
168+
You'll need Rust installed to use the cargo command. For
169+
pre-built binaries and alternative installation methods, see the
170+
installation section above.
171+
</p>
134172
</div>
135173
</div>
136174
</div>

static/content/docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ guides, API references for the Andromeda JavaScript/TypeScript runtime.
3434

3535
- [**Contributing Guide**](/docs/contributing) - How to contribute to Andromeda
3636
- [**Building from Source**](/docs/building) - Compiling Andromeda yourself
37-
- [**Extension Development**](/docs/extension-development) - How the modular
38-
extension system works (TODO: WRITE THIS UP)
3937
- [**Testing Guide**](testing) - Running and writing tests
4038

4139
### 📋 Reference
4240

43-
- [**Examples Index**](examples/README) - Code examples and practical
41+
- [**Examples Index**](examples/index) - Code examples and practical
4442
demonstrations
4543
- [**FAQ**](faq) - Frequently asked questions
4644
- [**Troubleshooting**](troubleshooting) - Common issues and solutions

0 commit comments

Comments
 (0)