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 { ParticleReveal } from "@/components/canvasui/ParticleReveal"export default function ParticleRevealDemo() { const hostRef = useRef<HTMLDivElement>(null) useEffect(() => { const host = hostRef.current if (!host) return const content = h( "div", { className: "flex h-full items-center justify-center p-6" }, h( "div", { className: "grid w-full max-w-sm gap-6 rounded-xl border border-white/10 bg-neutral-900 p-6 text-white" }, h( "div", { className: "grid gap-1" }, h("h2", { className: "text-lg font-semibold" }, "Login to your account"), h( "p", { className: "text-sm text-neutral-400" }, "Enter your email below to login to your account" ) ), h( "div", { className: "grid gap-2" }, h("label", { htmlFor: "email", className: "text-sm font-medium" }, "Email"), h("input", { id: "email", type: "email", placeholder: "m@example.com", className: "h-9 rounded-md border border-white/10 bg-transparent px-3 text-sm", }) ), h( "button", { type: "button", className: "h-9 w-full rounded-md bg-white text-sm font-medium text-black" }, "Login" ) ) ) render( h(ParticleReveal, { className: "h-full w-full rounded-xl", radius: 320, background: "#0a0a0a", children: content, }), host ) return () => { render(null, host) } }, []) return <div ref={hostRef} className="h-[360px] w-full max-w-lg" />}