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 { ForceField } from "@/components/canvasui/ForceField"export default function ForceFieldDemo() { const ref = useRef<HTMLDivElement>(null) useEffect(() => { const container = ref.current if (!container) return const content = h( "div", { className: "flex h-full flex-col items-center justify-center gap-4 p-6 text-center" }, h("p", { className: "text-sm text-gray-200" }, "Sign in to continue to your dashboard."), h("input", { type: "email", placeholder: "m@example.com", className: "h-9 w-full max-w-xs rounded-md border border-white/20 bg-black/40 px-3 text-sm text-white outline-none", }), h( "button", { type: "button", className: "h-9 w-full max-w-xs rounded-md bg-white px-4 text-sm font-medium text-black", }, "Login" ) ) render( h(ForceField, { className: "w-full", style: { height: 400 }, children: content, }), container ) return () => { render(null, container) } }, []) return <div ref={ref} className="w-full max-w-lg" />}