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 { useEffect, useRef } from "react"import { h, render } from "preact"import { Shatter } from "@/components/canvasui/Shatter"export default function ShatterDemo() { const ref = useRef<HTMLDivElement>(null) useEffect(() => { const container = ref.current if (!container) return render( h( Shatter, { className: "h-full w-full" }, h( "div", { className: "flex h-full items-center justify-center p-6" }, h( "div", { className: "w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm" }, h("h3", { className: "text-lg font-semibold" }, "Upgrade to Pro"), h( "p", { className: "mt-1 text-sm text-muted-foreground" }, "Unlock unlimited projects and priority support." ), h( "p", { className: "mt-4 text-3xl font-semibold" }, "$12", h("span", { className: "text-sm font-normal text-muted-foreground" }, "/month") ), h( "div", { className: "mt-6 flex gap-2" }, h( "button", { className: "flex-1 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground" }, "Upgrade" ), h( "button", { className: "flex-1 rounded-md border bg-background px-4 py-2 text-sm font-medium" }, "Not now" ) ) ) ) ), container ) return () => { render(null, container) } }, []) return <div ref={ref} className="h-[400px] w-full max-w-xl" />}