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 { CompareSlider } from "@/components/compare-slider"import { Button } from "@/components/ui/button"function Panel({ tone }: { tone: "before" | "after" }) { const polished = tone === "after" return ( <div className="absolute inset-0 flex items-center justify-center bg-muted"> <div className={ polished ? "flex w-[300px] max-w-[calc(100%-2.5rem)] flex-col gap-4 rounded-[28px] bg-background p-4 text-foreground shadow-raised" : "flex w-[300px] max-w-[calc(100%-2.5rem)] flex-col gap-1.5 border border-foreground/25 bg-background p-2 text-foreground" } > <p className={polished ? "font-medium" : "text-[15px]"}>Brand guidelines.pdf</p> <p className={polished ? "text-[13px] text-muted-foreground tabular-nums" : "text-[15px]"}> 2.4 MB · Updated 3h ago </p> <Button size="sm" variant={polished ? "default" : "outline"} className="w-full"> Download </Button> </div> </div> )}export default function CompareSliderDemo() { return ( <CompareSlider before={<Panel tone="before" />} after={<Panel tone="after" />} /> )}