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 { ParticleScroll } from "@/components/canvasui/ParticleScroll"export default function ParticleScrollDemo() { const ref = useRef<HTMLDivElement>(null) useEffect(() => { const container = ref.current if (!container) return render( h(ParticleScroll, { className: "h-full w-full overflow-hidden rounded-lg border", children: h( "section", { className: "space-y-4 bg-background p-8 text-foreground" }, h("p", { className: "text-sm text-muted-foreground" }, "Scroll inside this box to watch the content settle."), h("p", { className: "leading-7" }, "Sand drifts up from the lower part of the page and gathers back into the words as they pass the line."), h("p", { className: "leading-7" }, "The text below stays fully interactive, so links and buttons still respond to clicks."), h("div", { className: "h-40" }), h("p", { className: "leading-7" }, "Keep scrolling to see more paragraphs dissolve and reform as they move through the transition band."), h("div", { className: "h-40" }), h( "button", { type: "button", className: "rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground" }, "Continue reading" ), h("div", { className: "h-40" }) ), }), container ) return () => { render(null, container) } }, []) return <div ref={ref} className="h-[400px] w-full max-w-lg" />}