Strength gym landing page
A loud concrete-and-chalk page for an independent gym: pick a membership and plates slam onto a barbell that bends under the load, then filter the week of classes by type and reserve a spot.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./gym-page.css";
/**
* GymPage: a raw, loud landing page for an independent strength gym.
* Its signature is "Load the bar": each membership loads more plates onto
* a barbell that bends under the weight, with the price and what you get.
* Plus a filterable week of classes you can reserve.
* It is a demo: connect `onJoin` and `onReserve` to your gym software.
*/
type Plan = {
id: string;
name: string;
price: number;
kg: number;
plates: { kg: number; color: string; h: number; w: number }[];
perks: string[];
};
const P25 = { kg: 25, color: "#d23a2c", h: 128, w: 16 };
const P20 = { kg: 20, color: "#2a5bd7", h: 128, w: 14 };
const P15 = { kg: 15, color: "#e8b923", h: 112, w: 12 };
const P10 = { kg: 10, color: "#3f8a4a", h: 96, w: 10 };
const P5 = { kg: 5, color: "#f2efe8", h: 70, w: 8 };
const PLANS: Plan[] = [
{ id: "off", name: "Off-peak", price: 29, kg: 60, plates: [P10, P5], perks: ["Open gym 10am–4pm and after 8pm", "Two classes a week", "Induction session"] },
{ id: "full", name: "Full", price: 45, kg: 100, plates: [P20, P10], perks: ["Open gym 6am–10pm", "Unlimited classes", "Programme card every month"] },
{ id: "coached", name: "Coached", price: 89, kg: 180, plates: [P25, P20, P15], perks: ["Everything in Full", "A coach and a written plan", "Check-in every fortnight"] },
];
type Kind = "strength" | "conditioning" | "mobility";
const KINDS: { id: Kind; label: string }[] = [
{ id: "strength", label: "Strength" },
{ id: "conditioning", label: "Conditioning" },
{ id: "mobility", label: "Mobility" },
];
const DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
const CLASSES: { id: string; day: number; time: string; name: string; kind: Kind; spots: number }[] = [
{ id: "c1", day: 0, time: "06:30", name: "Squat school", kind: "strength", spots: 4 },
{ id: "c2", day: 0, time: "18:30", name: "Engine", kind: "conditioning", spots: 9 },
{ id: "c3", day: 1, time: "07:00", name: "Hips and spine", kind: "mobility", spots: 6 },
{ id: "c4", day: 1, time: "19:00", name: "Pull day", kind: "strength", spots: 2 },
{ id: "c5", day: 2, time: "06:30", name: "Row and carry", kind: "conditioning", spots: 7 },
{ id: "c6", day: 2, time: "18:30", name: "Bench club", kind: "strength", spots: 5 },
{ id: "c7", day: 3, time: "12:15", name: "Lunch flow", kind: "mobility", spots: 10 },
{ id: "c8", day: 3, time: "19:00", name: "Deadlift lab", kind: "strength", spots: 0 },
{ id: "c9", day: 4, time: "07:00", name: "Sled and bike", kind: "conditioning", spots: 8 },
{ id: "c10", day: 5, time: "09:00", name: "Saturday strongman", kind: "strength", spots: 3 },
{ id: "c11", day: 5, time: "11:00", name: "Long stretch", kind: "mobility", spots: 12 },
];
const STATS = [
{ value: 740, label: "members" },
{ value: 32, label: "classes a week" },
{ value: 14, label: "platforms and racks" },
];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-forge__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
/** Counts up once when it scrolls into view. */
function Count({ to }: { to: number }) {
const ref = useRef<HTMLSpanElement>(null);
const [n, setN] = useState(0);
useEffect(() => {
const el = ref.current;
if (!el) return;
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
const id = requestAnimationFrame(() => setN(to));
return () => cancelAnimationFrame(id);
}
let raf = 0;
const io = new IntersectionObserver(([e]) => {
if (!e.isIntersecting) return;
io.disconnect();
const t0 = performance.now();
const step = (now: number) => {
const k = Math.min(1, (now - t0) / 1400);
setN(Math.round(to * (1 - Math.pow(1 - k, 3))));
if (k < 1) raf = requestAnimationFrame(step);
};
raf = requestAnimationFrame(step);
});
io.observe(el);
return () => {
io.disconnect();
cancelAnimationFrame(raf);
};
}, [to]);
return <span ref={ref}>{n}</span>;
}
export function GymPage({
onJoin,
onReserve,
}: {
onJoin?: (plan: string) => void;
onReserve?: (classId: string) => void;
}) {
const [plan, setPlan] = useState("full");
const [kinds, setKinds] = useState<Kind[]>([]);
const [mine, setMine] = useState<string[]>([]);
const [joined, setJoined] = useState(false);
const p = PLANS.find((x) => x.id === plan) ?? PLANS[1];
// The bar bends with the load: 0 at 20 kg, most at 180 kg.
const bend = Math.min(1, (p.kg - 20) / 160) * 14;
// The bar is a quadratic curve from x=20 to x=580, so x is linear in t.
const barY = (x: number) => {
const t = (x - 20) / 560;
return (1 - t) * (1 - t) * (120 + bend) + 2 * t * (1 - t) * (120 - bend * 0.6) + t * t * (120 + bend);
};
const sidePlates = (side: "l" | "r") => {
let off = 0;
return p.plates.map((pl, i) => {
const x = side === "l" ? 150 - off - pl.w : 450 + off;
off += pl.w + 2;
const y = barY(x + pl.w / 2) - pl.h / 2;
return (
<rect
key={`${p.id}-${side}-${i}`}
x={x}
y={y}
width={pl.w}
height={pl.h}
rx="3"
fill={pl.color}
className="gu-forge__plate"
style={{ "--d": `${i * 90}ms`, "--from": side === "l" ? "-80px" : "80px" } as CSSProperties}
/>
);
});
};
return (
<div className="gu-forge">
<header className="gu-forge__bar">
<a href="#" className="gu-forge__mark">
IRON HALL
</a>
<nav aria-label="Iron Hall">
<a href="#forge-classes">Classes</a>
<a href="#forge-join">Membership</a>
<a href="#forge-join" className="gu-forge__navcta">
Free first week
</a>
</nav>
</header>
<section className="gu-forge__hero">
<Photo
src="/images/landing-gym-hero-01.jpg"
alt="A woman holding a loaded barbell in a concrete gym, chalk dust in the window light"
tone="#3a3530"
className="gu-forge__hero-img"
/>
<span className="gu-forge__chalk" aria-hidden="true">
{Array.from({ length: 14 }, (_, i) => (
<i key={i} style={{ "--i": i } as CSSProperties} />
))}
</span>
<div className="gu-forge__hero-copy">
<h1>
<span>Lift heavy.</span>
<span>Get strong.</span>
<span className="gu-forge__out">Come back.</span>
</h1>
<p>
An independent strength gym in Sheffield: real barbells, good coaches
and no mirrors on the ceiling.
</p>
<a href="#forge-join" className="gu-forge__cta">
Try a week free
</a>
</div>
</section>
<ul className="gu-forge__stats">
{STATS.map((s) => (
<li key={s.label}>
<b>
<Count to={s.value} />
</b>
{s.label}
</li>
))}
</ul>
<section id="forge-join" className="gu-forge__load" aria-labelledby="forge-load-title">
<h2 id="forge-load-title">Load the bar</h2>
<p className="gu-forge__hint">Pick a membership. Heavier plans, heavier bar.</p>
<div className="gu-forge__plans" role="group" aria-label="Membership">
{PLANS.map((x) => (
<button key={x.id} type="button" aria-pressed={plan === x.id} onClick={() => setPlan(x.id)}>
{x.name}
<span>£{x.price}</span>
</button>
))}
</div>
<div className="gu-forge__rig">
<svg viewBox="0 0 600 260" className="gu-forge__barbell" role="img" aria-label={`${p.name}: a ${p.kg} kg bar`}>
{/* The rack */}
<path d="M200 250V130M400 250V130M188 130h24M388 130h24" className="gu-forge__rack" />
{/* The bar bends in the middle with the load. */}
<path
d={`M20 ${120 + bend} Q300 ${120 - bend * 0.6} 580 ${120 + bend}`}
className="gu-forge__steel"
/>
<rect x="140" y={barY(145) - 10} width="10" height="20" rx="2" className="gu-forge__collar" />
<rect x="450" y={barY(455) - 10} width="10" height="20" rx="2" className="gu-forge__collar" />
<g key={p.id}>
{sidePlates("l")}
{sidePlates("r")}
</g>
</svg>
<p className="gu-forge__kg" aria-live="polite">
<b key={p.kg}>{p.kg}</b> kg on the bar
</p>
</div>
<div className="gu-forge__deal">
<div>
<p className="gu-forge__price">
<b key={p.price}>£{p.price}</b> a month
</p>
<ul>
{p.perks.map((perk, i) => (
<li key={`${p.id}-${perk}`} style={{ "--i": i } as CSSProperties}>
{perk}
</li>
))}
</ul>
</div>
{joined ? (
<p className="gu-forge__joined" role="status">
Welcome in. Your free week starts the day you first scan in.
</p>
) : (
<button
type="button"
className="gu-forge__join"
onClick={() => {
onJoin?.(p.id);
setJoined(true);
}}
>
Start my free week on {p.name}
</button>
)}
</div>
</section>
<section id="forge-classes" className="gu-forge__week" aria-labelledby="forge-week-title">
<div className="gu-forge__week-head">
<h2 id="forge-week-title">This week</h2>
<div className="gu-forge__filters" role="group" aria-label="Class type">
{KINDS.map((k) => (
<button
key={k.id}
type="button"
data-kind={k.id}
aria-pressed={kinds.includes(k.id)}
onClick={() =>
setKinds((v) => (v.includes(k.id) ? v.filter((x) => x !== k.id) : [...v, k.id]))
}
>
{k.label}
</button>
))}
</div>
</div>
<div className="gu-forge__grid">
{DAYS.map((d, di) => (
<div key={d} className="gu-forge__day">
<h3>{d}</h3>
{CLASSES.filter((c) => c.day === di).map((c) => {
const hidden = kinds.length > 0 && !kinds.includes(c.kind);
const booked = mine.includes(c.id);
const left = c.spots - (booked ? 1 : 0);
return (
<button
key={c.id}
type="button"
className="gu-forge__class"
data-kind={c.kind}
data-hidden={hidden || undefined}
aria-pressed={booked}
disabled={c.spots === 0 && !booked}
tabIndex={hidden ? -1 : 0}
aria-hidden={hidden || undefined}
onClick={() => {
setMine((m) => (booked ? m.filter((x) => x !== c.id) : [...m, c.id]));
if (!booked) onReserve?.(c.id);
}}
>
<span className="gu-forge__time">{c.time}</span>
<span className="gu-forge__cname">{c.name}</span>
<span className="gu-forge__spots">
{c.spots === 0 ? "Full" : booked ? "You’re in" : `${left} spots`}
</span>
</button>
);
})}
</div>
))}
</div>
</section>
<section className="gu-forge__coach">
<Photo
src="/images/landing-gym-coach-03.jpg"
alt="A grey-bearded coach with tattooed forearms, arms folded, beside a squat rack"
tone="#4a4038"
className="gu-forge__coach-img"
/>
<blockquote>
<p>“Nobody here cares what you lift. They care that you came back.”</p>
<footer>Dave, head coach since 2011</footer>
</blockquote>
<Photo
src="/images/landing-gym-class-02.jpg"
alt="A small class on rowing machines while a coach walks past"
tone="#5a5048"
className="gu-forge__class-img"
/>
</section>
<footer className="gu-forge__foot">
<span>© 2026 Iron Hall Strength, Sheffield</span>
<a href="#">Find us</a>
<a href="#">Instagram</a>
</footer>
</div>
);
}
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: Strength gym landing page
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 loud, raw landing page for an independent strength gym ("Iron Hall, Sheffield"). Its signature is "Load the bar": three membership buttons (Off-peak £29, Full £45, Coached £89). Each choice loads coloured bumper plates onto an SVG barbell resting on two J-hooks; the plates slide in from the sides one after another, and the bar bends more under heavier loads (60, 100 or 180 kg) with a springy ease. The kilo count and price pop in, and the perks list in. "Start my free week" swaps to a welcome line. The second interaction is "This week": a six-day timetable of classes coloured by type (Strength red, Conditioning blue, Mobility green). Type chips filter the week (non-matching classes grey and shrink), and tapping a class reserves it ("You’re in", spots go down by one); full classes are striped and disabled.
## Palette
Concrete #1b1917, slab #25221f, chalk #ece8e0, muted #a39b90, red #e0402a, hazard yellow #f0c419 (also the focus ring). Plates: 25 kg red #d23a2c, 20 kg blue #2a5bd7, 15 kg yellow #e8b923, 10 kg green #3f8a4a, 5 kg white #f2efe8. Headings use a heavy condensed face (Haettenschweiler, Impact, Arial Narrow Bold), uppercase; body is system-ui.
## Layout
- Bar: wordmark with a red underline, Classes, Membership and a yellow "Free first week" pill.
- Hero: full-bleed photo with a slow push-in, chalk dust drifting up, a dark fade, a three-line slammed headline (the last line outlined in red), a sentence and a red CTA.
- Stats row: three counters that count up on scroll.
- Load the bar: plan buttons, the barbell rig on a slab with a hazard-tape base, then price, perks and the join button.
- This week (chalk band): heading and type chips, then a six-column grid of day columns (three below 760px, two below 560px).
- Coach: a slanted coach photo beside a big uppercase quote, then a wide slanted class photo across the full width.
- Footer.
## Images
- landing-gym-hero-01.jpg (16:9), landing-gym-class-02.jpg (3:2, shown as a wide band) and landing-gym-coach-03.jpg (4:5). Until a file exists, each frame shows a warm concrete tone.
## Motion
- Headline lines slam up with an overshoot, staggered.
- Plates slide in with a stagger; bar, collars and plates spring to the new bend.
- CTA buttons wipe in hazard stripes on hover; reserved classes stamp in.
## Accessibility
- Plan, filter and class buttons use aria-pressed; hidden classes leave the tab order and are aria-hidden.
- The barbell SVG has role="img" with a label naming the plan and the weight; the weight is aria-live.
- prefers-reduced-motion turns off all animation and transitions.
## Connect it
`onJoin(planId)` and `onReserve(classId)` are called on the two actions: wire them to your booking system.
## 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.
### GymPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./gym-page.css";
/**
* GymPage: a raw, loud landing page for an independent strength gym.
* Its signature is "Load the bar": each membership loads more plates onto
* a barbell that bends under the weight, with the price and what you get.
* Plus a filterable week of classes you can reserve.
* It is a demo: connect `onJoin` and `onReserve` to your gym software.
*/
type Plan = {
id: string;
name: string;
price: number;
kg: number;
plates: { kg: number; color: string; h: number; w: number }[];
perks: string[];
};
const P25 = { kg: 25, color: "#d23a2c", h: 128, w: 16 };
const P20 = { kg: 20, color: "#2a5bd7", h: 128, w: 14 };
const P15 = { kg: 15, color: "#e8b923", h: 112, w: 12 };
const P10 = { kg: 10, color: "#3f8a4a", h: 96, w: 10 };
const P5 = { kg: 5, color: "#f2efe8", h: 70, w: 8 };
const PLANS: Plan[] = [
{ id: "off", name: "Off-peak", price: 29, kg: 60, plates: [P10, P5], perks: ["Open gym 10am–4pm and after 8pm", "Two classes a week", "Induction session"] },
{ id: "full", name: "Full", price: 45, kg: 100, plates: [P20, P10], perks: ["Open gym 6am–10pm", "Unlimited classes", "Programme card every month"] },
{ id: "coached", name: "Coached", price: 89, kg: 180, plates: [P25, P20, P15], perks: ["Everything in Full", "A coach and a written plan", "Check-in every fortnight"] },
];
type Kind = "strength" | "conditioning" | "mobility";
const KINDS: { id: Kind; label: string }[] = [
{ id: "strength", label: "Strength" },
{ id: "conditioning", label: "Conditioning" },
{ id: "mobility", label: "Mobility" },
];
const DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
const CLASSES: { id: string; day: number; time: string; name: string; kind: Kind; spots: number }[] = [
{ id: "c1", day: 0, time: "06:30", name: "Squat school", kind: "strength", spots: 4 },
{ id: "c2", day: 0, time: "18:30", name: "Engine", kind: "conditioning", spots: 9 },
{ id: "c3", day: 1, time: "07:00", name: "Hips and spine", kind: "mobility", spots: 6 },
{ id: "c4", day: 1, time: "19:00", name: "Pull day", kind: "strength", spots: 2 },
{ id: "c5", day: 2, time: "06:30", name: "Row and carry", kind: "conditioning", spots: 7 },
{ id: "c6", day: 2, time: "18:30", name: "Bench club", kind: "strength", spots: 5 },
{ id: "c7", day: 3, time: "12:15", name: "Lunch flow", kind: "mobility", spots: 10 },
{ id: "c8", day: 3, time: "19:00", name: "Deadlift lab", kind: "strength", spots: 0 },
{ id: "c9", day: 4, time: "07:00", name: "Sled and bike", kind: "conditioning", spots: 8 },
{ id: "c10", day: 5, time: "09:00", name: "Saturday strongman", kind: "strength", spots: 3 },
{ id: "c11", day: 5, time: "11:00", name: "Long stretch", kind: "mobility", spots: 12 },
];
const STATS = [
{ value: 740, label: "members" },
{ value: 32, label: "classes a week" },
{ value: 14, label: "platforms and racks" },
];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-forge__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
/** Counts up once when it scrolls into view. */
function Count({ to }: { to: number }) {
const ref = useRef<HTMLSpanElement>(null);
const [n, setN] = useState(0);
useEffect(() => {
const el = ref.current;
if (!el) return;
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
const id = requestAnimationFrame(() => setN(to));
return () => cancelAnimationFrame(id);
}
let raf = 0;
const io = new IntersectionObserver(([e]) => {
if (!e.isIntersecting) return;
io.disconnect();
const t0 = performance.now();
const step = (now: number) => {
const k = Math.min(1, (now - t0) / 1400);
setN(Math.round(to * (1 - Math.pow(1 - k, 3))));
if (k < 1) raf = requestAnimationFrame(step);
};
raf = requestAnimationFrame(step);
});
io.observe(el);
return () => {
io.disconnect();
cancelAnimationFrame(raf);
};
}, [to]);
return <span ref={ref}>{n}</span>;
}
export function GymPage({
onJoin,
onReserve,
}: {
onJoin?: (plan: string) => void;
onReserve?: (classId: string) => void;
}) {
const [plan, setPlan] = useState("full");
const [kinds, setKinds] = useState<Kind[]>([]);
const [mine, setMine] = useState<string[]>([]);
const [joined, setJoined] = useState(false);
const p = PLANS.find((x) => x.id === plan) ?? PLANS[1];
// The bar bends with the load: 0 at 20 kg, most at 180 kg.
const bend = Math.min(1, (p.kg - 20) / 160) * 14;
// The bar is a quadratic curve from x=20 to x=580, so x is linear in t.
const barY = (x: number) => {
const t = (x - 20) / 560;
return (1 - t) * (1 - t) * (120 + bend) + 2 * t * (1 - t) * (120 - bend * 0.6) + t * t * (120 + bend);
};
const sidePlates = (side: "l" | "r") => {
let off = 0;
return p.plates.map((pl, i) => {
const x = side === "l" ? 150 - off - pl.w : 450 + off;
off += pl.w + 2;
const y = barY(x + pl.w / 2) - pl.h / 2;
return (
<rect
key={`${p.id}-${side}-${i}`}
x={x}
y={y}
width={pl.w}
height={pl.h}
rx="3"
fill={pl.color}
className="gu-forge__plate"
style={{ "--d": `${i * 90}ms`, "--from": side === "l" ? "-80px" : "80px" } as CSSProperties}
/>
);
});
};
return (
<div className="gu-forge">
<header className="gu-forge__bar">
<a href="#" className="gu-forge__mark">
IRON HALL
</a>
<nav aria-label="Iron Hall">
<a href="#forge-classes">Classes</a>
<a href="#forge-join">Membership</a>
<a href="#forge-join" className="gu-forge__navcta">
Free first week
</a>
</nav>
</header>
<section className="gu-forge__hero">
<Photo
src="/images/landing-gym-hero-01.jpg"
alt="A woman holding a loaded barbell in a concrete gym, chalk dust in the window light"
tone="#3a3530"
className="gu-forge__hero-img"
/>
<span className="gu-forge__chalk" aria-hidden="true">
{Array.from({ length: 14 }, (_, i) => (
<i key={i} style={{ "--i": i } as CSSProperties} />
))}
</span>
<div className="gu-forge__hero-copy">
<h1>
<span>Lift heavy.</span>
<span>Get strong.</span>
<span className="gu-forge__out">Come back.</span>
</h1>
<p>
An independent strength gym in Sheffield: real barbells, good coaches
and no mirrors on the ceiling.
</p>
<a href="#forge-join" className="gu-forge__cta">
Try a week free
</a>
</div>
</section>
<ul className="gu-forge__stats">
{STATS.map((s) => (
<li key={s.label}>
<b>
<Count to={s.value} />
</b>
{s.label}
</li>
))}
</ul>
<section id="forge-join" className="gu-forge__load" aria-labelledby="forge-load-title">
<h2 id="forge-load-title">Load the bar</h2>
<p className="gu-forge__hint">Pick a membership. Heavier plans, heavier bar.</p>
<div className="gu-forge__plans" role="group" aria-label="Membership">
{PLANS.map((x) => (
<button key={x.id} type="button" aria-pressed={plan === x.id} onClick={() => setPlan(x.id)}>
{x.name}
<span>£{x.price}</span>
</button>
))}
</div>
<div className="gu-forge__rig">
<svg viewBox="0 0 600 260" className="gu-forge__barbell" role="img" aria-label={`${p.name}: a ${p.kg} kg bar`}>
{/* The rack */}
<path d="M200 250V130M400 250V130M188 130h24M388 130h24" className="gu-forge__rack" />
{/* The bar bends in the middle with the load. */}
<path
d={`M20 ${120 + bend} Q300 ${120 - bend * 0.6} 580 ${120 + bend}`}
className="gu-forge__steel"
/>
<rect x="140" y={barY(145) - 10} width="10" height="20" rx="2" className="gu-forge__collar" />
<rect x="450" y={barY(455) - 10} width="10" height="20" rx="2" className="gu-forge__collar" />
<g key={p.id}>
{sidePlates("l")}
{sidePlates("r")}
</g>
</svg>
<p className="gu-forge__kg" aria-live="polite">
<b key={p.kg}>{p.kg}</b> kg on the bar
</p>
</div>
<div className="gu-forge__deal">
<div>
<p className="gu-forge__price">
<b key={p.price}>£{p.price}</b> a month
</p>
<ul>
{p.perks.map((perk, i) => (
<li key={`${p.id}-${perk}`} style={{ "--i": i } as CSSProperties}>
{perk}
</li>
))}
</ul>
</div>
{joined ? (
<p className="gu-forge__joined" role="status">
Welcome in. Your free week starts the day you first scan in.
</p>
) : (
<button
type="button"
className="gu-forge__join"
onClick={() => {
onJoin?.(p.id);
setJoined(true);
}}
>
Start my free week on {p.name}
</button>
)}
</div>
</section>
<section id="forge-classes" className="gu-forge__week" aria-labelledby="forge-week-title">
<div className="gu-forge__week-head">
<h2 id="forge-week-title">This week</h2>
<div className="gu-forge__filters" role="group" aria-label="Class type">
{KINDS.map((k) => (
<button
key={k.id}
type="button"
data-kind={k.id}
aria-pressed={kinds.includes(k.id)}
onClick={() =>
setKinds((v) => (v.includes(k.id) ? v.filter((x) => x !== k.id) : [...v, k.id]))
}
>
{k.label}
</button>
))}
</div>
</div>
<div className="gu-forge__grid">
{DAYS.map((d, di) => (
<div key={d} className="gu-forge__day">
<h3>{d}</h3>
{CLASSES.filter((c) => c.day === di).map((c) => {
const hidden = kinds.length > 0 && !kinds.includes(c.kind);
const booked = mine.includes(c.id);
const left = c.spots - (booked ? 1 : 0);
return (
<button
key={c.id}
type="button"
className="gu-forge__class"
data-kind={c.kind}
data-hidden={hidden || undefined}
aria-pressed={booked}
disabled={c.spots === 0 && !booked}
tabIndex={hidden ? -1 : 0}
aria-hidden={hidden || undefined}
onClick={() => {
setMine((m) => (booked ? m.filter((x) => x !== c.id) : [...m, c.id]));
if (!booked) onReserve?.(c.id);
}}
>
<span className="gu-forge__time">{c.time}</span>
<span className="gu-forge__cname">{c.name}</span>
<span className="gu-forge__spots">
{c.spots === 0 ? "Full" : booked ? "You’re in" : `${left} spots`}
</span>
</button>
);
})}
</div>
))}
</div>
</section>
<section className="gu-forge__coach">
<Photo
src="/images/landing-gym-coach-03.jpg"
alt="A grey-bearded coach with tattooed forearms, arms folded, beside a squat rack"
tone="#4a4038"
className="gu-forge__coach-img"
/>
<blockquote>
<p>“Nobody here cares what you lift. They care that you came back.”</p>
<footer>Dave, head coach since 2011</footer>
</blockquote>
<Photo
src="/images/landing-gym-class-02.jpg"
alt="A small class on rowing machines while a coach walks past"
tone="#5a5048"
className="gu-forge__class-img"
/>
</section>
<footer className="gu-forge__foot">
<span>© 2026 Iron Hall Strength, Sheffield</span>
<a href="#">Find us</a>
<a href="#">Instagram</a>
</footer>
</div>
);
}
```
### gym-page.css
```css
/* GymPage: Iron Hall. Raw concrete, chalk and plate colours. */
.gu-forge {
--bg: #1b1917;
--slab: #25221f;
--chalk: #ece8e0;
--muted: #a39b90;
--red: #e0402a;
--tape: #f0c419;
--line: rgb(236 232 224 / 0.12);
--focus: #f0c419;
--head: "Haettenschweiler", "Impact", "Arial Narrow Bold", "Franklin Gothic Condensed", sans-serif;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--chalk);
font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gu-forge *,
.gu-forge *::before,
.gu-forge *::after {
box-sizing: border-box;
}
.gu-forge a {
color: inherit;
}
.gu-forge button {
font: inherit;
color: inherit;
cursor: pointer;
}
.gu-forge :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.gu-forge h1,
.gu-forge h2,
.gu-forge h3 {
font-family: var(--head);
font-weight: 400;
letter-spacing: 0.01em;
line-height: 0.92;
margin: 0;
}
/* Photo with a tone fallback */
.gu-forge__photo {
display: block;
position: relative;
overflow: hidden;
background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--tone) 70%, #fff 12%), var(--tone));
}
.gu-forge__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Bar */
.gu-forge__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px clamp(16px, 4cqi, 40px);
border-bottom: 1px solid var(--line);
}
.gu-forge__mark {
font-family: var(--head);
font-size: 28px;
text-decoration: none;
letter-spacing: 0.04em;
color: var(--chalk);
border-bottom: 4px solid var(--red);
line-height: 1;
padding-bottom: 2px;
}
.gu-forge__bar nav {
display: flex;
align-items: center;
gap: 18px;
font-size: 15px;
}
.gu-forge__bar nav a {
text-decoration: none;
color: var(--muted);
transition: color 0.2s;
}
.gu-forge__bar nav a:hover {
color: var(--chalk);
}
.gu-forge__bar nav .gu-forge__navcta {
color: var(--bg);
background: var(--tape);
padding: 10px 14px;
font-weight: 700;
border-radius: 2px;
}
.gu-forge__bar nav .gu-forge__navcta:hover {
color: var(--bg);
background: var(--chalk);
}
/* Hero */
.gu-forge__hero {
position: relative;
min-height: 560px;
display: grid;
align-items: end;
isolation: isolate;
}
.gu-forge__hero-img {
position: absolute;
inset: 0;
z-index: -2;
}
.gu-forge__hero-img img {
animation: gu-forge-push 14s ease-out both;
}
.gu-forge__hero::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background:
linear-gradient(0deg, var(--bg) 0%, rgb(27 25 23 / 0.75) 32%, rgb(27 25 23 / 0.1) 70%),
linear-gradient(90deg, rgb(27 25 23 / 0.7), transparent 60%);
}
.gu-forge__chalk {
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
}
.gu-forge__chalk i {
position: absolute;
left: calc(8% + var(--i) * 6.4%);
bottom: -10px;
width: calc(3px + (var(--i) * 7 % 4) * 1px);
aspect-ratio: 1;
border-radius: 50%;
background: rgb(236 232 224 / 0.55);
filter: blur(0.6px);
animation: gu-forge-dust calc(7s + (var(--i) * 13 % 6) * 1s) linear infinite;
animation-delay: calc(var(--i) * -0.9s);
}
.gu-forge__hero-copy {
padding: 0 clamp(16px, 4cqi, 40px) 48px;
max-width: 640px;
}
.gu-forge__hero h1 {
font-size: clamp(56px, 13cqi, 132px);
text-transform: uppercase;
display: grid;
}
.gu-forge__hero h1 span {
display: block;
animation: gu-forge-slam 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.gu-forge__hero h1 span:nth-child(2) {
animation-delay: 0.15s;
}
.gu-forge__hero h1 span:nth-child(3) {
animation-delay: 0.3s;
}
.gu-forge__hero h1 .gu-forge__out {
color: transparent;
-webkit-text-stroke: 2px var(--red);
}
.gu-forge__hero p {
max-width: 44ch;
margin: 18px 0 24px;
color: #d7d1c7;
font-size: 17px;
}
.gu-forge__cta,
.gu-forge__join {
display: inline-flex;
align-items: center;
min-height: 50px;
padding: 0 24px;
border: 0;
border-radius: 2px;
background: var(--red);
color: #fff;
font-weight: 700;
text-decoration: none;
position: relative;
overflow: hidden;
isolation: isolate;
transition: transform 0.2s;
}
.gu-forge__cta::before,
.gu-forge__join::before {
content: "";
position: absolute;
inset: 0;
background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--bg) 10px 20px);
transform: translateX(-101%);
transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1);
z-index: -1;
opacity: 0.25;
}
.gu-forge__cta:hover::before,
.gu-forge__join:hover::before {
transform: translateX(0);
}
.gu-forge__cta:active,
.gu-forge__join:active {
transform: translateY(2px);
}
/* Stats */
.gu-forge__stats {
list-style: none;
margin: 0;
padding: 0 clamp(16px, 4cqi, 40px);
display: grid;
grid-template-columns: repeat(3, 1fr);
border-block: 1px solid var(--line);
}
.gu-forge__stats li {
padding: 22px 0;
color: var(--muted);
font-size: 14px;
}
.gu-forge__stats li + li {
padding-left: 20px;
border-left: 1px solid var(--line);
}
.gu-forge__stats b {
display: block;
font-family: var(--head);
font-weight: 400;
font-size: 52px;
line-height: 1;
color: var(--chalk);
font-variant-numeric: tabular-nums;
}
/* Load the bar */
.gu-forge__load {
padding: 72px clamp(16px, 4cqi, 40px);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px 40px;
align-items: start;
}
.gu-forge__load h2 {
font-size: clamp(44px, 8cqi, 80px);
text-transform: uppercase;
grid-column: 1 / -1;
}
.gu-forge__hint {
grid-column: 1 / -1;
margin: 4px 0 20px;
color: var(--muted);
}
.gu-forge__plans {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 18px;
}
.gu-forge__plans button {
min-height: 52px;
padding: 8px 18px;
border: 1px solid var(--line);
background: var(--slab);
border-radius: 2px;
display: flex;
gap: 12px;
align-items: baseline;
font-weight: 700;
transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.gu-forge__plans button span {
color: var(--muted);
font-weight: 400;
}
.gu-forge__plans button:hover {
border-color: var(--chalk);
}
.gu-forge__plans button[aria-pressed="true"] {
background: var(--chalk);
color: var(--bg);
border-color: var(--chalk);
}
.gu-forge__plans button[aria-pressed="true"] span {
color: var(--red);
}
.gu-forge__rig {
grid-column: 1 / -1;
background:
repeating-linear-gradient(90deg, transparent 0 79px, rgb(236 232 224 / 0.05) 79px 80px),
var(--slab);
border: 1px solid var(--line);
padding: 18px 18px 12px;
position: relative;
}
.gu-forge__rig::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 10px;
background: repeating-linear-gradient(-45deg, var(--tape) 0 12px, var(--bg) 12px 24px);
}
.gu-forge__barbell {
display: block;
width: 100%;
max-width: 720px;
margin: 0 auto;
height: auto;
overflow: visible;
}
.gu-forge__rack {
fill: none;
stroke: #57504a;
stroke-width: 10;
stroke-linecap: round;
}
.gu-forge__steel {
fill: none;
stroke: #c9c4bb;
stroke-width: 9;
stroke-linecap: round;
transition: d 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.gu-forge__collar {
fill: #8a847c;
transition: y 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.gu-forge__plate {
transition: y 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
animation: gu-forge-plate 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) both;
animation-delay: var(--d);
stroke: rgb(0 0 0 / 0.35);
stroke-width: 1.5;
}
.gu-forge__kg {
margin: 4px 0 14px;
text-align: center;
color: var(--muted);
}
.gu-forge__kg b {
display: inline-block;
font-family: var(--head);
font-weight: 400;
font-size: 40px;
color: var(--tape);
animation: gu-forge-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.gu-forge__deal {
grid-column: 1 / -1;
display: flex;
justify-content: space-between;
align-items: end;
gap: 24px;
flex-wrap: wrap;
margin-top: 24px;
}
.gu-forge__price {
margin: 0 0 10px;
color: var(--muted);
}
.gu-forge__price b {
display: inline-block;
font-family: var(--head);
font-weight: 400;
font-size: 64px;
line-height: 1;
color: var(--chalk);
animation: gu-forge-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.gu-forge__deal ul {
margin: 0;
padding: 0;
list-style: none;
display: grid;
gap: 6px;
}
.gu-forge__deal li {
padding-left: 22px;
position: relative;
animation: gu-forge-in 0.4s ease-out both;
animation-delay: calc(var(--i) * 80ms + 0.2s);
}
.gu-forge__deal li::before {
content: "";
position: absolute;
left: 0;
top: 0.6em;
width: 12px;
height: 4px;
background: var(--red);
}
.gu-forge__joined {
margin: 0;
max-width: 34ch;
padding: 14px 16px;
border-left: 4px solid var(--tape);
background: var(--slab);
animation: gu-forge-in 0.4s ease-out both;
}
/* Week */
.gu-forge__week {
padding: 64px clamp(16px, 4cqi, 40px);
background: var(--chalk);
color: var(--bg);
}
.gu-forge__week-head {
display: flex;
justify-content: space-between;
align-items: end;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 24px;
}
.gu-forge__week h2 {
font-size: clamp(44px, 8cqi, 80px);
text-transform: uppercase;
}
.gu-forge__filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.gu-forge__filters button {
min-height: 42px;
padding: 0 14px 0 30px;
border: 1.5px solid var(--bg);
background: transparent;
border-radius: 999px;
position: relative;
font-weight: 600;
font-size: 14px;
transition: background 0.2s, color 0.2s;
}
.gu-forge__filters button::before {
content: "";
position: absolute;
left: 12px;
top: 50%;
width: 10px;
height: 10px;
margin-top: -5px;
border-radius: 50%;
background: var(--k);
}
.gu-forge [data-kind="strength"] {
--k: #d23a2c;
}
.gu-forge [data-kind="conditioning"] {
--k: #2a5bd7;
}
.gu-forge [data-kind="mobility"] {
--k: #3f8a4a;
}
.gu-forge__filters button[aria-pressed="true"] {
background: var(--bg);
color: var(--chalk);
}
.gu-forge__grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px;
}
.gu-forge__day {
display: grid;
align-content: start;
gap: 8px;
}
.gu-forge__day h3 {
font-size: 26px;
padding-bottom: 6px;
border-bottom: 3px solid var(--bg);
}
.gu-forge__class {
text-align: left;
border: 0;
border-left: 5px solid var(--k);
background: #fff;
padding: 10px 10px 10px 10px;
border-radius: 2px;
display: grid;
gap: 2px;
min-height: 92px;
transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1), background 0.2s, filter 0.35s;
}
.gu-forge__class:hover:not(:disabled) {
transform: translateY(-3px);
}
.gu-forge__class[data-hidden] {
opacity: 0.18;
filter: grayscale(1);
transform: scale(0.94);
pointer-events: none;
}
.gu-forge__class[aria-pressed="true"] {
background: var(--bg);
color: var(--chalk);
animation: gu-forge-stamp 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.gu-forge__class:disabled {
cursor: not-allowed;
background: repeating-linear-gradient(-45deg, #e4dfd6 0 8px, #ddd7cd 8px 16px);
color: #8a8279;
}
.gu-forge__time {
font-size: 13px;
font-variant-numeric: tabular-nums;
opacity: 0.7;
}
.gu-forge__cname {
font-weight: 700;
line-height: 1.2;
}
.gu-forge__spots {
font-size: 13px;
color: var(--k);
font-weight: 600;
}
.gu-forge__class[aria-pressed="true"] .gu-forge__spots {
color: var(--tape);
}
/* Coach */
.gu-forge__coach {
padding: 72px clamp(16px, 4cqi, 40px);
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 24px;
align-items: center;
}
.gu-forge__coach-img {
aspect-ratio: 4 / 5;
clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}
.gu-forge__class-img {
grid-column: 1 / -1;
aspect-ratio: 5 / 2;
clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}
.gu-forge__coach blockquote {
margin: 0;
}
.gu-forge__coach blockquote p {
margin: 0 0 14px;
font-family: var(--head);
font-size: clamp(30px, 4.4cqi, 44px);
line-height: 1.02;
text-transform: uppercase;
}
.gu-forge__coach footer {
color: var(--muted);
}
/* Footer */
.gu-forge__foot {
display: flex;
gap: 20px;
flex-wrap: wrap;
padding: 22px clamp(16px, 4cqi, 40px);
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 14px;
}
.gu-forge__foot span {
margin-right: auto;
}
@keyframes gu-forge-push {
from {
transform: scale(1.12);
}
to {
transform: scale(1);
}
}
@keyframes gu-forge-dust {
0% {
transform: translate(0, 0);
opacity: 0;
}
15% {
opacity: 0.8;
}
100% {
transform: translate(40px, -520px);
opacity: 0;
}
}
@keyframes gu-forge-slam {
from {
transform: translateY(40%) scaleY(1.4);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}
@keyframes gu-forge-plate {
from {
transform: translateX(var(--from));
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}
@keyframes gu-forge-pop {
from {
transform: translateY(30%) scale(0.8);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}
@keyframes gu-forge-in {
from {
transform: translateX(-10px);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}
@keyframes gu-forge-stamp {
0% {
transform: scale(1.08) rotate(-1.5deg);
}
100% {
transform: none;
}
}
@container (max-width: 760px) {
.gu-forge__grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
row-gap: 22px;
}
.gu-forge__coach {
grid-template-columns: 1fr;
}
.gu-forge__coach-img {
aspect-ratio: 4 / 3;
}
.gu-forge__class-img {
aspect-ratio: 3 / 2;
}
}
@container (max-width: 560px) {
.gu-forge__bar nav a:not(.gu-forge__navcta) {
display: none;
}
.gu-forge__hero {
min-height: 520px;
}
.gu-forge__stats b {
font-size: 38px;
}
.gu-forge__stats li + li {
padding-left: 12px;
}
.gu-forge__stats li {
font-size: 13px;
}
.gu-forge__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gu-forge__plans button {
flex: 1 1 140px;
}
.gu-forge__deal {
align-items: stretch;
}
.gu-forge__join {
width: 100%;
justify-content: center;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-forge *,
.gu-forge *::before,
.gu-forge *::after {
animation: none !important;
transition: none !important;
}
.gu-forge__chalk {
display: none;
}
}
```
You might also want
Next piece: Tattoo artist portfolio with a flash try-onCoffee roaster subscription page
Landing pages, advanced
Conference page
Landing pages, intermediate
Dental clinic landing page with a treatment finder
Landing pages, advanced


