# Skyline footer

> A footer set in a city at night, drawn on a 6px grid: the towers build up as it comes into view, windows come and go, and a click in the sky sends a plane across.

A skyline in a footer is usually a static illustration or a video. This one is built in code on a 6px grid and seeded from your brand name, so every brand gets its own city. Your links sit in the sky on the same plate; the towers build up from the foot when the footer comes into view, then the city lives on its own: office windows switch on and off, beacons blink on the spires, and now and then a plane crosses. Reading a link column lights the district under it, the pointer wakes the windows near it, and a click in the sky sends a plane across. An optional clock shows the local time of your city in the small print.

## Install

```bash
npx shadcn@latest add https://hairlineui.com/r/skyline-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/skyline-footer
- Registry item (source): https://hairlineui.com/r/skyline-footer.json

## Usage

```tsx
import { SkylineFooter } from "@/components/skyline-footer";

<SkylineFooter
  brand="Veridian"
  tagline="Managed Postgres with a read replica in every region."
  action={{ label: "Start for free", href: "/signup" }}
  columns={[{ title: "Product", links: [{ label: "Pricing", href: "/pricing" }] }]}
  legal="© 2026 Veridian Inc."
/>
```

## At the end of your layout

Put it last in the layout. `tone="night"` keeps the night city on a light page; `city` adds the local time to the small print.

```tsx
import { SkylineFooter } from "@/components/skyline-footer";

export function SiteFooter() {
  return (
    <div className="mx-auto max-w-[1240px] p-4">
      <SkylineFooter
        brand="Veridian"
        tone="night"
        tagline="Managed Postgres with a read replica in every region your users are in."
        action={{ label: "Start for free", href: "/signup" }}
        columns={[
          { title: "Product", links: [{ label: "Database", href: "/database" }, { label: "Branching", href: "/branching" }, { label: "Pricing", href: "/pricing" }] },
          { title: "Developers", links: [{ label: "Docs", href: "/docs" }, { label: "CLI", href: "/cli" }, { label: "Changelog", href: "/changelog" }] },
          { title: "Company", links: [{ label: "About", href: "/about" }, { label: "Careers", href: "/careers" }] },
        ]}
        city={{ label: "San Francisco", timeZone: "America/Los_Angeles" }}
        legal="© 2026 Veridian Inc."
        legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
      />
    </div>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | – | Brand name in the lockup; it also seeds the skyline, so every brand gets its own city. |
| `logo` | `ReactNode` | – | Optional logo beside the name. |
| `tagline` | `string` | – | One short line about the product. |
| `action` | `{ label: string; href: string }` | – | The main action under the tagline. |
| `columns` | `{ title: string; links: { label: string; href: string }[] }[]` | `[]` | Link columns; reading one lights the district under it. |
| `city` | `{ label: string; timeZone: string }` | – | Optional local clock in the small print, e.g. "9:41 pm in San Francisco". |
| `preset` | `"metropolis" \| "harbor" \| "campus"` | `"metropolis"` | The shape of the skyline. |
| `tone` | `"auto" \| "night"` | `"auto"` | "auto" follows the theme (a pale city by day); "night" keeps the night plate on light pages too. |
| `accent` | `string` | `"var(--chart-5)"` | Window and beacon light: any CSS colour or token. |
| `legal` | `string` | – | Copyright line. |
| `legalLinks` | `{ label: string; href: string }[]` | `[]` | Small links beside the copyright. |

## States

- **build**: When the footer comes into view the towers rise row by row over about 0.4s each, at staggered times, with bright tiles on their rising tops.
- **lights**: As the towers settle, light sweeps through the low buildings in front and the windows come on.
- **alive**: Windows switch on and off over 3 to 12 seconds, beacons blink on the spires, stars twinkle (clouds by day) and a plane crosses every 8 to 13 seconds.
- **column**: Hovering or tabbing into a link column lights the district under it and wakes its windows.
- **pointer**: Moving over the city wakes the windows near the pointer; a click in the sky sends a plane across from the nearer side.
- **reduced motion**: The finished city in one frame: no build, no planes.

## What it handles

A skyline footer is usually a looping video that never matches your colours. This is drawn in code on a pixel grid, in your theme, and it answers the pointer and the links.

- **Builds as it arrives**: Towers rise row by row at staggered times when the footer comes into view, then the lights come on.
- **A city that lives**: Windows switch on and off on their own, beacons blink on the tallest spires, and a plane crosses every few seconds.
- **Answers you**: Reading a column lights the district under it, the pointer wakes windows near it, and a click in the sky sends a plane.
- **Your own city**: The skyline is seeded from the brand name; three presets set its shape: metropolis, harbour, campus.
- **Local time**: Pass `city` and the small print says the time there, written once a minute after mount so the server never guesses it.
- **Sleeps when hidden**: Canvas 2D on a whole-pixel grid, drawn only while on screen; one still frame under reduced motion.

## Replaces

a footer video loop, a skyline illustration, a time zone clock widget, a link grid

## Where it fits

- **Cloud and developer platforms**: A night city under the links, lit in your colour.
- **Companies with a home city**: Your skyline, with the local time beside the copyright.
- **Logistics and ports**: The harbour preset: cranes and low sheds by the water.
- **Research labs and campuses**: The campus preset: lower buildings and one tall tower.

## Notes

- The links are a labelled nav of plain anchors with focus rings; the skyline canvas is hidden from screen readers.
- The city is drawn on an exact 6px grid (a 5px tile and a 1px gap) in one Canvas 2D pass, with no dependencies.
- The clock is written into its text node after mount, so server rendering never shows the wrong time zone.
- Pauses off screen and in hidden tabs; one still frame under prefers-reduced-motion.

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