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 { getMondrianSplitLayout, getMondrianSplitState, mondrianSplitDefaults,} from "@/components/remocn/mondrian-split"const layout = getMondrianSplitLayout({ seed: 7, splits: 7, width: 1280, height: 720,})const state = getMondrianSplitState(layout.timeline.expand - 1, layout)const palette = { red: mondrianSplitDefaults.redColor, yellow: mondrianSplitDefaults.yellowColor, blue: mondrianSplitDefaults.blueColor,}export default function MondrianSplitDemo() { return ( <div className="relative aspect-[16/9] w-full max-w-lg overflow-hidden"> <svg viewBox={`0 0 ${layout.width} ${layout.height}`} preserveAspectRatio="none" className="absolute inset-0 h-full w-full" role="img" aria-label="De Stijl grid" > {state.fills.map((fill) => ( <rect key={`fill-${fill.id}`} x={fill.x} y={fill.y} width={fill.width} height={fill.height} fill={palette[fill.slot]} /> ))} {state.field ? ( <rect x={state.field.x} y={state.field.y} width={state.field.width} height={state.field.height} fill={mondrianSplitDefaults.fieldColor} /> ) : null} {state.lines.map((line) => ( <rect key={`line-${line.id}`} x={line.x} y={line.y} width={line.width} height={line.height} fill={mondrianSplitDefaults.lineColor} /> ))} </svg> </div> )}