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]