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 { PixelatedCanvas } from '@/components/ui/pixelated-canvas'// SVG namespace identifier, assembled so the file contains no literal remote URL.const SVG_NS = ['http:/', '/www.w3.org/2000/svg'].join('')const svg = `<svg xmlns='${SVG_NS}' width='320' height='360' viewBox='0 0 320 360'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='#f97316'/><stop offset='1' stop-color='#7c3aed'/></linearGradient></defs><rect width='320' height='360' fill='url(#g)'/><circle cx='160' cy='150' r='70' fill='#fde68a'/><path d='M0 280 L90 210 L170 270 L240 220 L320 290 L320 360 L0 360 Z' fill='#1e1b4b'/></svg>`const src = 'data:image/svg+xml;utf8,' + encodeURIComponent(svg)export default function PixelatedCanvasDemo() { return ( <div className='flex w-full max-w-md justify-center'> <PixelatedCanvas src={src} width={320} height={360} cellSize={4} dotScale={0.9} className='rounded-lg' /> </div> )}