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 { BarChart3, Bell, ShieldCheck } from "lucide-react"import { StickySection } from "@/components/ui/feature-sticky-section"export default function FeatureStickySectionDemo() { return ( <StickySection.Root className="grid w-full max-w-2xl grid-cols-[140px_1fr] gap-6"> <StickySection.List className="sticky top-4 flex h-fit flex-col gap-2"> <StickySection.Item index={0}> <StickySection.Trigger className="flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-sm text-muted-foreground transition-colors data-[state=active]:bg-muted data-[state=active]:font-medium data-[state=active]:text-foreground" index={0} > <BarChart3 className="size-4" /> Analytics </StickySection.Trigger> </StickySection.Item> <StickySection.Item index={1}> <StickySection.Trigger className="flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-sm text-muted-foreground transition-colors data-[state=active]:bg-muted data-[state=active]:font-medium data-[state=active]:text-foreground" index={1} > <Bell className="size-4" /> Alerts </StickySection.Trigger> </StickySection.Item> <StickySection.Item index={2}> <StickySection.Trigger className="flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-sm text-muted-foreground transition-colors data-[state=active]:bg-muted data-[state=active]:font-medium data-[state=active]:text-foreground" index={2} > <ShieldCheck className="size-4" /> Security </StickySection.Trigger> </StickySection.Item> </StickySection.List> <StickySection.Content> <StickySection.Panel className="min-h-[310px] space-y-5 border-b pb-8" index={0}> <div className="space-y-1"> <p className="font-medium text-lg">See what matters most</p> <p className="text-sm text-muted-foreground">Track progress with clear, actionable insights.</p> </div> <div className="rounded-xl border bg-muted/40 p-4"> <div className="mb-6 flex items-end gap-2"> {[42, 58, 48, 72, 64, 86, 78].map((height, index) => ( <div className="flex-1 rounded-t bg-primary/70" key={index} style={{ height }} /> ))} </div> <div className="flex justify-between text-xs text-muted-foreground"> <span>Mon</span> <span>Sun</span> </div> </div> </StickySection.Panel> <StickySection.Panel className="min-h-[310px] space-y-5 border-b py-8" index={1}> <div className="space-y-1"> <p className="font-medium text-lg">Stay in the loop</p> <p className="text-sm text-muted-foreground">Get notified when something needs your attention.</p> </div> <div className="space-y-3 rounded-xl border p-4 text-sm"> <div className="flex items-center justify-between"><span>Weekly summary</span><span className="text-muted-foreground">Enabled</span></div> <div className="flex items-center justify-between"><span>Usage limit</span><span className="text-muted-foreground">At 80%</span></div> </div> </StickySection.Panel> <StickySection.Panel className="min-h-[310px] space-y-5 py-8" index={2}> <div className="space-y-1"> <p className="font-medium text-lg">Built with confidence</p> <p className="text-sm text-muted-foreground">Protect every workspace with sensible defaults.</p> </div> <div className="flex items-center gap-3 rounded-xl border bg-muted/40 p-5 text-sm"> <ShieldCheck className="size-5 text-emerald-500" /> All systems are secure and up to date. </div> </StickySection.Panel> </StickySection.Content> </StickySection.Root> )}