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 { Lightbox, type GalleryImage } from "@/components/ui/lightbox"import { photoImage } from "@/preview/images"const images: GalleryImage[] = [ { id: "1", src: photoImage("mountain lake at dawn", 1200, 800), alt: "Mountain lake at dawn", description: "Shot from the ridge trail.", }, { id: "2", src: photoImage("forest trail", 1200, 800), alt: "Forest trail", description: "Morning light through the pines.", }, { id: "3", src: photoImage("running shoes", 1200, 800), alt: "Running shoes", description: "Ready for the next long run.", },]export default function LightboxDemo() { const [openId, setOpenId] = useState<string | null>(null) return ( <div className="grid w-full max-w-md grid-cols-3 gap-2"> {images.map((image) => ( <button key={image.id} type="button" onClick={() => setOpenId(image.id)} className="overflow-hidden rounded-md" > <img src={image.src} alt={image.alt} className="aspect-square w-full object-cover" /> </button> ))} <Lightbox images={images} openId={openId} onOpenIdChange={setOpenId} /> </div> )}