Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useState } from "react"import { useMotionValue, useMotionValueEvent } from "motion/react"import { PageDots } from "@/components/page-dots"import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"const pages = [ { title: "Inbox zero", note: "Everything triaged before lunch." }, { title: "Focus time", note: "Two quiet hours blocked every morning." }, { title: "Weekly review", note: "Friday at four, fifteen minutes." }, { title: "Shared lists", note: "Groceries, synced with Sam." },]export default function PageDotsDemo() { const progress = useMotionValue(0) const [index, setIndex] = useState(0) useMotionValueEvent(progress, "change", (p) => setIndex(Math.round(p))) const page = pages[index] return ( <div className="flex w-full max-w-sm flex-col items-center gap-6"> <Card className="w-full"> <CardHeader> <CardTitle>{page.title}</CardTitle> <CardDescription>{page.note}</CardDescription> </CardHeader> <CardContent> <p className="text-sm text-muted-foreground tabular-nums"> Page {index + 1} of {pages.length} </p> </CardContent> </Card> <PageDots count={pages.length} progress={progress} onSelect={(i) => progress.set(i)} /> </div> )}