Hero
Server-safe opening section: title, text, actions and media, side by side or centered. Follows the width of its container, labels itself with its title and adds no entrance motion, so the headline paints at once.
acme.gg
Every clip your server remembers
Record, trim and share highlights without leaving the match. Your community keeps the moments, you keep the files.
import { Hero } from "@/components/blocks/hero";import { buttonVariants } from "@/components/ui/button-variants";export function Landing() { return ( <Hero title="Every clip your server remembers" description="Record, trim and share highlights without leaving the match." actions={ <a className={buttonVariants()} href="/start"> Start recording </a> } media={<img src="/clips.png" alt="A wall of match highlights" />} /> );}<Hero>
Opening section of a page: title, text, actions and media.
title requiredReactNodeThe headline.actionsReactNodeLinks or buttons under the text, e.g. anchors styled withbuttonVariants().alignDefault"start""start" | "center"Text alignment.centeralways keepsmediabelow the text.asDefault"h1""h1" | "h2"Heading level of the title. Keep oneh1per page.descriptionReactNodeSupporting text under the title.eyebrowReactNodeShort line above the title, e.g. a Badge.mediaReactNodeImage, video or a live composition. Beside the text when wide, below it otherwise.
| Prop | Type | Default |
|---|---|---|
title requiredThe headline. | ReactNode | — |
actionsLinks or buttons under the text, e.g. anchors styled with buttonVariants(). | ReactNode | — |
alignText alignment. center always keeps media below the text. | "start" | "center" | "start" |
asHeading level of the title. Keep one h1 per page. | "h1" | "h2" | "h1" |
descriptionSupporting text under the title. | ReactNode | — |
eyebrowShort line above the title, e.g. a Badge. | ReactNode | — |
mediaImage, video or a live composition. Beside the text when wide, below it otherwise. | ReactNode | — |
required
Also accepts every <section> prop.
Every component also takes className.