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 => (
{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. */}
{t.how.flowNote}
);
}
/** 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 (
);
}