suiss/ui · Block
Hero Cinematic
A dark, centered product hero whose image, gradient title, and glow change with the selected finish.
Hero Cinematic is an open-source block from suiss/ui for React. The @esuiss/ui CLI copies its source into your project, so you own the code.
A dark, centered product hero whose glow, gradient headline and wide image all change with the selected finish. Below the image sit the finish name, round swatches, a Buy button and a Watch the film link. It always renders dark, which suits a flagship product launch.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
-
Add the pieces it builds on: Button, Toggle Group.
-
Copy the source into
components/blocks/hero-cinematic.tsx:
- Update the import paths to match your project.
Usage
Edit finishes; each has an id, label, CSS color, image and alt text, and the color drives both the glow and the headline gradient. Change the headline inline, give Buy a handler and point #film at your video.
Notes
The finish name is announced when the selection changes. Images are Unsplash placeholders.