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 { photoImage } from "@/preview/images"import { Button } from "@/components/ui/button"import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"export default function PixelSwapDemo() { const [active, setActive] = useState(false) return ( <Card className="w-full max-w-md"> <CardHeader> <CardTitle>Cover photo</CardTitle> </CardHeader> <CardContent> <div className="relative aspect-[16/10] w-full overflow-hidden rounded-md"> <img src={active ? photoImage("mountain lake", 800, 500) : photoImage("running shoes", 800, 500)} alt={active ? "Mountain lake" : "Running shoes"} className="h-full w-full object-cover" /> </div> </CardContent> <CardFooter> <Button variant="outline" className="w-full" onClick={() => setActive(!active)}> Swap image </Button> </CardFooter> </Card> )}