# Letters hero

The hero of the quarterly letters index page: page title and intro over a full-screen photo or video, followed by a panel promoting the latest letter. Use once, at the top of the letters index.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/letters-hero-default.png) |
| Navy | ![Navy](../screenshots/components/letters-hero-navy.png) |

## What it looks like

First screen: a full-viewport-height media backdrop with a large title at top left and an intro paragraph to its right on laptop (stacked on mobile). Immediately below, a Dark Slate panel that fades up from the photo holds the latest letter: a small eyebrow with the letter's subtitle, its title, its summary and an arrow link. The latest letter is pulled automatically from the letters; it is not typed into this entry.

## Typography

- **Heading and post-heading:** both `h1` (heading is the `<h1>` tag; post-heading is a paragraph styled `h1`).
- **Intro body:** `p1`.
- **Latest letter eyebrow:** `h6`; title `h2`; summary `p1`.

## Colours

- `textColour` sets the text colour of the hero section and the arrow link colour; default White.
- The Dark Slate letter panel is fixed. `backgroundColour` does not paint the section but feeds the fade at the bottom of the photo.
- Valid values: Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `heading` | Symbol | Page title (`h1`) | No title |
| `postHeading` | Symbol | Second title line in `h1` size | No second line |
| `body` | RichText (or plain text) | Intro paragraph (`p1`) | No intro |
| `backgroundVisual` | Media | Full-screen backdrop (takes priority over visual) | Falls back to `visual` |
| `visual` | Media | Backdrop when no backgroundVisual | Plain background |
| `links` | Links | Text of the first link is the label for the latest-letter arrow (its destination is the letter) | Label is "Read the letter" |
| `textColour` | Symbol | Text and arrow colour | White |
| `backgroundColour` | Symbol | Colour for the media fade | Page default fade |
| `preHeading` | Symbol | No visible effect | No visible effect |
| `icon` | Symbol | No visible effect | No visible effect |
| `anchor` | Symbol | In-page link target | No anchor |
| `cmsLabel` | Symbol | Internal and analytics label | No visible effect |
| `componentType` | Symbol | "Letters hero" | N/A |
| `id` | Symbol | Entry id for preview | No visible effect |

## Behaviour

- The heading is always `<h1>`.
- The latest-letter panel is automatic; if there are no published letters it is not shown.
- A video backdrop loads immediately and loops; users who prefer reduced motion see a still.
- The archive page uses Archived letters hero, not this type.

## Impact of content changes

| Change | Result |
|--------|--------|
| Remove both visuals | Backdrop becomes plain; text still shows |
| Change first link text | Latest-letter arrow label changes |
| Publish a new letter | Panel updates without editing this entry |
| Remove `body` | No intro paragraph beside the title |
