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 { createDroplets } from "@/components/canvasui/DropletsVanilla"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle,} from "@/components/ui/card"export default function DropletsDemo() { const sourceRef = useRef<HTMLCanvasElement>(null) const contentRef = useRef<HTMLDivElement>(null) const outputRef = useRef<HTMLCanvasElement>(null) useEffect(() => { const source = sourceRef.current const content = contentRef.current const output = outputRef.current if (!source || !content || !output) return const instance = createDroplets( { source, content, output }, { intensity: 0.6, blur: 1, refraction: 0.25 }, ) return () => instance?.destroy() }, []) return ( <div className="relative h-[400px] w-full max-w-xl overflow-hidden rounded-xl"> <canvas ref={sourceRef} className="absolute inset-0 h-full w-full"> <div ref={contentRef} className="flex h-full w-full items-center justify-center p-10"> <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Morning forecast</CardTitle> <CardDescription>Light showers are expected by noon.</CardDescription> </CardHeader> <CardContent> <p className="text-sm">Bring an umbrella if you are heading out before lunch.</p> </CardContent> <CardFooter> <Button className="w-full">View details</Button> </CardFooter> </Card> </div> </canvas> <canvas ref={outputRef} aria-hidden="true" className="pointer-events-none absolute inset-0 h-full w-full" /> </div> )}