yorgotabet.dev: Hero scene
A 3D hero that doesn't block the page
- →The React Three Fiber canvas sits in its own client component, loaded through next/dynamic with ssr:false. The WebGL scene never blocks the server-rendered hero text or delays first paint. The headline and CTA render immediately, then the 3D scene mounts on top of them.
- →The scene sits in a Suspense boundary with a dedicated loading fallback, so models and textures load behind a real loading state and not a blank frame.
- →A small sizing helper keyed off media queries computes object sizing and positioning per breakpoint. One fixed scene shipped to every device would choke a phone.