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 { Badge } from "@/components/ui/badge"import { Button } from "@/components/ui/button"import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"import { dummyRegistrationLastSpots, trLabels } from "@/components/registration-card/dummy-data"export default function RegistrationCardDemo() { const { capacity, registered } = dummyRegistrationLastSpots const left = capacity - registered const percent = Math.round((registered / capacity) * 100) return ( <Card className="w-full max-w-md" aria-label={trLabels.ariaLabel}> <CardHeader> <CardTitle className="flex items-center justify-between"> {trLabels.capacityLabel} <Badge variant="secondary"> {left} {trLabels.spotsLeftSuffix} </Badge> </CardTitle> </CardHeader> <CardContent className="grid gap-3"> <div className="flex justify-between text-sm text-muted-foreground"> <span> {registered} {trLabels.registeredSuffix} </span> <span> {capacity} {trLabels.capacitySuffix} </span> </div> <div className="h-2 w-full overflow-hidden rounded-full bg-muted"> <div className="h-full bg-primary" style={{ width: `${percent}%` }} /> </div> </CardContent> <CardFooter className="flex gap-2"> <Button className="flex-1">{trLabels.ctaRegister}</Button> <Button variant="outline">{trLabels.ctaShare}</Button> </CardFooter> </Card> )}