Page Hero
O bloco de abertura de uma landing page: um antetítulo, o título como cabeçalho real, uma descrição e links de chamada para ação, com multimédia ao lado ou por baixo e lados trocáveis.
Angular: disponível Vue: disponível React: disponível React Native: ainda não disponível
Uso
New: offline notes
Every meeting, written down
Record, transcribe and share the notes of every meeting — searchable, private and in your language.
<sone-page-hero
headline="New: offline notes"
title="Every meeting, written down"
description="Record, transcribe and share the notes of every meeting — searchable, private and in your language."
orientation="horizontal"
[level]="3"
[links]="links"
>
<div
role="img"
aria-label="A meeting summary on a laptop"
style="aspect-ratio: 4 / 3; border: var(--border-width-thin) solid var(--border); border-radius: var(--radius-xl); background: var(--surface-hover)"
></div>
</sone-page-hero>Importação
import {
SonePageHeroComponent,
SonePageHeroLinksDirective,
} from "@surface-one/angular/page-hero";Referência da API
SonePageHeroComponentComponente
`<sone-page-hero>` — the opening block of a landing page (Nuxt UI PageHero): a headline, the title as a real heading (`level`, default 1), a description and call-to- action `links`, with optional media (the projected content). `vertical` (the default) centres it all; `horizontal` puts the copy beside the media once the block is wide enough (a container query), `reverse` swaps the sides. It is a `section` named by its title. `[sonePageHeroLinks]` adds your own actions after the links.
| Nome | Tipo | Padrão |
|---|---|---|
titleobrigatório | string | — |
headlineA short line above the title. | string | null | null |
description | string | null | null |
linksCalls to action, drawn as buttons (the first `default`, the rest `outline`). | readonly PageLink[] | [] |
orientation | PageHeroOrientation | "vertical" |
reversePuts the media first (horizontal). | boolean | false |
levelThe title's heading level, 1–6. | HeadingLevel | 1 |
SonePageHeroLinksDirectiveDiretiva
`[sonePageHeroLinks]` — your own actions after the hero's links.