Hero 405 block design & features
Hero405 is a full-screen streaming radio hero built with shadcn/ui and WebGL. A centred heading, description and two buttons sit above a large rounded photograph, and a small glass capsule rests at the top of the photo like a status island.
The glass is drawn in a fragment shader from a rounded-rectangle distance field, so the photo behind it bends at the rim, splits slightly into colour and blurs through a frosted body. Its width, height and corner radius run on a spring, so clicking the capsule makes it overshoot open into a player card with cover art, progress and controls, and click again to fold it back. When left alone it opens and closes on its own while the photo drifts slowly behind the glass.
It suits radio and podcast apps, music services and any product with a compact live widget. The glass tint follows the theme background, so it works in light and dark mode, and visitors who prefer reduced motion see the open player as a still frame.
