import { For } from "solid-js"; import Reveal from "../Reveal"; import { PixelCheck } from "../icons/pixel"; import { t } from "~/i18n"; /** * The animated pipeline: four stages, connected, with the loop back to * analysis drawn underneath. * * The motion carries meaning rather than decoration — a dot travelling a * connector is a record moving between stages, and the little drawing inside * each stage animates the thing that stage does: marks landing, bars rising, * an approval tick, cells filling. Everything is CSS keyframes on `hz-flow-*` * classes, so `prefers-reduced-motion` switches the whole thing off in one * rule and the page still reads as a diagram. */ export default function Pipeline() { return (
{(stage, i) => (
{stage.num}

{stage.title}

{stage.subtitle}

{stage.description}

    {bullet => (
  • )}
{/* The connector belongs to the stage on its left, so the last stage simply does not draw one. */}
)}
{/* The feedback loop: usage becomes data again. */}
); } /** The small drawing inside a stage card: one per stage, in order. */ function StageArt(props: { index: number }) { const grid = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; return ( {/* 01 — collection: answers landing on the sheet, option by option */} {props.index === 0 && ( {row => ( {col => ( )} )} )} {/* 02 — analysis: topic mastery rising out of that sheet */} {props.index === 1 && ( {(height, i) => ( = 4 ? "var(--brand)" : "var(--brand-deep, #5dc9e2)"} opacity={i() >= 4 ? 1 : 0.55} style={{ "animation-delay": `${i() * 0.12}s` }} /> )} )} {/* 03 — the plan, and the tick that lets it out */} {props.index === 2 && ( {row => ( )} )} {/* 04 — four screens, each showing its own slice */} {props.index === 3 && ( {(_, i) => { const col = i() % 4; const row = Math.floor(i() / 4); // Only the lit cells animate: the keyframe ends on `opacity: 1`, // so running it on a recessive cell would darken it to solid. const lit = (col + row) % 3 === 0; return ( ); }} )} ); }