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 { Displacement } from "@/components/canvasui/Displacement"export default function DisplacementDemo() { const ref = useRef<HTMLDivElement>(null) useEffect(() => { const el = ref.current if (!el) return render( h(Displacement, { className: "w-full overflow-hidden rounded-xl", style: { height: 320 }, children: h( "div", { className: "flex h-full w-full flex-col items-center justify-center gap-4 bg-muted p-6 text-center" }, h("p", { className: "text-2xl font-semibold tracking-tight" }, "Hello, ripples"), h("p", { className: "max-w-xs text-sm text-muted-foreground" }, "Move your cursor across the surface to disturb it."), h("button", { className: "inline-flex h-9 items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground" }, "Get started") ), }), el, ) return () => { render(null, el) } }, []) return <div ref={ref} className="w-full max-w-xl" />}