// Hero visual — 3 personas with rotating active highlight const HeroVisual = () => { const [active, setActive] = React.useState(0); React.useEffect(() => { const id = setInterval(() => setActive(a => (a + 1) % 3), 3000); return () => clearInterval(id); }, []); const personas = [ { key: "tea", label: "Famílias TEA", sub: "Autismo" }, { key: "pcd", label: "Pessoas com deficiência", sub: "Física · Visual · Auditiva · Mental" }, { key: "taxi", label: "Taxistas", sub: "Motoristas profissionais" }, ]; return (
{/* Background ring */} {/* Three person icons positioned around a triangle */} {personas.map((p, i) => { const isActive = active === i; // positions: top, bottom-left, bottom-right const positions = [ { top: "6%", left: "50%", transform: "translateX(-50%)" }, { bottom: "8%", left: "8%" }, { bottom: "8%", right: "8%" }, ]; return (
{p.label}
{p.sub}
); })} {/* Center label */}
ISENÇÃO
IPI · ICMS · IPVA
); }; const PersonaGlyph = ({ kind, size = 48 }) => { const s = size; if (kind === "tea") { return ( ); } if (kind === "pcd") { return ( ); } return ( ); }; Object.assign(window, { HeroVisual, PersonaGlyph });