From fa92169fb1e0c123007756a7fffbc345bbd08fdb Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 5 Nov 2025 21:42:11 +0000 Subject: [PATCH] Extract QuickStart section as reusable component cgen-2b945c5b95444ddd87a6964d2814ef9c --- client/components/docs/QuickStartSection.tsx | 133 +++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 client/components/docs/QuickStartSection.tsx diff --git a/client/components/docs/QuickStartSection.tsx b/client/components/docs/QuickStartSection.tsx new file mode 100644 index 00000000..f1bb2928 --- /dev/null +++ b/client/components/docs/QuickStartSection.tsx @@ -0,0 +1,133 @@ +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { Link } from "react-router-dom"; +import { + LayoutDashboard, + Code, + Terminal, + Rocket, + Play, + Link as LinkIcon, + LucideIcon, +} from "lucide-react"; + +export interface QuickStartCard { + title: string; + description: string; + icon: LucideIcon; + href: string; + duration: string; + difficulty: string; + isNew?: boolean; +} + +const defaultCards: QuickStartCard[] = [ + { + title: "Platform tour", + description: "Walk through dashboard, passport, and community experiences", + icon: LayoutDashboard, + href: "/docs/platform", + duration: "6 min read", + difficulty: "Beginner", + isNew: true, + }, + { + title: "Project setup", + description: "Launch your first AeThex project with guided onboarding", + icon: Rocket, + href: "/docs/getting-started", + duration: "5 min read", + difficulty: "Beginner", + }, + { + title: "First tutorial", + description: + "Follow your first interactive tutorial to build something amazing", + icon: Play, + href: "/docs/tutorials", + duration: "15 min", + difficulty: "Beginner", + }, + { + title: "API integration", + description: "Learn how to integrate with AeThex APIs and services", + icon: Code, + href: "/docs/api", + duration: "10 min read", + difficulty: "Intermediate", + }, + { + title: "CLI tools", + description: "Master the command line tools for efficient development", + icon: Terminal, + href: "/docs/cli", + duration: "8 min read", + difficulty: "Intermediate", + }, + { + title: "Platform integrations", + description: "Embed partner agents and automate external workflows", + icon: LinkIcon, + href: "/docs/integrations", + duration: "7 min read", + difficulty: "Intermediate", + }, +]; + +interface QuickStartSectionProps { + cards?: QuickStartCard[]; +} + +export default function QuickStartSection({ + cards = defaultCards, +}: QuickStartSectionProps) { + return ( +
+

Quick Start

+
+ {cards.map((card, index) => { + const Icon = card.icon; + return ( + + + +
+ + {card.isNew && ( + + New + + )} +
+ + {card.title} + +
+ + + {card.description} + +
+ {card.duration} + + {card.difficulty} + +
+
+ +
+ ); + })} +
+
+ ); +}