// process.jsx — 6-step process with chrome numerals
const { useState: __prs } = React;
function Process({ t }) {
return (
{t.proc_eye}
{t.proc_title_1}
{t.proc_title_2}
{t.proc_sub}
{t.proc_steps.map((s, i) => {
const isLastRow = i >= 3;
const isLastCol = i % 3 === 2;
return (
);
})}
);
}
function ProcessStep({ step, index, borderRight, borderBottom }) {
const [hover, setHover] = __prs(false);
const colors = ['magenta', 'azure', 'lime', 'tangerine', 'violet', 'magenta'];
const color = `var(--${colors[index]})`;
return (
setHover(true)}
onMouseLeave={() => setHover(false)}
style={{
padding: 40, minHeight: 320, position: 'relative',
borderRight: borderRight ? '1.5px solid var(--ink)' : 'none',
borderBottom: borderBottom ? '1.5px solid var(--ink)' : 'none',
background: hover ? color : 'var(--paper)',
color: hover ? (color === 'var(--lime)' ? 'var(--ink)' : 'white') : 'var(--ink)',
transition: 'background 0.4s, color 0.4s',
cursor: 'none'
}}>
{/* Big chrome numeral */}
{step.n}
{step.t}.
{step.d}
{/* Corner mark */}
{index < 5 ? '→' : '◉'}
);
}
Object.assign(window, { Process, ProcessStep });