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 { photoImage } from "@/preview/images"import { Card, CardContent, CardFooter } from "@/components/ui/card"const cards = [ { id: 1, seed: "mountain trail", title: "Mountain trail" }, { id: 2, seed: "city lights", title: "City lights" }, { id: 3, seed: "ocean waves", title: "Ocean waves" }, { id: 4, seed: "desert road", title: "Desert road" },]export default function StackDemo() { return ( <div className="relative h-[280px] w-full max-w-sm" style={{ perspective: "600px" }}> {cards.map((card, index) => { const depth = cards.length - index - 1 const isTop = depth === 0 return ( <Card key={card.id} className="absolute inset-0 flex flex-col overflow-hidden p-0 shadow-md" style={{ transform: `rotate(${depth * 4 - 4}deg) scale(${1 - depth * 0.04}) translateY(${depth * -8}px)`, transformOrigin: "90% 90%", zIndex: cards.length - depth, }} > <img src={photoImage(card.seed, 800, 600)} alt={card.title} className="h-48 w-full object-cover" draggable={false} /> {isTop && ( <> <CardContent className="px-4 pt-4"> <p className="font-medium">{card.title}</p> </CardContent> <CardFooter className="px-4 text-sm text-muted-foreground"> Swipe or click to shuffle </CardFooter> </> )} </Card> ) })} </div> )}