Skip to content

Commit 6aa0651

Browse files
committed
Implement card grid
1 parent a61ec2d commit 6aa0651

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/app/docs.tsx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import {
2+
Card,
3+
CardDescription,
4+
CardHeader,
5+
CardTitle,
6+
} from "@/components/ui/card";
7+
import { Link } from "react-router";
8+
19
const docs = [
210
{
311
title: "Auto Splitters",
@@ -28,5 +36,22 @@ const docs = [
2836
];
2937

3038
export function Docs() {
31-
return <p>Placeholder</p>;
39+
return (
40+
<div className="mx-auto max-w-5xl px-6 py-12">
41+
<h1 className="mb-8 text-3xl font-bold">Documentation</h1>
42+
43+
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
44+
{docs.map((doc) => (
45+
<Link key={doc.to} to={doc.to}>
46+
<Card className="h-full transition hover:border-primary hover:shadow-lg">
47+
<CardHeader>
48+
<CardTitle>{doc.title}</CardTitle>
49+
<CardDescription>{doc.description}</CardDescription>
50+
</CardHeader>
51+
</Card>
52+
</Link>
53+
))}
54+
</div>
55+
</div>
56+
);
3257
}

0 commit comments

Comments
 (0)