// home-shared.jsx: small helpers shared by the homepage sections (hero, about, work, ending). // Exposes useViewport, Doodle, Tape, LensRing on window. function useViewport() { const read = () => ({ W: innerWidth, H: Math.max(560, innerHeight), mobile: LL.mobile() }); const [v, setV] = React.useState(read); React.useEffect(() => { const on = () => setV(read()); addEventListener('resize', on); return () => removeEventListener('resize', on); }, []); return v; } // Single-path doodle; path data is filled in by LL.decorate(). function Doodle({ kind, style, stroke, fill = 'none', sw = 4, nonScaling, preserve, className, ...rest }) { return ( ); } // Washi tape: zig-zag-ended polygon via data-tape (set by LL.decorate). function Tape({ color, style, ...rest }) { return
; } // Lens ring: sun border + ink hairlines. Moved with transform by the section frame. const LensRing = React.forwardRef(function LensRing({ corners, zIndex = 50 }, ref) { return (