Nautilus Hero
A hero for an architecture studio: the headline, two calls to action and the project now showing on the left, and on the right a Nautilus spiral of the studio's work. It unfurls from its tail on load, then moves one project to the front every few seconds; a click on any card winds it forward and the caption follows.
"use client";
import * as React from "react";
import { Nautilus } from "@/components/ui/nautilus";
/* ── Content ─────────────────────────────────────────────────
* Everything you'd change to make the section yours: the copy,
* the links and the projects on the spiral. The front card is
* the project named under the buttons; it moves on by itself
* every few seconds, and a click on any card winds it forward.
* ─────────────────────────────────────────────────────────── */
/** The one accent, hot orange: the primary button and focus rings, and (AA-dark for small text) the project counter. */
const ACCENT = "#ff5a1f";
const ACCENT_DARK = "#ff7a45";
const ACCENT_TEXT = "#d93f06";
const BRAND = { name: "Lath", href: "#" };
const NAV_LINKS = [
{ label: "Work", href: "#work" },
{ label: "Studio", href: "#studio" },
{ label: "Journal", href: "#journal" },
];
const NAV_CTA = { label: "Start a project", href: "#contact" };
const EYEBROW = "Architecture and interiors · Lisbon & Oslo";
const HEADLINE = "Houses built around the afternoon light.";
const SUBLINE =
"Lath is a studio of nine architects. We design homes, small hotels and the rooms inside them, from the first site visit to the last door handle.";
const PRIMARY_CTA = { label: "Start a project", href: "#contact" };
const SECONDARY_CTA = { label: "See all work", href: "#work" };
const NOW_SHOWING = "Now showing";
const photo = (id: string) =>
`https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=960&h=1200&q=80`;
const PROJECTS = [
{ src: photo("1727786467215-116f0dbb9696"), alt: "White stairs turning between vivid green walls", name: "Casa Verde", place: "Comporta", year: "2025" },
{ src: photo("1706541972715-41ea84cf1d1e"), alt: "An empty room where two arched lattice windows pour golden light across a patterned floor", name: "Lattice Room", place: "Seville", year: "2024" },
{ src: photo("1567016376408-0226e4d0c1ea"), alt: "A white arched opening onto a minimal white room with a dark grey sofa", name: "Arco Flat", place: "Lisbon", year: "2025" },
{ src: photo("1762755647813-017e128a4ba0"), alt: "A monstera in a terracotta pot against a textured orange wall", name: "Hotel Sal", place: "Tavira", year: "2023" },
{ src: photo("1672865362636-2a1c08284ede"), alt: "A curving white stair wall with a small plant on the steps", name: "Curve House", place: "Bergen", year: "2024" },
{ src: photo("1754390755142-3b4b9ffbd1f3"), alt: "A raw concrete room with high steel windows, a deep red curtain and round poufs", name: "Foundry Loft", place: "Oslo", year: "2023" },
{ src: photo("1576500762874-720db275b3f9"), alt: "A sunlit white wall with plants in terracotta pots above tiled steps", name: "Terraço House", place: "Porto", year: "2024" },
{ src: photo("1681157998340-6d848679b149"), alt: "A pointed sandstone arch with a tiled border opening onto a receding arcade", name: "Arcade Library", place: "Marrakech", year: "2025" },
];
/* ── Section ─────────────────────────────────────────────── */
function Arrow({ className }: { className?: string }) {
return (
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" className={className} aria-hidden>
<path d="M3 8h9.5M8.5 4l4 4-4 4" strokeLinecap="round" strokeLinejoin="round" />
</svg>
);
}
function LathMark({ className }: { className?: string }) {
return (
<svg viewBox="0 0 24 24" className={className} aria-hidden>
<rect x="3" y="3" width="18" height="18" rx="3" fill="currentColor" />
<path d="M8 6.5v11M12 6.5v11M16 6.5v11" stroke="white" strokeWidth="1.6" strokeLinecap="round" className="dark:stroke-zinc-950" />
</svg>
);
}
const pad = (n: number) => String(n).padStart(2, "0");
export function NautilusHero() {
const [index, setIndex] = React.useState(0);
const project = PROJECTS[index];
return (
<section
style={{ "--accent": ACCENT, "--accent-dark": ACCENT_DARK, "--accent-text": ACCENT_TEXT } as React.CSSProperties}
className="relative overflow-x-clip bg-white text-zinc-950 dark:bg-zinc-950 dark:text-white"
>
<header className="border-b border-zinc-950/[0.07] dark:border-white/[0.08]">
<div className="mx-auto flex h-16 max-w-6xl items-center justify-between gap-6 px-6">
<a
href={BRAND.href}
className="flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-tight focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) dark:focus-visible:outline-(--accent-dark)"
>
<LathMark className="size-6" />
{BRAND.name}
</a>
<nav aria-label="Main" className="hidden items-center gap-8 text-sm text-zinc-600 md:flex dark:text-zinc-400">
{NAV_LINKS.map((link) => (
<a
key={link.label}
href={link.href}
className="rounded-sm transition-colors duration-150 hover:text-zinc-950 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) dark:hover:text-white dark:focus-visible:outline-(--accent-dark)"
>
{link.label}
</a>
))}
</nav>
<a
href={NAV_CTA.href}
className="flex h-9 items-center rounded-full bg-zinc-950 px-4 text-[13px] font-semibold text-white transition-colors duration-150 hover:bg-zinc-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus-visible:outline-(--accent-dark)"
>
{NAV_CTA.label}
</a>
</div>
</header>
<div className="mx-auto grid max-w-6xl grid-cols-1 items-center gap-6 px-6 pt-12 pb-14 sm:pt-16 lg:grid-cols-[minmax(0,26rem)_minmax(0,1fr)] lg:gap-10 lg:pt-10 lg:pb-12">
<div>
<p className="text-[13px] font-medium text-zinc-500 dark:text-zinc-400">{EYEBROW}</p>
<h1 className="mt-4 text-balance text-[2.5rem] leading-[1.04] font-semibold tracking-[-0.04em] sm:text-[3.25rem] lg:text-[3.5rem]">
{HEADLINE}
</h1>
<p className="mt-5 max-w-md text-pretty text-base leading-relaxed text-zinc-600 dark:text-zinc-400">{SUBLINE}</p>
<div className="mt-8 flex flex-wrap items-center gap-3">
<a
href={PRIMARY_CTA.href}
className="inline-flex h-11 items-center gap-2 rounded-full bg-(--accent) px-5 text-sm font-semibold text-zinc-950 transition-[transform,filter] duration-150 hover:brightness-110 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) active:scale-[0.97] dark:bg-(--accent-dark) dark:text-zinc-950 dark:focus-visible:outline-(--accent-dark)"
>
{PRIMARY_CTA.label}
<Arrow className="size-4" />
</a>
<a
href={SECONDARY_CTA.href}
className="inline-flex h-11 items-center rounded-full border border-zinc-950/10 px-5 text-sm font-semibold transition-colors duration-150 hover:border-zinc-950/25 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) dark:border-white/15 dark:hover:border-white/30 dark:focus-visible:outline-(--accent-dark)"
>
{SECONDARY_CTA.label}
</a>
</div>
<div className="mt-10 hidden border-t border-zinc-950/[0.07] pt-5 lg:block dark:border-white/[0.08]">
<p className="text-xs text-zinc-500 dark:text-zinc-400">
{NOW_SHOWING}{" "}
<span className="font-medium text-(--accent-text) tabular-nums dark:text-(--accent-dark)">
{pad(index + 1)}/{pad(PROJECTS.length)}
</span>
</p>
<p className="mt-1.5 text-sm font-semibold tracking-[-0.01em]">
{project.name} <span className="font-normal text-zinc-500 dark:text-zinc-400">· {project.place}, {project.year}</span>
</p>
</div>
</div>
<Nautilus
items={PROJECTS}
index={index}
onIndexChange={(i) => setIndex(i)}
label="Lath projects"
className="-mx-6 h-[22rem] w-auto sm:h-[28rem] lg:mx-0 lg:h-[clamp(26rem,calc(100svh-11rem),36rem)] lg:w-full lg:[--nautilus-align:end]"
/>
</div>
</section>
);
}
Installation
The CLI writes components/nautilus-hero.tsx, the components it's built with (components/ui/nautilus.tsx) and lib/utils.ts, and installs clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.
npx shadcn@latest add @keyframeui/nautilus-heroThen put it where the section goes. The copy, links and data sit in constants at the top of the file, so making it yours starts there.
import { NautilusHero } from "@/components/nautilus-hero";
export default function Page() {
return <NautilusHero />;
}
Built with
Each of these is a component on its own, with its own examples and props. The block installs them for you.