# Tide footer

> A footer drawn as one engraved seascape: your name rises out of the water and stands on the horizon, its reflection ripples under the pointer and every link sends a ring across the sea.

The whole footer is one picture, like an engraved print. Your logo, name, a short description, a contact link and the link columns sit in the sky. Your name stands on the horizon, set large on the same margins as the text, with a low sun behind it, and both are reflected in a sea drawn as rows of fine ink lines in your theme’s colours, close at the horizon and opening out towards you. The small print is the caption under the picture. When the footer comes into view, the name rises out of the water with a small bob and the sea rings where it breaks the surface. The water is a real wave simulation in perspective, so rings flatten with distance. Move the pointer through the sea and it drags a wake; move it over the letters and their reflection ripples; click or tap to drop a splash. Reaching a link, with the pointer or the keyboard, sends a ring across the sea below it. Left alone it breathes with a drop every second or so, a fine rain and a slow swell that sways the reflections. The links are plain, accessible anchors; the picture is decoration.

## Install

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

## Usage

```tsx
import { TideFooter } from "@/components/tide-footer";

<TideFooter
  wordmark="Northwind"
  logo={<img src="/logo.svg" alt="" className="size-8" />}
  tagline="Release tracking for teams that ship every day."
  contact={{ label: "hello@northwind.dev", href: "mailto:hello@northwind.dev" }}
  columns={[{ title: "Product", links: [{ label: "Pricing", href: "/pricing" }] }]}
  legal="© 2026 Northwind Labs"
/>
```

## As the site footer

Put it at the end of your root layout so every page ends at the shore; the name takes the footer’s own font, so give it your brand font with a class.

```tsx
import { TideFooter } from "@/components/tide-footer";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <div className="mx-auto max-w-[1240px] p-4">
          <TideFooter
            wordmark="Northwind"
            logo={<img src="/logo.svg" alt="" className="size-8" />}
            tagline="Release tracking for teams that ship every day."
            contact={{ label: "hello@northwind.dev", href: "mailto:hello@northwind.dev" }}
            columns={[
              { title: "Product", links: [{ label: "Features", href: "/features" }, { label: "Pricing", href: "/pricing" }] },
              { title: "Company", links: [{ label: "About", href: "/about" }, { label: "Careers", href: "/careers" }] },
              { title: "Resources", links: [{ label: "Docs", href: "/docs" }, { label: "Status", href: "https://status.northwind.dev" }] },
            ]}
            legal="© 2026 Northwind Labs"
            legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
          />
        </div>
      </body>
    </html>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `wordmark` | `string` | – | The name: beside the logo, and standing on the horizon in the footer’s font, fitted to the width. |
| `logo` | `ReactNode` | – | Your logo mark beside the name, about 32px. |
| `tagline` | `string` | – | A short description under the name. |
| `contact` | `{ label: string; href: string }` | – | One way to reach you under the description, e.g. an email. |
| `columns` | `{ title: string; links: { label: string; href: string }[] }[]` | `[]` | Link columns in the sky, three across. |
| `legal` | `string` | – | The small print under the picture, e.g. “© 2026 Northwind Labs”. |
| `legalLinks` | `{ label: string; href: string }[]` | `[]` | Links beside the small print. |

## States

- **surface**: The first time most of the name is on screen it rises out of the water over 1.5s with a small bob, and the sea rings where the letters break the surface.
- **swell**: Left alone, a drop lands every 0.7–1.6s, a fine rain keeps the lines moving and a slow swell sways the reflections.
- **wake**: The pointer drags a wake through the sea, stronger the faster it moves; over the letters it ripples their reflection. On a phone a sideways drag does the same and a vertical swipe still scrolls.
- **splash**: A click or a tap on the water or the letters drops a splash; its rings flatten into ellipses towards the horizon.
- **link**: Hovering or tabbing to a link sends a ring across the sea below it.
- **still**: With reduced motion the name is already up, three settled rings are drawn once and nothing moves.

## What it handles

Big-wordmark footers are a still logo under a list of links. Here the links, the name and the small print are one picture that answers the pointer, and the links stay plain.

- **Your name, your font**: wordmark is drawn in the footer’s own font, fitted to the width on the same margins as the text, and stands on the horizon.
- **Your colours**: Paper, ink, sun and crests come from --card, --foreground and --primary, read again when the theme changes; in dark themes the sun reads as a moon.
- **Links that are links**: Columns are a labelled nav of plain anchors with focus rings; the canvas and the big name are hidden from screen readers; the name beside the logo is read.
- **No images**: Everything is drawn in code: a wave simulation of a few thousand cells and one shader, so the install is a few kilobytes.
- **Only on screen**: The sea runs only while it is visible, a few kilobytes a frame to the GPU, and rests with reduced motion.
- **First paint**: Until the water is ready (or without WebGL) the name shows as plain type on the horizon, and the links work from the first paint.

## Replaces

a site footer, a big wordmark footer, a water ripple effect, a WebGL background, an animated logo

## Where it fits

- **Landing pages**: The last screen of a marketing site, where the name should stick.
- **Product sites**: A footer with the product’s links that people play with on the way out.
- **Studios and portfolios**: A signature ending that shows the craft without a single image.
- **Launch pages**: A memorable sign-off under a waitlist or a launch announcement.

## Notes

- The columns are a nav labelled “Footer” of plain links with focus rings; the canvas and the big name are hidden from screen readers, and the name beside the logo is read once.
- The water is a height field stepped once a frame with the two-buffer wave equation (tide-water.ts); its rows bunch up towards the horizon, so rings flatten with distance. It goes to the GPU as an 8-bit texture of a few kilobytes and one shader draws the whole plate, so a frame is one upload and one draw.
- The horizon is the bottom of the band that holds the name, measured from the page, so the picture follows your layout; the letters, a rim of paper round them and the sun are drawn once per size into a mask in the footer’s computed font.
- It runs only while the footer is on screen; pointer moves and link hovers only add drops to the field, never React state.
- Until the water is ready, and without WebGL, the name shows as type on the horizon. With reduced motion the name is already up, three settled rings are drawn once and the pointer does nothing.

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