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 { createGlyphRain } from "@/components/canvasui/GlyphRainVanilla"import { Button } from "@/components/ui/button"import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"export default function GlyphRainDemo() { const sourceRef = useRef<HTMLCanvasElement>(null) const contentRef = useRef<HTMLDivElement>(null) const outputRef = useRef<HTMLCanvasElement>(null) useEffect(() => { if (!sourceRef.current || !contentRef.current || !outputRef.current) return const rain = createGlyphRain( { source: sourceRef.current, content: contentRef.current, output: outputRef.current, }, { cell: 15, glow: 1.75 }, ) return () => rain?.destroy() }, []) return ( <div className="relative h-[360px] w-full max-w-lg overflow-hidden"> <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-6"> <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Login to your account</CardTitle> <CardDescription>Enter your email below to login to your account</CardDescription> <CardAction> <Button variant="link">Sign Up</Button> </CardAction> </CardHeader> <CardContent> <div className="grid gap-2"> <Label htmlFor="glyph-email">Email</Label> <Input id="glyph-email" type="email" placeholder="m@example.com" /> </div> </CardContent> <CardFooter className="flex-col gap-2"> <Button className="w-full">Login</Button> </CardFooter> </Card> </div> </canvas> <canvas ref={outputRef} className="pointer-events-none absolute inset-0 h-full w-full" /> </div> )}