Open History to see the last commit
1import { GUIDE_SECTIONS } from "@/guide/content";
2
3import { GuideSection } from "./guide-section";
4
5export function GuideDocument() {
6 return (
7 <article className="mx-auto w-full max-w-[68ch] px-2 pt-4 pb-24 sm:px-4">
8 <header className="px-5 pt-6 pb-4 sm:px-7">
9 <p className="text-sm font-medium text-muted-foreground">An interactive guide</p>
10 <h1 className="mt-1 text-3xl font-bold tracking-tight text-balance">
11 Learn TanStack DB by poking at a notes app
12 </h1>
13 <p className="mt-3 text-[15px] leading-7 text-foreground/75">
14 Read a section, then do what it says in the app. The section that matches what you're
15 doing in the app lights up, and every snippet is quoted from the app's own source.
16 </p>
17 </header>
18 {GUIDE_SECTIONS.map((section) => (
19 <GuideSection
20 key={section.id}
21 id={section.id}
22 eyebrow={section.eyebrow}
23 title={section.title}
24 tryIt={section.tryIt}
25 >
26 {section.content}
27 </GuideSection>
28 ))}
29 </article>
30 );
31}