# Umbra footer

> A dark gallery footer where a studio sculpture stands inside a real-time WebGL phototype glyph matrix, lit by an overhead skylight and a pointer-driven raking spotlight.

Most dark footers stack three link columns over a black box or paste a dim photo behind text. Umbra footer turns the entire surface into a lit room. A high-contrast studio photograph (one of the two bundled sculptures, or any image you pass) is translated live in one WebGL fragment shader into a crisp 16-level phototype glyph lattice with subtle optical halation. Because the shader also extracts surface normals from the photograph, moving the pointer rakes a physical directional spotlight across carved folds, edges and stone texture in real time. Hovering or focusing a link column gently leans the overhead shaft toward it, and clicking open darkness sends a quiet exposure wave across the matrix. On scroll into view the skylight sweeps downward to wake the sculpture out of darkness, and under reduced motion one finished frame is drawn with no loop.

## Install

```bash
npx shadcn@latest add @hairline-pro/umbra-footer
```

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/umbra-footer
- Premium block, included with All-Access (https://hairlineui.com/buy/all-access?from=blocks). Installs only with an All-Access token through the @hairline-pro registry: https://hairlineui.com/ui/installation#premium. Its source isn't public.

## Usage

```tsx
import { UmbraFooter } from "@/components/umbra-footer";

<UmbraFooter
  brand="sable"
  tagline="Industrial and digital design for founders shipping hardware."
  columns={[
    { title: "Work", links: [{ label: "Selected", href: "/work" }, { label: "Archive", href: "/archive" }] },
    { title: "Studio", links: [{ label: "Practice", href: "/studio" }, { label: "Careers", href: "/careers" }] },
    { title: "Legal", links: [{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }] },
  ]}
  meta={[
    { label: "© 2026 Sable Studio", value: "All rights reserved" },
    { label: "Email", value: "studio@sable.design", href: "mailto:studio@sable.design" },
    { label: "Based in", value: "Zurich, Switzerland" },
    { label: "Follow", links: [{ label: "X", href: "https://x.com" }, { label: "LinkedIn", href: "https://linkedin.com" }] },
  ]}
/>
```

## With your own photograph and colour

Pass any high-contrast studio shot through `image` (with `focalPoint` if the subject is off-centre) and override `--uf-ground`, `--uf-beam` and `--uf-highlight` on the root—the WebGL shader reads them live.

```tsx
import { Instrument_Sans } from "next/font/google";
import { UmbraFooter } from "@/components/umbra-footer";

const sans = Instrument_Sans({ subsets: ["latin"], display: "swap" });

export function SiteFooter() {
  return (
    <UmbraFooter
      brand="kestrel"
      tone="mineral"
      image="/images/sensor-studio-dark.jpg"
      focalPoint={[0.5, 0.5]}
      style={{
        "--uf-display": sans.style.fontFamily,
        "--uf-font": sans.style.fontFamily,
        "--uf-beam": "#4fa88a",
        "--uf-highlight": "#e6f5ef",
      } as React.CSSProperties}
      tagline="Solid-state LiDAR and optical benches built for autonomous flight."
      columns={[
        { title: "Hardware", links: [{ label: "Optics", href: "/optics" }, { label: "Sensors", href: "/sensors" }, { label: "Specs", href: "/specs" }] },
        { title: "Company", links: [{ label: "Lab", href: "/lab" }, { label: "Research", href: "/research" }, { label: "Careers", href: "/careers" }] },
        { title: "Legal", links: [{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }, { label: "Security", href: "/security" }] },
      ]}
      meta={[
        { label: "© 2026 Kestrel Optics", value: "All rights reserved" },
        { label: "Email", value: "hello@kestrel.optics", href: "mailto:hello@kestrel.optics" },
        { label: "Based in", value: "Munich, Germany" },
        { label: "Follow", links: [{ label: "X", href: "https://x.com" }, { label: "GitHub", href: "https://github.com" }] },
      ]}
    />
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | – | Brand wordmark shown in the top-left lockup. |
| `logo` | `ReactNode` | – | Optional logo beside the brand name. Defaults to a dotted eclipse mark. |
| `tagline` | `string` | – | One short plain statement under the brand lockup. |
| `columns` | `{ title: string; links: { label: string; href: string }[] }[]` | `[]` | Top-right link columns. Hovering or focusing one gently steers the skylight toward it. |
| `meta` | `{ label: string; value?: string; href?: string; links?: { label: string; href: string }[] }[]` | `[]` | Bottom floor metadata items (copyright, email, location, social links). |
| `scene` | `"bust" \| "monolith"` | `"bust"` | Bundled chiaroscuro studio scene loaded lazily as WebP. Ignored when `image` is provided. |
| `image` | `string` | – | Optional URL of your own dark studio photograph. Processed live by the same WebGL optical glyph and raking-light shader. |
| `focalPoint` | `[number, number]` | – | Normalized [x, y] focal anchor (0..1 from top-left) of the subject in your custom `image`. Defaults to [0.5, 0.5] for custom images. |
| `tone` | `"tungsten" \| "mineral"` | `"tungsten"` | Warm alabaster-bronze on soot (`tungsten`) or silver-verdigris on pine-black (`mineral`). |

## States

- **arrival**: When the footer scrolls into view, the overhead skylight sweeps smoothly downward over about 1.45s, waking the sculpture cell-by-cell out of darkness.
- **raking spotlight**: Moving the pointer eases a directional spotlight across the extracted Sobel normals, illuminating carved folds and bevel edges while subtly steering the beam shaft.
- **column aim**: Hovering or keyboard-focusing any top-right link column gently leans the skylight and rim light toward that column.
- **exposure wave**: Clicking open dark stage space (outside links) sends a quiet circular exposure pulse across the glyph density ramp.
- **phone**: Below 720px the focal anchor centres the sculpture horizontally between the stacked brand/nav top band and the 2×2 bottom metadata grid.
- **reduced motion**: Draws one fully illuminated, razor-sharp finished frame with no rAF loop, arrival sweep, or pointer tracking.

## What it handles

ASCII and halftone footer treatments are usually baked videos or sluggish canvas text loops that ignore light, freeze on one image and fight the links for legibility.

- **One WebGL phototype shader**: Maps photographic luminance onto a crisp 16-level glyph atlas with subtle optical halation underneath, keeping every micro-glyph sharp across display densities.
- **Real raking light from any photo**: Computes screen-space Sobel surface normals from the photograph so the moving pointer spotlight physically catches carved folds, bevels and stone texture.
- **Drop in your own image**: Ships with two compact lazy-loaded studio WebP scenes (veiled bust and optical monolith), and accepts any custom image URL with optional focalPoint framing.
- **Lighting creates the negative space**: The sculpture anchors left of centre under the skylight beam, leaving velvet darkness for the top-right link columns and bottom floor metadata.
- **Recomposed for phones**: Below 720px the shader re-anchors the sculpture cleanly in the centre between the navigation grid and the two-column floor metadata.
- **Sleeps when hidden**: Pauses off-screen and in background tabs, shows a quiet CSS skylight wash on first paint, and draws one crisp still frame under prefers-reduced-motion.

## Replaces

background footer video, static ASCII artwork, three.js scene viewer, custom studio footer layout

## Where it fits

- **Design studios and creative agencies**: Ends the portfolio on a museum-grade sculptural plate instead of a stock link grid.
- **Hardware, robotics and optics companies**: Swap the image prop for a dark studio shot of your own device and the optical glyph shader lights every bevel live.
- **AI labs and flagship SaaS launches**: Holds quiet editorial authority with just the brand, three clean link columns and four floor metadata anchors.
- **Architecture and industrial design practices**: Works out of the box with the veiled marble bust or basalt optical monolith, in warm tungsten or mineral verdigris.

## Notes

- All colours live in --uf-* CSS variables on the footer root (--uf-ground, --uf-beam, --uf-highlight, --uf-ink, --uf-ink-2, --uf-ink-3, --uf-focus) and never inherit from shadcn tokens. The WebGL shader reads them live.
- The two bundled chiaroscuro plates (1376×768 WebP, ~81 KB combined) live in umbra-footer-scenes.ts and load through dynamic import after first paint.
- The WebGL canvas is capped at ~1.75M pixels, pauses off-screen and in hidden tabs, and falls back to a dark-blended image if WebGL is unavailable.
- The canvas is aria-hidden; navigation links sit in a labelled <nav> with visible keyboard focus rings, and prefers-reduced-motion draws one still illuminated frame.

License: Hairline UI commercial license, not MIT (https://hairlineui.com/license#blocks)
