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 { MagazineLayout } from "@/components/magazine-layout/magazine-layout"import { Badge } from "@/components/ui/badge"import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"const articles = [ { title: "The quiet return of analog cameras", category: "Culture", summary: "Film photographers are finding a new audience among younger readers." }, { title: "Inside the city's new transit plan", category: "City", summary: "Engineers outline how the proposed lines will reshape daily commutes." }, { title: "Five habits of efficient kitchens", category: "Home", summary: "Small changes to layout and storage can save hours each week." }, { title: "Why small banks are growing again", category: "Business", summary: "Local lenders are winning customers with faster, simpler service." }, { title: "A field guide to winter birds", category: "Nature", summary: "What to look for, and where, before the first snow arrives." }, { title: "The rise of community bakeries", category: "Food", summary: "Neighborhood ovens are becoming gathering places for locals." }, { title: "Training for your first marathon", category: "Sports", summary: "A patient twelve-week plan for building endurance safely." },]export default function MagazineLayoutDemo() { return ( <MagazineLayout featuredItem={articles[0]} displayedItems={articles.slice(1)} renderItem={({ item, slot }) => ( <ArticleCard article={item} large={slot === "large"} /> )} /> )}function ArticleCard({ article, large,}: { article: (typeof articles)[number] large: boolean}) { return ( <Card className="w-full"> <CardHeader> <Badge variant="secondary" className="w-fit"> {article.category} </Badge> <CardTitle className={large ? "text-2xl" : "text-base"}> {article.title} </CardTitle> <CardDescription>{article.summary}</CardDescription> </CardHeader> </Card> )}