Big footer with signup
A closing footer with a giant wordmark that rises letter by letter, link columns that fold into accordions on phones, a signup field and a live local clock.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./big-footer.css";
const COLUMNS = [
{
title: "Product",
links: ["Features", "Pricing", "Changelog", "Roadmap", "Status"],
},
{ title: "Company", links: ["About", "Careers", "Press kit", "Contact"] },
{ title: "Resources", links: ["Docs", "Guides", "Community", "Templates"] },
{ title: "Legal", links: ["Privacy", "Terms", "Cookies"] },
];
const WORD = "northwind";
/**
* BigFooter
* - <details> elements power the columns: open on desktop (forced by CSS), collapsible on phones.
* - The giant wordmark animates in when the footer scrolls into view (IntersectionObserver).
* - The clock shows the studio's local time; change TIME_ZONE.
*/
const TIME_ZONE = "Europe/Lisbon";
export function BigFooter({ theme = "light" }: { theme?: "light" | "dark" }) {
const root = useRef<HTMLElement>(null);
const [seen, setSeen] = useState(false);
const [time, setTime] = useState("");
const [sent, setSent] = useState(false);
useEffect(() => {
const el = root.current;
if (!el) return;
const io = new IntersectionObserver(
([e]) => e.isIntersecting && setSeen(true),
{ threshold: 0.25 },
);
io.observe(el);
return () => io.disconnect();
}, []);
useEffect(() => {
const tick = () =>
setTime(
new Intl.DateTimeFormat("en-GB", {
hour: "2-digit",
minute: "2-digit",
timeZone: TIME_ZONE,
}).format(new Date()),
);
tick();
const t = setInterval(tick, 15000);
return () => clearInterval(t);
}, []);
return (
<footer
ref={root}
className="gu-bigfoot"
data-theme={theme}
data-seen={seen ? "" : undefined}
>
<div className="gu-bigfoot__top">
<div className="gu-bigfoot__pitch">
<h2>Build something you're proud of.</h2>
{sent ? (
<p className="gu-bigfoot__thanks" role="status">
Thanks. The next issue lands on the first Tuesday of the month.
</p>
) : (
<form
className="gu-bigfoot__form"
onSubmit={(e) => {
e.preventDefault();
setSent(true);
}}
>
<label htmlFor="gu-bigfoot-email">
Monthly notes from the team
</label>
<div>
<input
id="gu-bigfoot-email"
type="email"
required
placeholder="you@company.com"
autoComplete="email"
/>
<button type="submit">Subscribe</button>
</div>
</form>
)}
</div>
<nav className="gu-bigfoot__cols" aria-label="Footer">
{COLUMNS.map((c) => (
<details key={c.title} open>
<summary>
{c.title}
<svg viewBox="0 0 16 16" aria-hidden="true">
<path d="m4 6 4 4 4-4" />
</svg>
</summary>
<ul>
{c.links.map((l) => (
<li key={l}>
<a href={`#${l.toLowerCase().replace(/\s+/g, "-")}`}>{l}</a>
</li>
))}
</ul>
</details>
))}
</nav>
</div>
<div className="gu-bigfoot__word" aria-hidden="true">
{WORD.split("").map((ch, i) => (
<span key={i} style={{ "--i": i } as CSSProperties}>
{ch}
</span>
))}
</div>
<div className="gu-bigfoot__bottom">
<span>© {new Date().getFullYear()} Northwind Labs</span>
<span className="gu-bigfoot__clock">
<i aria-hidden="true" />
Lisbon {time}
</span>
<a href="#top" className="gu-bigfoot__up">
Back to top ↑
</a>
</div>
</footer>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Big footer with signup
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A big closing site footer: a short headline with an underline-style email signup, four link columns, a giant brand wordmark that rises letter by letter when the footer scrolls into view, and a bottom bar with copyright, a live local clock with a pulsing dot and "Back to top".
## Layout and look
- Dark version: Ink background, Cream text, lime live dot. Light version: a bold orange #ff5a1f footer with Ink text.
- Top grid: headline (clamp 32–58px, weight 900) + signup (label, borderless input with a 2px bottom border, text "Subscribe" button) on the left; four link columns on the right with muted titles.
- Links: weight 600; on hover an underline grows from the left and leaves to the right.
- Wordmark "northwind": full width, clamp(56px, 17.5cqi, 256px), weight 900, tracking -0.06em, letters spread with space-between.
- Bottom bar: hairline top border, muted small text.
## Behavior and motion
1. IntersectionObserver (threshold 0.25) sets data-seen; each letter translates from 105% below to 0 over 1s with a 55ms stagger.
2. The clock formats the studio time zone with Intl.DateTimeFormat and updates every 15s.
3. Columns are <details open>; on wide screens the summary is not clickable; under 560px they become accordions with chevrons and 52px rows.
## Touch
Accordion columns on phones.
## Accessibility
- nav with aria-label "Footer"; the wordmark is decorative (aria-hidden). The signup has a real label; the thank-you is a status message.
- prefers-reduced-motion: wordmark static, dot not pulsing.
## Props
theme. Edit COLUMNS, WORD and TIME_ZONE.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### BigFooter.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./big-footer.css";
const COLUMNS = [
{
title: "Product",
links: ["Features", "Pricing", "Changelog", "Roadmap", "Status"],
},
{ title: "Company", links: ["About", "Careers", "Press kit", "Contact"] },
{ title: "Resources", links: ["Docs", "Guides", "Community", "Templates"] },
{ title: "Legal", links: ["Privacy", "Terms", "Cookies"] },
];
const WORD = "northwind";
/**
* BigFooter
* - <details> elements power the columns: open on desktop (forced by CSS), collapsible on phones.
* - The giant wordmark animates in when the footer scrolls into view (IntersectionObserver).
* - The clock shows the studio's local time; change TIME_ZONE.
*/
const TIME_ZONE = "Europe/Lisbon";
export function BigFooter({ theme = "light" }: { theme?: "light" | "dark" }) {
const root = useRef<HTMLElement>(null);
const [seen, setSeen] = useState(false);
const [time, setTime] = useState("");
const [sent, setSent] = useState(false);
useEffect(() => {
const el = root.current;
if (!el) return;
const io = new IntersectionObserver(
([e]) => e.isIntersecting && setSeen(true),
{ threshold: 0.25 },
);
io.observe(el);
return () => io.disconnect();
}, []);
useEffect(() => {
const tick = () =>
setTime(
new Intl.DateTimeFormat("en-GB", {
hour: "2-digit",
minute: "2-digit",
timeZone: TIME_ZONE,
}).format(new Date()),
);
tick();
const t = setInterval(tick, 15000);
return () => clearInterval(t);
}, []);
return (
<footer
ref={root}
className="gu-bigfoot"
data-theme={theme}
data-seen={seen ? "" : undefined}
>
<div className="gu-bigfoot__top">
<div className="gu-bigfoot__pitch">
<h2>Build something you're proud of.</h2>
{sent ? (
<p className="gu-bigfoot__thanks" role="status">
Thanks. The next issue lands on the first Tuesday of the month.
</p>
) : (
<form
className="gu-bigfoot__form"
onSubmit={(e) => {
e.preventDefault();
setSent(true);
}}
>
<label htmlFor="gu-bigfoot-email">
Monthly notes from the team
</label>
<div>
<input
id="gu-bigfoot-email"
type="email"
required
placeholder="you@company.com"
autoComplete="email"
/>
<button type="submit">Subscribe</button>
</div>
</form>
)}
</div>
<nav className="gu-bigfoot__cols" aria-label="Footer">
{COLUMNS.map((c) => (
<details key={c.title} open>
<summary>
{c.title}
<svg viewBox="0 0 16 16" aria-hidden="true">
<path d="m4 6 4 4 4-4" />
</svg>
</summary>
<ul>
{c.links.map((l) => (
<li key={l}>
<a href={`#${l.toLowerCase().replace(/\s+/g, "-")}`}>{l}</a>
</li>
))}
</ul>
</details>
))}
</nav>
</div>
<div className="gu-bigfoot__word" aria-hidden="true">
{WORD.split("").map((ch, i) => (
<span key={i} style={{ "--i": i } as CSSProperties}>
{ch}
</span>
))}
</div>
<div className="gu-bigfoot__bottom">
<span>© {new Date().getFullYear()} Northwind Labs</span>
<span className="gu-bigfoot__clock">
<i aria-hidden="true" />
Lisbon {time}
</span>
<a href="#top" className="gu-bigfoot__up">
Back to top ↑
</a>
</div>
</footer>
);
}
```
### big-footer.css
```css
/* BigFooter: change these colors to match your brand. */
.gu-bigfoot {
--bg: #0e0e10;
--text: #f3eee3;
--muted: #aea89c;
--line: rgb(243 238 227 / 0.14);
--accent: #ff5a1f;
--live: #d7ff3a;
--focus: #d7ff3a;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
container-type: inline-size;
overflow: hidden;
padding: clamp(40px, 7%, 96px) clamp(18px, 4%, 48px) 20px;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
/* The light version is a warm orange footer with Ink text */
.gu-bigfoot[data-theme="light"] {
--bg: #ff5a1f;
--text: #0e0e10;
--muted: rgb(14 14 16 / 0.72);
--line: rgb(14 14 16 / 0.2);
--accent: #0e0e10;
--live: #0e0e10;
--focus: #2b35ff;
}
.gu-bigfoot__top {
display: grid;
grid-template-columns: 1.1fr 1.4fr;
gap: clamp(32px, 6cqi, 80px);
}
.gu-bigfoot h2 {
margin: 0 0 28px;
font-size: clamp(2rem, 5cqi, 3.6rem);
font-weight: 900;
letter-spacing: -0.045em;
line-height: 0.95;
text-wrap: balance;
}
.gu-bigfoot__form label {
display: block;
margin-bottom: 10px;
color: var(--muted);
font-weight: 600;
}
.gu-bigfoot__form div {
display: flex;
max-width: 440px;
border-bottom: 2px solid var(--text);
}
.gu-bigfoot__form input {
flex: 1;
min-width: 0;
height: 54px;
border: 0;
outline: none;
background: none;
color: inherit;
font: inherit;
font-size: 1.1rem;
}
.gu-bigfoot__form input::placeholder {
color: var(--muted);
}
.gu-bigfoot__form button {
padding: 0 4px 0 16px;
border: 0;
background: none;
color: inherit;
font: inherit;
font-weight: 800;
cursor: pointer;
}
.gu-bigfoot__form button:hover {
color: var(--accent);
}
.gu-bigfoot__form div:focus-within {
border-color: var(--focus);
}
.gu-bigfoot__thanks {
max-width: 440px;
font-weight: 700;
}
.gu-bigfoot__cols {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 24px;
}
.gu-bigfoot summary {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
color: var(--muted);
font-size: 0.85rem;
font-weight: 700;
list-style: none;
pointer-events: none; /* not collapsible on wide screens */
}
.gu-bigfoot summary::-webkit-details-marker {
display: none;
}
.gu-bigfoot summary svg {
display: none;
width: 16px;
fill: none;
stroke: currentColor;
stroke-width: 2;
transition: transform 0.3s var(--ease);
}
.gu-bigfoot ul {
display: grid;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.gu-bigfoot__cols a {
position: relative;
color: inherit;
font-weight: 600;
text-decoration: none;
}
.gu-bigfoot__cols a::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -2px;
height: 2px;
background: currentColor;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.35s var(--ease);
}
.gu-bigfoot__cols a:hover::after {
transform: scaleX(1);
transform-origin: left;
}
.gu-bigfoot a:focus-visible,
.gu-bigfoot button:focus-visible,
.gu-bigfoot summary:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
border-radius: 4px;
}
/* Giant wordmark: each letter rises from below the baseline when the footer is seen */
.gu-bigfoot__word {
display: flex;
justify-content: space-between;
margin: clamp(40px, 8cqi, 96px) 0 0;
overflow: hidden;
font-size: clamp(3.5rem, 17.5cqi, 16rem);
font-weight: 900;
letter-spacing: -0.06em;
line-height: 0.78;
padding-bottom: 0.06em;
}
.gu-bigfoot__word span {
display: inline-block;
transform: translateY(105%);
transition: transform 1s calc(var(--i) * 55ms) var(--ease);
}
.gu-bigfoot[data-seen] .gu-bigfoot__word span {
transform: none;
}
.gu-bigfoot__bottom {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 12px 24px;
padding-top: 18px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.85rem;
font-weight: 600;
}
.gu-bigfoot__clock {
display: inline-flex;
align-items: center;
gap: 8px;
font-variant-numeric: tabular-nums;
}
.gu-bigfoot__clock i {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--live);
animation: gu-bigfoot-pulse 2s infinite;
}
@keyframes gu-bigfoot-pulse {
50% {
opacity: 0.3;
}
}
.gu-bigfoot__up {
color: inherit;
text-decoration: none;
}
.gu-bigfoot__up:hover {
color: var(--text);
}
@container (max-width: 860px) {
.gu-bigfoot__top {
grid-template-columns: 1fr;
}
}
@container (max-width: 560px) {
.gu-bigfoot__cols {
grid-template-columns: 1fr;
gap: 0;
}
.gu-bigfoot details {
border-bottom: 1px solid var(--line);
}
.gu-bigfoot summary {
min-height: 52px;
margin: 0;
color: var(--text);
font-size: 1rem;
pointer-events: auto;
cursor: pointer;
}
.gu-bigfoot summary svg {
display: block;
}
.gu-bigfoot details[open] summary svg {
transform: rotate(180deg);
}
.gu-bigfoot details ul {
padding-bottom: 16px;
}
.gu-bigfoot details li a {
display: inline-flex;
min-height: 40px;
align-items: center;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-bigfoot__word span {
transform: none;
transition: none;
}
.gu-bigfoot__clock i {
animation: none;
}
.gu-bigfoot__cols a::after,
.gu-bigfoot summary svg {
transition: none;
}
}
```
You might also want
Next piece: Cart drawerChangelog timeline
Templates, intermediate
FAQ accordion
Templates, beginner
Help center FAQ
Templates, intermediate