"use client"; import { motion, useReducedMotion } from "framer-motion"; import clsx from "clsx"; type Props = { className?: string; accent?: string; gridStroke?: string; }; const W = 760; const H = 420; export default function Deterministic({ className, accent = "#00b8db", gridStroke = "#2b2a2a", }: Props) { const prefers = useReducedMotion(); const stages = [ { x: 180, y: 180, w: 120, h: 80, label: "Build" }, { x: 330, y: 180, w: 120, h: 80, label: "Package" }, { x: 480, y: 180, w: 120, h: 80, label: "Deploy" }, ]; // Packet path (deterministic flow) const packetPath = `M ${stages[0].x + 120} ${stages[0].y + 40} L ${stages[1].x + 0} ${stages[1].y + 40} L ${stages[1].x + 120} ${stages[1].y + 40} L ${stages[2].x + 0} ${stages[2].y + 40}`; // tiny arrow for each transition const arrows = [ `M ${stages[0].x + 120} ${stages[0].y + 40} L ${stages[1].x + 6} ${stages[1].y + 40}`, `M ${stages[1].x + 120} ${stages[1].y + 40} L ${stages[2].x + 6} ${stages[2].y + 40}` ]; return (
); }