Skip to content

Commit e225f77

Browse files
committed
feat(app) add getting started page
1 parent 662e77d commit e225f77

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

app/docs/getting-started/page.tsx

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
import Link from "next/link";
2+
3+
import { Download } from "lucide-react";
4+
5+
import { Button } from "@/components/ui/button";
6+
import {
7+
Card,
8+
CardContent,
9+
CardDescription,
10+
CardHeader,
11+
CardTitle,
12+
} from "@/components/ui/card";
13+
14+
import CopyCommandButton from "../../docs/components/copy-command-button";
15+
16+
export default function GettingStartedPage() {
17+
return (
18+
<div className="container mx-auto px-4 py-8 max-w-4xl">
19+
<div className="space-y-8">
20+
{/* Header */}
21+
<div className="text-center space-y-4">
22+
<h1 className="text-4xl font-bold tracking-tight">Getting Started</h1>
23+
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
24+
Welcome to 8bitcn/ui! This guide will help you set up and start
25+
using our retro-styled components in your project.
26+
</p>
27+
</div>
28+
29+
{/* Quick Start */}
30+
<Card>
31+
<CardHeader>
32+
<CardTitle className="flex items-center gap-2">
33+
<Download className="h-5 w-5" />
34+
Quick Start
35+
</CardTitle>
36+
<CardDescription>
37+
Get up and running with 8bitcn/ui in just a few steps
38+
</CardDescription>
39+
</CardHeader>
40+
<CardContent className="space-y-4">
41+
<div className="space-y-3">
42+
<h3 className="font-semibold">
43+
1. Add the 8bitcn registry to your components.json
44+
</h3>
45+
<div className="bg-muted p-4 rounded-lg">
46+
<pre className="text-sm overflow-x-auto">
47+
{`{
48+
"registries": {
49+
"@8bitcn": "https://8bitcn.com/r/{name}.json"
50+
}
51+
}`}
52+
</pre>
53+
</div>
54+
</div>
55+
56+
<div className="space-y-3">
57+
<h3 className="font-semibold">2. Start adding components!</h3>
58+
<div className="bg-muted p-4 rounded-lg">
59+
<CopyCommandButton
60+
command="npx shadcn@latest add @8bitcn/login-form"
61+
copyCommand="npx shadcn@latest add @8bitcn/login-form"
62+
/>
63+
</div>
64+
</div>
65+
</CardContent>
66+
</Card>
67+
68+
{/* Support */}
69+
<Card>
70+
<CardHeader>
71+
<CardTitle>Need Help?</CardTitle>
72+
<CardDescription>
73+
We&apos;re here to help you get started with 8bitcn/ui
74+
</CardDescription>
75+
</CardHeader>
76+
<CardContent>
77+
<div className="flex flex-col sm:flex-row gap-4">
78+
<Button asChild variant="outline" className="flex-1">
79+
<Link
80+
href="https://github.com/theorcdev/8bitcn"
81+
target="_blank"
82+
>
83+
GitHub Repository
84+
</Link>
85+
</Button>
86+
<Button asChild variant="outline" className="flex-1">
87+
<Link href="/contributors">Meet the Team</Link>
88+
</Button>
89+
<Button asChild className="flex-1">
90+
<Link href="/docs">Documentation</Link>
91+
</Button>
92+
</div>
93+
</CardContent>
94+
</Card>
95+
</div>
96+
</div>
97+
);
98+
}

config/nav-items.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ const components = [
197197

198198
export const navItems = {
199199
header: [
200+
{
201+
label: "Getting Started",
202+
href: "/docs/getting-started",
203+
},
200204
{
201205
label: "Docs",
202206
href: "/docs",

0 commit comments

Comments
 (0)