Hero 345 block design & features
Hero345 is a centred, full-screen hero built with shadcn/ui and React Three Fiber. A wide puddle of glossy black ferrofluid sits in the lower half of the section and grows a field of sharp spikes, with the heading, description and buttons above it.
The whole scene is one raymarched fragment shader. The puddle is a height field: a shallow dome with cone-shaped spikes on a hexagonal lattice, each spike's height set by its distance to an invisible magnet and tipped slightly toward it. Rays march down through the field, refine the hit with a short bisection and shade the surface as near-black liquid metal reflecting a studio with a bright softbox and two coloured strip lights, over a soft contact shadow.
The cursor is the magnet: the spikes rise tallest beneath it and the puddle leans after it. When the pointer rests, the magnet circles slowly under the puddle while the field breathes. The two light colours and speed are props, the floor takes the theme background in dark mode, and reduced motion freezes a spiked frame. It suits audio, hardware and premium consumer products.
