Hero 370 block design & features
Hero370 is a generative hero built with shadcn/ui and React Three Fiber. Coloured flow lines stream across the whole section, with a heading, description and two buttons on the left over a calmer patch of the field.
Particle positions live in a float texture and are advanced each frame in a fragment shader using the curl of layered simplex noise, which keeps the flow swirling without sinks. The particles are drawn as small dots into a persistent half-float buffer that fades toward the background a little every frame, so their paths build up into long painted trails.
The pointer adds a vortex that wraps nearby lines into a whirl; when it rests, the vortex wanders slowly on its own. The four colours, particle grid size and speed are props, reduced motion paints a still frame, and the trails fade to whichever theme background is active. It suits energy, climate, data and generative brands.
