// 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 ( ); }); function ArrowSvg({ size = 14 }) { return ( ); } // FAQ accordion: the one FAQ for every page. items = [{ q, a }]; first row open by default. function Faq({ items, title = FAQ, aside = 'Things to know first', label = 'FAQ', defaultOpen = 0 }) { const [open, setOpen] = React.useState(defaultOpen); return ({p}
)}