# Atlas footer

> A footer that ends on the curve of a dotted globe, with your hubs marked and light running between them. Drag to spin it.

Companies that work across countries like to end on a globe, and most ship a heavy 3D scene or a looping video for it. This one is a few thousand points on a sphere, kept where there is land, drawn in Canvas 2D at the foot of the plate. Your hubs are marked with rings and labels, and light travels along the great circles between them. The globe turns slowly on its own. Drag it and it spins with your hand and keeps its momentum when you let go; read a link column and it nudges round. The land, hubs and arcs take one `accent` colour, and the small print sits on the globe's calm foot.

## Install

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

## Usage

```tsx
import { AtlasFooter } from "@/components/atlas-footer";

<AtlasFooter
  brand="Helios"
  tagline="Take payments in 48 countries."
  action={{ label: "Open an account", href: "/signup" }}
  columns={[{ title: "Platform", links: [{ label: "Payments", href: "/payments" }] }]}
  legal="© 2026 Helios Financial Inc."
/>
```

## With your own hubs

Put it last in the layout and pass the places you work as `hubs`. `tone="night"` keeps the dark plate on a light page.

```tsx
import { AtlasFooter } from "@/components/atlas-footer";

const HUBS = [
  { label: "NYC", lat: 40.71, lon: -74.01 },
  { label: "LDN", lat: 51.51, lon: -0.13 },
  { label: "SIN", lat: 1.35, lon: 103.82 },
  { label: "SYD", lat: -33.87, lon: 151.21 },
];

export function SiteFooter() {
  return (
    <div className="mx-auto max-w-[1240px] p-4">
      <AtlasFooter
        brand="Helios"
        tone="night"
        hubs={HUBS}
        tagline="Take payments in 48 countries and get paid out in your own currency the next day."
        action={{ label: "Open an account", href: "/signup" }}
        columns={[
          { title: "Platform", links: [{ label: "Payments", href: "/payments" }, { label: "Payouts", href: "/payouts" }, { label: "Pricing", href: "/pricing" }] },
          { title: "Developers", links: [{ label: "API", href: "/api" }, { label: "Status", href: "/status" }] },
          { title: "Company", links: [{ label: "About", href: "/about" }, { label: "Careers", href: "/careers" }] },
        ]}
        legal="© 2026 Helios Financial Inc."
        legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
      />
    </div>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | – | Brand name in the lockup. |
| `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 nudges the globe. |
| `hubs` | `{ label: string; lat: number; lon: number }[]` | `seven world cities` | Places marked on the globe and joined by arcs. |
| `tone` | `"auto" \| "night"` | `"auto"` | "auto" follows the theme; "night" keeps the dark plate on light pages too. |
| `accent` | `string` | `"var(--chart-3)"` | The colour of the land, hubs and arcs: 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 globe rises into place and the arcs begin to run between the hubs.
- **drift**: Left alone, the globe turns slowly and light keeps travelling along the arcs.
- **drag**: Dragging spins the globe with the pointer; letting go keeps its speed, which dies away into the drift.
- **column**: Hovering or tabbing into a link column nudges the globe round.
- **reduced motion**: One finished frame; the globe does not turn.

## What it handles

A globe usually means a 3D library, a model file and a scene to tune. This is one small canvas file with no map data to download, in your colours.

- **Land without map data**: Points on a Fibonacci sphere are kept where there is land by a small built-in test, so nothing is downloaded.
- **Your hubs**: Pass `hubs` with names, latitudes and longitudes; each gets a ring and a label, and arcs join them along great circles.
- **Drag with momentum**: Drag to spin; let go and it keeps turning, then settles back into its slow drift.
- **Columns nudge it**: Hovering or tabbing into a link column turns the globe a little.
- **One colour**: `accent` (any token) drives the land, hubs and arcs, in light and dark.
- **Sleeps when hidden**: Draws only while on screen and in a visible tab; one still frame under reduced motion.

## Replaces

a 3D globe library, a globe video loop, a world map image, a link grid

## Where it fits

- **Payments and fintech**: The countries you pay out in, joined by light.
- **Cloud and CDN providers**: Your regions on the globe, where a map of them belongs.
- **Logistics and travel**: Routes between the places you actually serve.
- **Remote-first companies**: Offices and people across time zones, at a glance.

## Notes

- The links are a labelled nav of plain anchors with focus rings; the globe canvas is hidden from screen readers.
- Canvas 2D only: the sphere, projection and arcs are plain maths in one supporting file.
- The drag uses pointer capture and works with mouse, pen and touch; the plate still scrolls vertically on touch.
- Pauses off screen and in hidden tabs; one still frame under prefers-reduced-motion.

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