# Ridge footer

> A footer that ends in a range of mountains printed in dots, with your name standing among the peaks. The ridges part as the pointer moves.

Footers with a landscape usually sit a photo or an illustration under a link grid. This one draws the range itself, in one shader: a sky that glows toward a low sun, three ridges at different depths in an ordered dither, mist moving through the valley, and your name standing between the far and middle ridges. The text sits in the sky above, on the same plate. Move the pointer and the ridges drift apart, nearer ones more than far ones; read a link column and the view pans toward it. The mountains, sun and dots all take one `accent` colour, so the range fits any brand in light and dark.

## Install

```bash
npx shadcn@latest add https://hairlineui.com/r/ridge-footer.json
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: none
- Hairline UI components it needs (the CLI installs them too): none
- Docs and live preview: https://hairlineui.com/blocks/ridge-footer
- Registry item (source): https://hairlineui.com/r/ridge-footer.json

## Usage

```tsx
import { RidgeFooter } from "@/components/ridge-footer";

<RidgeFooter
  wordmark="Cairn"
  tagline="Trail maps that work with no signal."
  contact={{ label: "hello@cairn.app", href: "mailto:hello@cairn.app" }}
  columns={[{ title: "App", links: [{ label: "Offline maps", href: "/maps" }] }]}
  legal="© 2026 Cairn Maps"
/>
```

## At the end of your layout

Put it last in the layout. Pass `tone="night"` for the dusk plate on a light page, and `accent` to print the range in another of your colours.

```tsx
import { RidgeFooter } from "@/components/ridge-footer";

export function SiteFooter() {
  return (
    <div className="mx-auto max-w-[1240px] p-4">
      <RidgeFooter
        wordmark="Sierra"
        tone="night"
        tagline="Solar and wind forecasts for grid operators, from the next hour to the next week."
        contact={{ label: "hello@sierra.energy", href: "mailto:hello@sierra.energy" }}
        columns={[
          { title: "Product", links: [{ label: "Forecasts", href: "/forecasts" }, { label: "API", href: "/api" }, { label: "Pricing", href: "/pricing" }] },
          { title: "Company", links: [{ label: "About", href: "/about" }, { label: "Careers", href: "/careers" }] },
          { title: "Help", links: [{ label: "Docs", href: "/docs" }, { label: "Status", href: "/status" }] },
        ]}
        legal="© 2026 Sierra Energy"
        legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
      />
    </div>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `wordmark` | `string` | – | Brand name: shown in the lockup and set among the mountains. |
| `logo` | `ReactNode` | – | Optional logo beside the name. |
| `tagline` | `string` | – | One short line about the product. |
| `contact` | `{ label: string; href: string }` | – | A contact link under the tagline, e.g. an email address. |
| `columns` | `{ title: string; links: { label: string; href: string }[] }[]` | `[]` | Link columns; reading one pans the range toward it. |
| `tone` | `"auto" \| "night"` | `"auto"` | "auto" follows the theme; "night" keeps the dusk plate on light pages too. |
| `accent` | `string` | `"var(--chart-1)"` | The ink of the mountains and the sun: any CSS colour or token. |
| `legal` | `string` | – | Copyright line. |
| `legalLinks` | `{ label: string; href: string }[]` | `[]` | Small links beside the copyright. |

## States

- **arrival**: When the footer comes into view the sun rises, the ridges grow to their height and the name lifts into place over about 1.3s.
- **drift**: Left alone, mist moves slowly through the valley; at night a few stars blink.
- **pointer**: The ridges drift apart with the pointer: the nearest moves most, the farthest least.
- **column**: Hovering or tabbing into a link column pans the range toward that column.
- **no WebGL**: The name shows as faint type in the range area, and the links work as normal.
- **reduced motion**: One finished frame; nothing moves.

## What it handles

A landscape footer is usually a fixed image that ignores the theme. This one is drawn in your colour at any size, and it moves with the pointer.

- **Depth from three ridges**: Far, middle and near ridges move at different speeds with the pointer, so the range has real depth.
- **Your name in the range**: Set in your own font between the far and middle ridges, a clear step away from the sun in both themes.
- **One colour**: `accent` (any token) drives the sky, sun, ridges and dots; light and dark both read.
- **Columns pan the view**: Hovering or tabbing into a link column turns the range toward it.
- **A printed finish**: An ordered dither on a 2px grid, crisp at any pixel density, with mist drifting through the valley.
- **Sleeps when hidden**: Draws only while on screen and in a visible tab; one still frame under reduced motion.

## Replaces

a landscape illustration, a parallax image stack, a footer video, a link grid

## Where it fits

- **Outdoor and travel apps**: The mountains are the product; the footer shows them.
- **Energy and climate companies**: A calm landscape in the brand colour instead of stock photos.
- **Studios and publications**: A printed, dotted finish that reads like a poster.
- **Product launch sites**: A last screen with depth that answers the pointer.

## Notes

- The links are a labelled nav of plain anchors with focus rings; the range canvas is hidden from screen readers.
- One WebGL 1 shader with a 4×4 ordered dither; the name is a texture drawn from your own font.
- Without WebGL the name shows as faint type and everything else works.
- Pauses off screen and in hidden tabs; one still frame under prefers-reduced-motion.

License: MIT (https://hairlineui.com/license#components)
