design / references/components/hero.md

references/components/hero.md

about 300 tokens

The text

references/components/hero.md

about 300 tokens
  • greenline
greenlineWrites the Hero page in greenline's own words

# Hero

Read this page when the change builds or changes a site's first screen.

- **Anatomy.** One heading at display size that says what the thing is, wrapping to two lines at most at every width; a supporting line; one primary action, a verb with its object; one proof; and the visual. No competing actions.

- **Postures to deal.** Settled, staged, a banner, a ledge, a corridor, a poster, a counter or an index: where the claim, the proof and the action stand.

- **Content at rest.** Everything is present at first paint, with no loader; text stays visible with scripts off and under reduced motion; a video that plays by itself is muted and can be paused; the largest picture is never lazy-loaded.

- **Room.** An empty block covering more than about a quarter of the first screen is a warning, and plain ground covering most of it is a hole.

- **Height.** A first screen sized to the viewport's full height is avoided; it hides what follows and breaks on short screens.

- **Responsive collapse.** At 390 the phone is a second composition: the heading's breaks rewritten, the picture recropped, one dominant thing.

- **In an app.** There is no hero: a screen opens with its noun as a title.