// Hero with orbiting circles + word-rise display heading const { useEffect, useRef, useState } = React; function OrbitingCircles() { const ref = useRef(null); const [mouse, setMouse] = useState({ x: 0, y: 0 }); useEffect(() => { const onMove = (e) => { if (!ref.current) return; const r = ref.current.getBoundingClientRect(); const cx = r.left + r.width / 2; const cy = r.top + r.height / 2; setMouse({ x: (e.clientX - cx) / r.width, y: (e.clientY - cy) / r.height, }); }; window.addEventListener('mousemove', onMove); return () => window.removeEventListener('mousemove', onMove); }, []); const px = mouse.x * 16; const py = mouse.y * 16; return (
{t.hero.sub}