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
"use client"import { POST as handleContact } from "@/app/api/contact/route"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"import { Textarea } from "@/components/ui/textarea"export default function ContactDemo() { async function onSubmit(event: React.FormEvent<HTMLFormElement>) { event.preventDefault() const form = new FormData(event.currentTarget) const body = JSON.stringify(Object.fromEntries(form.entries())) try { await handleContact( new Request("/api/contact", { method: "POST", headers: { "Content-Type": "application/json" }, body, }) ) } catch { // Ignore errors in the preview. } } return ( <form className="w-full max-w-md" onSubmit={onSubmit}> <Card className="w-full"> <CardHeader> <CardTitle>Contact us</CardTitle> <CardDescription>Send us a message and we will get back to you.</CardDescription> </CardHeader> <CardContent> <div className="grid gap-4"> <div className="grid gap-2"> <Label htmlFor="name">Name</Label> <Input id="name" name="name" placeholder="Olivia Martin" /> </div> <div className="grid gap-2"> <Label htmlFor="email">Email</Label> <Input id="email" name="email" type="email" placeholder="m@example.com" /> </div> <div className="grid gap-2"> <Label htmlFor="message">Message</Label> <Textarea id="message" name="message" placeholder="How can we help?" /> </div> </div> </CardContent> <CardFooter> <Button type="submit" className="w-full">Send message</Button> </CardFooter> </Card> </form> )}