Page Hero

落地页的开场区块:眉题、作为真正标题的标题、描述和行动号召链接,媒体位于旁边或下方,左右可互换。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 暂不可用

用法

New: offline notes

Every meeting, written down

Record, transcribe and share the notes of every meeting — searchable, private and in your language.

导入

ts
import {
  SonePageHeroComponent,
  SonePageHeroLinksDirective,
} from "@surface-one/angular/page-hero";

API 参考

SonePageHeroComponent组件

`<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.

选择器
sone-page-hero
输入
名称类型 默认值
title必填string—
headline

A short line above the title.

string | nullnull
descriptionstring | nullnull
links

Calls to action, drawn as buttons (the first `default`, the rest `outline`).

readonly PageLink[][]
orientationPageHeroOrientation"vertical"
reverse

Puts the media first (horizontal).

booleanfalse
level

The title's heading level, 1–6.

HeadingLevel1

SonePageHeroLinksDirective指令

`[sonePageHeroLinks]` — your own actions after the hero's links.

选择器
[sonePageHeroLinks]