Music festival page with a timetable planner
A loud, grainy festival site: the title dances to a beat, and a two-day timetable lets you star acts, spot clashes and hide the rest.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./fest-page.css";
/**
* FestPage: a loud, joyful page for a two-day meadow festival ("Meadow Hum").
* Signature moves: the title letters dance to a 120 bpm beat (with a pause
* button), and a two-day timetable lets you star acts, flags clashes in your
* plan and can hide everything else. It is a demo: connect `onBuy` to tickets.
*/
type Act = {
id: string;
name: string;
stage: 0 | 1;
day: 0 | 1;
start: number;
end: number;
kind: string;
};
const STAGES = ["Meadow stage", "Barn"];
const DAYS = ["Fri 29 Aug", "Sat 30 Aug"];
const FROM = 14;
const TO = 24;
const ACTS: Act[] = [
{
id: "f1",
day: 0,
stage: 0,
start: 14,
end: 15,
name: "Low Orchard",
kind: "Folk",
},
{
id: "f2",
day: 0,
stage: 0,
start: 15.5,
end: 16.75,
name: "Kettle & Rye",
kind: "Soul",
},
{
id: "f3",
day: 0,
stage: 0,
start: 17.5,
end: 19,
name: "Big Teo Brass",
kind: "Brass",
},
{
id: "f4",
day: 0,
stage: 0,
start: 20,
end: 21.5,
name: "Ama Rue",
kind: "Afrobeat",
},
{
id: "f5",
day: 0,
stage: 0,
start: 22,
end: 24,
name: "Night Ferry",
kind: "Indie",
},
{
id: "f6",
day: 0,
stage: 1,
start: 15,
end: 16.5,
name: "Copper Owls",
kind: "Garage",
},
{
id: "f7",
day: 0,
stage: 1,
start: 18,
end: 19.5,
name: "Saffron Hum",
kind: "Psych",
},
{
id: "f8",
day: 0,
stage: 1,
start: 21,
end: 24,
name: "Pebble (DJ set)",
kind: "House",
},
{
id: "s1",
day: 1,
stage: 0,
start: 14,
end: 15.25,
name: "Wren & the Wires",
kind: "Folk",
},
{
id: "s2",
day: 1,
stage: 0,
start: 16,
end: 17.5,
name: "Tidelines",
kind: "Pop",
},
{
id: "s3",
day: 1,
stage: 0,
start: 18.5,
end: 20,
name: "Marigold Sound",
kind: "Funk",
},
{
id: "s4",
day: 1,
stage: 0,
start: 21,
end: 23,
name: "The Long Field",
kind: "Indie",
},
{
id: "s5",
day: 1,
stage: 1,
start: 14.5,
end: 16,
name: "Hazel Tapes",
kind: "Lo-fi",
},
{
id: "s6",
day: 1,
stage: 1,
start: 17,
end: 18.75,
name: "Ola Bassi",
kind: "Jazz",
},
{
id: "s7",
day: 1,
stage: 1,
start: 20,
end: 21.5,
name: "Fernhouse",
kind: "Electronic",
},
{
id: "s8",
day: 1,
stage: 1,
start: 22,
end: 24,
name: "Moth Disco",
kind: "Disco",
},
];
const HEADLINERS = [
{
name: "Ama Rue",
when: "Fri, 20:00, Meadow",
line: "Drums first, questions later.",
img: "/images/landing-fest-artist-18.jpg",
alt: "Illustration of a young drummer with braids tied up high, mid-hit, sticks raised",
tone: "#e8541c",
},
{
name: "Big Teo Brass",
when: "Fri, 17:30, Meadow",
line: "Forty years of trumpet and still loud.",
img: "/images/landing-fest-artist-19.jpg",
alt: "Illustration of an older man with a white moustache blowing a big trumpet, smoke rings floating out",
tone: "#efe6d2",
},
{
name: "Pebble",
when: "Fri, 21:00, Barn",
line: "Three hours, no breaks, bring water.",
img: "/images/landing-fest-artist-20.jpg",
alt: "Illustration of a DJ in a yellow-green bucket hat holding a headphone, a record floating above",
tone: "#2733d6",
},
];
const TICKETS = [
{
id: "day",
name: "Day ticket",
price: 45,
note: "Friday or Saturday",
sold: 0.41,
},
{
id: "weekend",
name: "Weekend",
price: 79,
note: "Both days, best value",
sold: 0.78,
},
{
id: "camp",
name: "Weekend + camping",
price: 109,
note: "Pitch your tent by the river",
sold: 0.92,
},
];
const hhmm = (h: number) =>
`${String(Math.floor(h) % 24).padStart(2, "0")}:${String(Math.round((h % 1) * 60)).padStart(2, "0")}`;
const overlaps = (a: Act, b: Act) =>
a.day === b.day && a.start < b.end && b.start < a.end;
/* ------------------------------------------------------------------ */
function Art({
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 (
<div
className={`gu-hum__art ${className}`}
style={{ "--tone": tone } as CSSProperties}
>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</div>
);
}
function useCountdown(month: number, day: number, hour: number) {
const [left, setLeft] = useState<{
d: number;
h: number;
m: number;
s: number;
} | null>(null);
useEffect(() => {
const tick = () => {
const now = new Date();
let t = new Date(now.getFullYear(), month, day, hour);
if (t <= now) t = new Date(now.getFullYear() + 1, month, day, hour);
const ms = t.getTime() - now.getTime();
setLeft({
d: Math.floor(ms / 864e5),
h: Math.floor((ms % 864e5) / 36e5),
m: Math.floor((ms % 36e5) / 6e4),
s: Math.floor((ms % 6e4) / 1e3),
});
};
tick();
const id = setInterval(tick, 1000);
return () => clearInterval(id);
}, [month, day, hour]);
return left;
}
/* ------------------------------------------------------------------ */
function Timetable() {
const [day, setDay] = useState<0 | 1>(0);
const [starred, setStarred] = useState<string[]>(["f4", "f8"]);
const [onlyMine, setOnlyMine] = useState(false);
const mine = ACTS.filter((a) => starred.includes(a.id));
const clash = new Set(
mine.flatMap((a) =>
mine.filter((b) => b !== a && overlaps(a, b)).map((b) => b.id),
),
);
const toggle = (id: string) =>
setStarred((s) =>
s.includes(id) ? s.filter((x) => x !== id) : [...s, id],
);
return (
<section
className="gu-hum__times"
id="hum-times"
aria-labelledby="hum-t-title"
>
<div className="gu-hum__times-head">
<h2 id="hum-t-title" className="gu-hum__h2">
Plan your weekend.
</h2>
<p className="gu-hum__plan" aria-live="polite">
<span className="gu-hum__plan-n" key={starred.length}>
{starred.length}
</span>{" "}
in your plan
{clash.size > 0 && (
<span className="gu-hum__clash-note">
, {clash.size} acts clash
</span>
)}
</p>
</div>
<div className="gu-hum__controls">
<div role="tablist" aria-label="Day" className="gu-hum__days">
{DAYS.map((d, i) => (
<button
key={d}
role="tab"
aria-selected={day === i}
onClick={() => setDay(i as 0 | 1)}
>
{d}
</button>
))}
<span
className="gu-hum__days-pill"
data-day={day}
aria-hidden="true"
/>
</div>
<label className="gu-hum__switch">
<input
type="checkbox"
checked={onlyMine}
onChange={(e) => setOnlyMine(e.target.checked)}
/>
<span aria-hidden="true" />
Only my plan
</label>
</div>
<div
className="gu-hum__grid"
role="tabpanel"
aria-label={DAYS[day]}
key={day}
data-only={onlyMine}
>
<div className="gu-hum__hours" aria-hidden="true">
{Array.from({ length: TO - FROM }, (_, i) => (
<span key={i} style={{ "--row": i } as CSSProperties}>
{hhmm(FROM + i)}
</span>
))}
</div>
{STAGES.map((stage, s) => (
<div key={stage} className="gu-hum__stage">
<h3>{stage}</h3>
<ul>
{ACTS.filter((a) => a.day === day && a.stage === s).map(
(a, i) => {
const on = starred.includes(a.id);
return (
<li
key={a.id}
data-on={on}
data-clash={clash.has(a.id)}
style={
{
"--top": a.start - FROM,
"--len": a.end - a.start,
"--i": i,
} as CSSProperties
}
>
<button
type="button"
aria-pressed={on}
onClick={() => toggle(a.id)}
aria-label={`${a.name}, ${a.kind}, ${hhmm(a.start)} to ${hhmm(a.end)}${clash.has(a.id) ? ", clashes with another act in your plan" : ""}. ${on ? "In your plan" : "Add to your plan"}`}
>
<span className="gu-hum__act-time">
{hhmm(a.start)}–{hhmm(a.end)}
</span>
<strong>{a.name}</strong>
<span className="gu-hum__act-kind">{a.kind}</span>
<span className="gu-hum__star" aria-hidden="true">
<svg viewBox="0 0 24 24">
<path d="M12 2.8 14.7 9l6.6.5-5 4.4 1.6 6.5L12 16.9l-5.9 3.5 1.6-6.5-5-4.4L9.3 9z" />
</svg>
</span>
{clash.has(a.id) && (
<span className="gu-hum__clash">Clash</span>
)}
</button>
</li>
);
},
)}
</ul>
</div>
))}
</div>
</section>
);
}
function Tickets({ onBuy }: { onBuy?: (ticket: string, qty: number) => void }) {
const [pick, setPick] = useState(1);
const [qty, setQty] = useState(2);
const [done, setDone] = useState(false);
const t = TICKETS[pick];
return (
<section
className="gu-hum__tickets"
id="hum-tickets"
aria-labelledby="hum-k-title"
>
<h2 id="hum-k-title" className="gu-hum__h2">
Tickets.
</h2>
{done ? (
<p className="gu-hum__done" role="status">
{qty} × {t.name} on hold for 10 minutes. Check your email to pay.
<button type="button" onClick={() => setDone(false)}>
Change
</button>
</p>
) : (
<form
onSubmit={(e) => {
e.preventDefault();
setDone(true);
onBuy?.(t.id, qty);
}}
>
<fieldset className="gu-hum__tiers">
<legend className="sr-only">Ticket type</legend>
{TICKETS.map((x, i) => (
<label key={x.id} style={{ "--sold": x.sold } as CSSProperties}>
<input
type="radio"
name="hum-ticket"
checked={pick === i}
onChange={() => setPick(i)}
/>
<span className="gu-hum__tier">
<span className="gu-hum__tier-name">{x.name}</span>
<span className="gu-hum__tier-price">€{x.price}</span>
<span className="gu-hum__tier-note">{x.note}</span>
<span className="gu-hum__sold" aria-hidden="true">
<span />
</span>
<span className="gu-hum__tier-left">
{x.sold > 0.9
? "Almost gone"
: `${Math.round(x.sold * 100)}% sold`}
</span>
</span>
</label>
))}
</fieldset>
<div className="gu-hum__buy">
<div className="gu-hum__qty" role="group" aria-label="How many">
<button
type="button"
aria-label="One fewer"
onClick={() => setQty((q) => Math.max(1, q - 1))}
>
−
</button>
<output aria-live="polite">{qty}</output>
<button
type="button"
aria-label="One more"
onClick={() => setQty((q) => Math.min(8, q + 1))}
>
+
</button>
</div>
<button type="submit" className="gu-hum__cta">
Get {qty} for €{qty * t.price}
</button>
</div>
</form>
)}
</section>
);
}
/* ------------------------------------------------------------------ */
export function FestPage({
onBuy,
}: {
onBuy?: (ticket: string, qty: number) => void;
}) {
const [dancing, setDancing] = useState(true);
const left = useCountdown(7, 29, 14);
const title = "Meadow Hum";
return (
<div className="gu-hum">
<header className="gu-hum__hero">
<Art
src="/images/landing-fest-hero-17.jpg"
alt="Illustration of a crowd seen from behind facing a glowing orange stage in a meadow at dusk, puffy clouds overhead"
tone="#2733d6"
className="gu-hum__hero-art"
/>
<nav className="gu-hum__nav" aria-label="Main">
<a href="#hum-times">Timetable</a>
<a href="#hum-lineup">Line-up</a>
<a href="#hum-tickets" className="gu-hum__nav-cta">
Tickets
</a>
</nav>
<h1 className="gu-hum__title" data-dance={dancing} aria-label={title}>
{title.split(" ").map((word, w, words) => (
<span key={word} className="gu-hum__word" aria-hidden="true">
{word.split("").map((ch, i) => (
<span
key={i}
style={
{
"--i": words.slice(0, w).join(" ").length + w + i,
} as CSSProperties
}
>
{ch}
</span>
))}
</span>
))}
</h1>
<div className="gu-hum__hero-foot">
<p className="gu-hum__when">
<strong>29–30 August</strong>
<span>The river meadow, 40 minutes from town</span>
</p>
{left && (
<p
className="gu-hum__count"
aria-label={`Gates open in ${left.d} days and ${left.h} hours`}
>
{(
[
[left.d, "days"],
[left.h, "hrs"],
[left.m, "min"],
[left.s, "sec"],
] as [number, string][]
).map(([n, u]) => (
<span key={u} aria-hidden="true">
<strong key={n}>{String(n).padStart(2, "0")}</strong>
{u}
</span>
))}
</p>
)}
<button
type="button"
className="gu-hum__pause"
aria-pressed={!dancing}
onClick={() => setDancing((d) => !d)}
>
{dancing ? "Stop the dancing" : "Let it dance"}
</button>
</div>
</header>
<div className="gu-hum__marquee" aria-hidden="true">
<div>
{Array.from({ length: 2 }, (_, k) => (
<span key={k}>
{ACTS.map((a) => a.name).join(" ✺ ")}
{" ✺ "}
</span>
))}
</div>
</div>
<section
className="gu-hum__lineup"
id="hum-lineup"
aria-labelledby="hum-l-title"
>
<h2 id="hum-l-title" className="gu-hum__h2">
Headliners.
</h2>
<ul>
{HEADLINERS.map((h, i) => (
<li
key={h.name}
style={{ "--i": i } as CSSProperties}
onPointerMove={(e) => {
if (e.pointerType !== "mouse") return;
const el = e.currentTarget;
const r = el.getBoundingClientRect();
el.style.setProperty(
"--rx",
`${((e.clientY - r.top) / r.height - 0.5) * -10}deg`,
);
el.style.setProperty(
"--ry",
`${((e.clientX - r.left) / r.width - 0.5) * 12}deg`,
);
}}
onPointerLeave={(e) => {
e.currentTarget.style.setProperty("--rx", "0deg");
e.currentTarget.style.setProperty("--ry", "0deg");
}}
>
<Art src={h.img} alt={h.alt} tone={h.tone} />
<div className="gu-hum__card-copy">
<p className="gu-hum__card-when">{h.when}</p>
<h3>{h.name}</h3>
<p>{h.line}</p>
</div>
</li>
))}
</ul>
</section>
<Timetable />
<Tickets onBuy={onBuy} />
<footer className="gu-hum__foot">
<p>
Meadow Hum. Run by volunteers, powered by the sun and a very old
generator.
</p>
</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: Music festival page with a timetable planner
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, joyful page for a two-day open-air music festival in a river meadow ("Meadow Hum"). It is built around grainy illustrations, and a riso-style grain sits over the whole page. Sections:
- **Hero:** a full-bleed illustration with a huge lowercase title whose letters bounce to a 120 bpm beat, with a "Stop the dancing" button. The dates sit bottom left and a live countdown to the gates bottom right.
- **Marquee:** a tilted orange band scrolling every act name.
- **Headliners:** three tilting illustrated cards.
- **Timetable planner:** this is the signature section. Day tabs have a sliding pill. Two stage columns lay acts out on an hour grid by start and end time. Tap an act to star it into your plan; overlapping starred acts turn striped with a pink ring and a "Clash" tag. A live counter shows how many acts are planned and how many clash, and an "Only my plan" switch dims everything else.
- **Tickets:** three tiers with sold-out bars, a quantity stepper and a live total.
- A footer.
## Palette
Night ultramarine #141a6b, deep #0c0f3d, stage orange #ff5a1f, cream #f6ecd6, volt #d7ff3a (focus, plan counter, small labels), pink #f2a7b9 (clashes only), lines rgba(246,236,214,0.18). The grain is an inline SVG feTurbulence data URI, blended with overlay at 0.7 opacity across the page. Type is system-ui at weight 900, tight (-0.05em), with lowercase headings.
## Layout
- Hero: at least 720px tall, with links top right (an orange "Tickets" pill).
- The title runs up to 15rem with an orange 6px text-shadow. Each letter is its own span: they rise in on load 45ms apart, then bounce (translate and squash) on a 0.5s loop, offset 60ms per letter.
- Bottom row: the dates in bold, four countdown tiles (days, hrs, min, sec) that flip on change, and the pause button.
- Marquee: an orange band rotated -1.5deg overlapping the hero edge, scrolling 40s per loop.
- Headliners: three 4:5 cards, the middle one dropped by 60px. They are slightly rotated and tilt toward the cursor in 3D. Each has a gradient footer with a volt time line, the name and a quip.
- Timetable (deep band):
- Header: the heading and the plan count in a volt circle that pops on change.
- Controls: day tabs with a sliding cream pill, and the switch.
- Grid: a 52px hour column, then two stage columns, each 760px tall (76px per hour), with hour lines.
- Acts are buttons positioned absolutely by start time and length. Each shows its time, name and genre, with a star at the top right that fills and spins when added. Starred acts turn orange; clashing ones are striped and ringed. The grid scrolls sideways on narrow screens.
- Tickets: three radio tiles. The chosen one turns cream, tilts by -1deg and lifts. Each tile has a big price, a note, a sold bar and "78% sold" (or "Almost gone"). Below sit the stepper and an orange "Get 2 for €158" button. After submitting, a volt confirmation appears.
## Images
- landing-fest-hero-17.jpg (16:9): the crowd scene.
- landing-fest-artist-18/19/20.jpg (4:5): a drummer, a trumpet player and a DJ.
All are grainy illustrations. Until a file exists, each frame shows a grainy colour field.
## Motion
- Title letters rise in, then bounce in a wave (the button pauses it).
- Countdown digits flip down and the marquee scrolls.
- Cards ease their tilt over 0.6s and follow the cursor in 0.15s.
- Acts drop in 60ms apart when you switch days, and stars spin as they fill. The plan counter pops, and the day pill slides.
## Accessibility
- Day tabs use role="tab" with aria-selected.
- Every act is a button with aria-pressed and a full label: name, genre, times, whether it clashes, and whether it's in your plan.
- The plan count is aria-live. The switch is a real checkbox.
- Tickets are radio inputs in a fieldset. The quantity is an output, and the confirmation has role="status".
- The title has an aria-label and its letters are hidden. The dancing can be paused with a button, which meets WCAG 2.2.2.
- prefers-reduced-motion: no motion.
## 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.
### FestPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./fest-page.css";
/**
* FestPage: a loud, joyful page for a two-day meadow festival ("Meadow Hum").
* Signature moves: the title letters dance to a 120 bpm beat (with a pause
* button), and a two-day timetable lets you star acts, flags clashes in your
* plan and can hide everything else. It is a demo: connect `onBuy` to tickets.
*/
type Act = {
id: string;
name: string;
stage: 0 | 1;
day: 0 | 1;
start: number;
end: number;
kind: string;
};
const STAGES = ["Meadow stage", "Barn"];
const DAYS = ["Fri 29 Aug", "Sat 30 Aug"];
const FROM = 14;
const TO = 24;
const ACTS: Act[] = [
{
id: "f1",
day: 0,
stage: 0,
start: 14,
end: 15,
name: "Low Orchard",
kind: "Folk",
},
{
id: "f2",
day: 0,
stage: 0,
start: 15.5,
end: 16.75,
name: "Kettle & Rye",
kind: "Soul",
},
{
id: "f3",
day: 0,
stage: 0,
start: 17.5,
end: 19,
name: "Big Teo Brass",
kind: "Brass",
},
{
id: "f4",
day: 0,
stage: 0,
start: 20,
end: 21.5,
name: "Ama Rue",
kind: "Afrobeat",
},
{
id: "f5",
day: 0,
stage: 0,
start: 22,
end: 24,
name: "Night Ferry",
kind: "Indie",
},
{
id: "f6",
day: 0,
stage: 1,
start: 15,
end: 16.5,
name: "Copper Owls",
kind: "Garage",
},
{
id: "f7",
day: 0,
stage: 1,
start: 18,
end: 19.5,
name: "Saffron Hum",
kind: "Psych",
},
{
id: "f8",
day: 0,
stage: 1,
start: 21,
end: 24,
name: "Pebble (DJ set)",
kind: "House",
},
{
id: "s1",
day: 1,
stage: 0,
start: 14,
end: 15.25,
name: "Wren & the Wires",
kind: "Folk",
},
{
id: "s2",
day: 1,
stage: 0,
start: 16,
end: 17.5,
name: "Tidelines",
kind: "Pop",
},
{
id: "s3",
day: 1,
stage: 0,
start: 18.5,
end: 20,
name: "Marigold Sound",
kind: "Funk",
},
{
id: "s4",
day: 1,
stage: 0,
start: 21,
end: 23,
name: "The Long Field",
kind: "Indie",
},
{
id: "s5",
day: 1,
stage: 1,
start: 14.5,
end: 16,
name: "Hazel Tapes",
kind: "Lo-fi",
},
{
id: "s6",
day: 1,
stage: 1,
start: 17,
end: 18.75,
name: "Ola Bassi",
kind: "Jazz",
},
{
id: "s7",
day: 1,
stage: 1,
start: 20,
end: 21.5,
name: "Fernhouse",
kind: "Electronic",
},
{
id: "s8",
day: 1,
stage: 1,
start: 22,
end: 24,
name: "Moth Disco",
kind: "Disco",
},
];
const HEADLINERS = [
{
name: "Ama Rue",
when: "Fri, 20:00, Meadow",
line: "Drums first, questions later.",
img: "/images/landing-fest-artist-18.jpg",
alt: "Illustration of a young drummer with braids tied up high, mid-hit, sticks raised",
tone: "#e8541c",
},
{
name: "Big Teo Brass",
when: "Fri, 17:30, Meadow",
line: "Forty years of trumpet and still loud.",
img: "/images/landing-fest-artist-19.jpg",
alt: "Illustration of an older man with a white moustache blowing a big trumpet, smoke rings floating out",
tone: "#efe6d2",
},
{
name: "Pebble",
when: "Fri, 21:00, Barn",
line: "Three hours, no breaks, bring water.",
img: "/images/landing-fest-artist-20.jpg",
alt: "Illustration of a DJ in a yellow-green bucket hat holding a headphone, a record floating above",
tone: "#2733d6",
},
];
const TICKETS = [
{
id: "day",
name: "Day ticket",
price: 45,
note: "Friday or Saturday",
sold: 0.41,
},
{
id: "weekend",
name: "Weekend",
price: 79,
note: "Both days, best value",
sold: 0.78,
},
{
id: "camp",
name: "Weekend + camping",
price: 109,
note: "Pitch your tent by the river",
sold: 0.92,
},
];
const hhmm = (h: number) =>
`${String(Math.floor(h) % 24).padStart(2, "0")}:${String(Math.round((h % 1) * 60)).padStart(2, "0")}`;
const overlaps = (a: Act, b: Act) =>
a.day === b.day && a.start < b.end && b.start < a.end;
/* ------------------------------------------------------------------ */
function Art({
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 (
<div
className={`gu-hum__art ${className}`}
style={{ "--tone": tone } as CSSProperties}
>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</div>
);
}
function useCountdown(month: number, day: number, hour: number) {
const [left, setLeft] = useState<{
d: number;
h: number;
m: number;
s: number;
} | null>(null);
useEffect(() => {
const tick = () => {
const now = new Date();
let t = new Date(now.getFullYear(), month, day, hour);
if (t <= now) t = new Date(now.getFullYear() + 1, month, day, hour);
const ms = t.getTime() - now.getTime();
setLeft({
d: Math.floor(ms / 864e5),
h: Math.floor((ms % 864e5) / 36e5),
m: Math.floor((ms % 36e5) / 6e4),
s: Math.floor((ms % 6e4) / 1e3),
});
};
tick();
const id = setInterval(tick, 1000);
return () => clearInterval(id);
}, [month, day, hour]);
return left;
}
/* ------------------------------------------------------------------ */
function Timetable() {
const [day, setDay] = useState<0 | 1>(0);
const [starred, setStarred] = useState<string[]>(["f4", "f8"]);
const [onlyMine, setOnlyMine] = useState(false);
const mine = ACTS.filter((a) => starred.includes(a.id));
const clash = new Set(
mine.flatMap((a) =>
mine.filter((b) => b !== a && overlaps(a, b)).map((b) => b.id),
),
);
const toggle = (id: string) =>
setStarred((s) =>
s.includes(id) ? s.filter((x) => x !== id) : [...s, id],
);
return (
<section
className="gu-hum__times"
id="hum-times"
aria-labelledby="hum-t-title"
>
<div className="gu-hum__times-head">
<h2 id="hum-t-title" className="gu-hum__h2">
Plan your weekend.
</h2>
<p className="gu-hum__plan" aria-live="polite">
<span className="gu-hum__plan-n" key={starred.length}>
{starred.length}
</span>{" "}
in your plan
{clash.size > 0 && (
<span className="gu-hum__clash-note">
, {clash.size} acts clash
</span>
)}
</p>
</div>
<div className="gu-hum__controls">
<div role="tablist" aria-label="Day" className="gu-hum__days">
{DAYS.map((d, i) => (
<button
key={d}
role="tab"
aria-selected={day === i}
onClick={() => setDay(i as 0 | 1)}
>
{d}
</button>
))}
<span
className="gu-hum__days-pill"
data-day={day}
aria-hidden="true"
/>
</div>
<label className="gu-hum__switch">
<input
type="checkbox"
checked={onlyMine}
onChange={(e) => setOnlyMine(e.target.checked)}
/>
<span aria-hidden="true" />
Only my plan
</label>
</div>
<div
className="gu-hum__grid"
role="tabpanel"
aria-label={DAYS[day]}
key={day}
data-only={onlyMine}
>
<div className="gu-hum__hours" aria-hidden="true">
{Array.from({ length: TO - FROM }, (_, i) => (
<span key={i} style={{ "--row": i } as CSSProperties}>
{hhmm(FROM + i)}
</span>
))}
</div>
{STAGES.map((stage, s) => (
<div key={stage} className="gu-hum__stage">
<h3>{stage}</h3>
<ul>
{ACTS.filter((a) => a.day === day && a.stage === s).map(
(a, i) => {
const on = starred.includes(a.id);
return (
<li
key={a.id}
data-on={on}
data-clash={clash.has(a.id)}
style={
{
"--top": a.start - FROM,
"--len": a.end - a.start,
"--i": i,
} as CSSProperties
}
>
<button
type="button"
aria-pressed={on}
onClick={() => toggle(a.id)}
aria-label={`${a.name}, ${a.kind}, ${hhmm(a.start)} to ${hhmm(a.end)}${clash.has(a.id) ? ", clashes with another act in your plan" : ""}. ${on ? "In your plan" : "Add to your plan"}`}
>
<span className="gu-hum__act-time">
{hhmm(a.start)}–{hhmm(a.end)}
</span>
<strong>{a.name}</strong>
<span className="gu-hum__act-kind">{a.kind}</span>
<span className="gu-hum__star" aria-hidden="true">
<svg viewBox="0 0 24 24">
<path d="M12 2.8 14.7 9l6.6.5-5 4.4 1.6 6.5L12 16.9l-5.9 3.5 1.6-6.5-5-4.4L9.3 9z" />
</svg>
</span>
{clash.has(a.id) && (
<span className="gu-hum__clash">Clash</span>
)}
</button>
</li>
);
},
)}
</ul>
</div>
))}
</div>
</section>
);
}
function Tickets({ onBuy }: { onBuy?: (ticket: string, qty: number) => void }) {
const [pick, setPick] = useState(1);
const [qty, setQty] = useState(2);
const [done, setDone] = useState(false);
const t = TICKETS[pick];
return (
<section
className="gu-hum__tickets"
id="hum-tickets"
aria-labelledby="hum-k-title"
>
<h2 id="hum-k-title" className="gu-hum__h2">
Tickets.
</h2>
{done ? (
<p className="gu-hum__done" role="status">
{qty} × {t.name} on hold for 10 minutes. Check your email to pay.
<button type="button" onClick={() => setDone(false)}>
Change
</button>
</p>
) : (
<form
onSubmit={(e) => {
e.preventDefault();
setDone(true);
onBuy?.(t.id, qty);
}}
>
<fieldset className="gu-hum__tiers">
<legend className="sr-only">Ticket type</legend>
{TICKETS.map((x, i) => (
<label key={x.id} style={{ "--sold": x.sold } as CSSProperties}>
<input
type="radio"
name="hum-ticket"
checked={pick === i}
onChange={() => setPick(i)}
/>
<span className="gu-hum__tier">
<span className="gu-hum__tier-name">{x.name}</span>
<span className="gu-hum__tier-price">€{x.price}</span>
<span className="gu-hum__tier-note">{x.note}</span>
<span className="gu-hum__sold" aria-hidden="true">
<span />
</span>
<span className="gu-hum__tier-left">
{x.sold > 0.9
? "Almost gone"
: `${Math.round(x.sold * 100)}% sold`}
</span>
</span>
</label>
))}
</fieldset>
<div className="gu-hum__buy">
<div className="gu-hum__qty" role="group" aria-label="How many">
<button
type="button"
aria-label="One fewer"
onClick={() => setQty((q) => Math.max(1, q - 1))}
>
−
</button>
<output aria-live="polite">{qty}</output>
<button
type="button"
aria-label="One more"
onClick={() => setQty((q) => Math.min(8, q + 1))}
>
+
</button>
</div>
<button type="submit" className="gu-hum__cta">
Get {qty} for €{qty * t.price}
</button>
</div>
</form>
)}
</section>
);
}
/* ------------------------------------------------------------------ */
export function FestPage({
onBuy,
}: {
onBuy?: (ticket: string, qty: number) => void;
}) {
const [dancing, setDancing] = useState(true);
const left = useCountdown(7, 29, 14);
const title = "Meadow Hum";
return (
<div className="gu-hum">
<header className="gu-hum__hero">
<Art
src="/images/landing-fest-hero-17.jpg"
alt="Illustration of a crowd seen from behind facing a glowing orange stage in a meadow at dusk, puffy clouds overhead"
tone="#2733d6"
className="gu-hum__hero-art"
/>
<nav className="gu-hum__nav" aria-label="Main">
<a href="#hum-times">Timetable</a>
<a href="#hum-lineup">Line-up</a>
<a href="#hum-tickets" className="gu-hum__nav-cta">
Tickets
</a>
</nav>
<h1 className="gu-hum__title" data-dance={dancing} aria-label={title}>
{title.split(" ").map((word, w, words) => (
<span key={word} className="gu-hum__word" aria-hidden="true">
{word.split("").map((ch, i) => (
<span
key={i}
style={
{
"--i": words.slice(0, w).join(" ").length + w + i,
} as CSSProperties
}
>
{ch}
</span>
))}
</span>
))}
</h1>
<div className="gu-hum__hero-foot">
<p className="gu-hum__when">
<strong>29–30 August</strong>
<span>The river meadow, 40 minutes from town</span>
</p>
{left && (
<p
className="gu-hum__count"
aria-label={`Gates open in ${left.d} days and ${left.h} hours`}
>
{(
[
[left.d, "days"],
[left.h, "hrs"],
[left.m, "min"],
[left.s, "sec"],
] as [number, string][]
).map(([n, u]) => (
<span key={u} aria-hidden="true">
<strong key={n}>{String(n).padStart(2, "0")}</strong>
{u}
</span>
))}
</p>
)}
<button
type="button"
className="gu-hum__pause"
aria-pressed={!dancing}
onClick={() => setDancing((d) => !d)}
>
{dancing ? "Stop the dancing" : "Let it dance"}
</button>
</div>
</header>
<div className="gu-hum__marquee" aria-hidden="true">
<div>
{Array.from({ length: 2 }, (_, k) => (
<span key={k}>
{ACTS.map((a) => a.name).join(" ✺ ")}
{" ✺ "}
</span>
))}
</div>
</div>
<section
className="gu-hum__lineup"
id="hum-lineup"
aria-labelledby="hum-l-title"
>
<h2 id="hum-l-title" className="gu-hum__h2">
Headliners.
</h2>
<ul>
{HEADLINERS.map((h, i) => (
<li
key={h.name}
style={{ "--i": i } as CSSProperties}
onPointerMove={(e) => {
if (e.pointerType !== "mouse") return;
const el = e.currentTarget;
const r = el.getBoundingClientRect();
el.style.setProperty(
"--rx",
`${((e.clientY - r.top) / r.height - 0.5) * -10}deg`,
);
el.style.setProperty(
"--ry",
`${((e.clientX - r.left) / r.width - 0.5) * 12}deg`,
);
}}
onPointerLeave={(e) => {
e.currentTarget.style.setProperty("--rx", "0deg");
e.currentTarget.style.setProperty("--ry", "0deg");
}}
>
<Art src={h.img} alt={h.alt} tone={h.tone} />
<div className="gu-hum__card-copy">
<p className="gu-hum__card-when">{h.when}</p>
<h3>{h.name}</h3>
<p>{h.line}</p>
</div>
</li>
))}
</ul>
</section>
<Timetable />
<Tickets onBuy={onBuy} />
<footer className="gu-hum__foot">
<p>
Meadow Hum. Run by volunteers, powered by the sun and a very old
generator.
</p>
</footer>
</div>
);
}
```
### fest-page.css
```css
/* Meadow Hum: ultramarine night, stage-light orange, grain on everything. */
.gu-hum {
--night: #141a6b;
--deep: #0c0f3d;
--orange: #ff5a1f;
--cream: #f6ecd6;
--volt: #d7ff3a;
--pink: #f2a7b9;
--line: rgb(246 236 214 / 0.18);
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
position: relative;
container-type: inline-size;
background: var(--night);
color: var(--cream);
font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
line-height: 1.5;
isolation: isolate;
overflow-x: clip;
}
/* riso-style grain over the whole page */
.gu-hum::after {
content: "";
position: absolute;
inset: 0;
z-index: 30;
pointer-events: none;
background-image: var(--grain);
background-size: 220px;
mix-blend-mode: overlay;
opacity: 0.7;
}
.gu-hum *,
.gu-hum *::before,
.gu-hum *::after {
box-sizing: border-box;
}
.gu-hum a {
color: inherit;
}
.gu-hum :focus-visible {
outline: 3px solid var(--volt);
outline-offset: 3px;
}
.gu-hum .sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.gu-hum__h2 {
margin: 0;
font-size: clamp(2.6rem, 7cqi, 6rem);
font-weight: 900;
line-height: 0.9;
letter-spacing: -0.05em;
text-transform: lowercase;
}
/* ---------- Illustrations ---------- */
.gu-hum__art {
position: relative;
overflow: hidden;
background:
var(--grain) 0 0 / 220px,
radial-gradient(
60% 50% at 50% 70%,
color-mix(in srgb, var(--tone) 80%, #fff),
transparent 70%
),
radial-gradient(50% 40% at 25% 25%, var(--orange), transparent 70%),
var(--tone);
}
.gu-hum__art img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* ---------- Hero ---------- */
.gu-hum__hero {
position: relative;
display: flex;
flex-direction: column;
min-height: 720px;
padding: 22px 4% 40px;
overflow: hidden;
isolation: isolate;
}
.gu-hum__hero-art {
position: absolute;
inset: 0;
z-index: -1;
}
.gu-hum__hero-art::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, rgb(12 15 61 / 0.75));
}
.gu-hum__nav {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
}
.gu-hum__nav a {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 16px;
border-radius: 999px;
font-weight: 800;
text-decoration: none;
transition: background-color 0.3s;
}
.gu-hum__nav a:hover {
background: rgb(246 236 214 / 0.12);
}
.gu-hum .gu-hum__nav-cta {
background: var(--orange);
color: var(--deep);
}
.gu-hum .gu-hum__nav-cta:hover {
background: var(--volt);
}
.gu-hum__title {
margin: 4px 0 0;
font-size: clamp(4rem, 15.5cqi, 15rem);
font-weight: 900;
line-height: 0.82;
letter-spacing: -0.06em;
text-transform: lowercase;
color: var(--cream);
text-shadow: 0 6px 0 var(--orange);
}
.gu-hum__word {
display: inline-block;
white-space: nowrap;
margin-right: 0.22em;
}
.gu-hum__word > span {
display: inline-block;
animation: gu-hum-in 0.9s var(--ease) both;
animation-delay: calc(var(--i) * 45ms);
}
.gu-hum__title[data-dance="true"] .gu-hum__word > span {
animation:
gu-hum-in 0.9s var(--ease) both,
gu-hum-beat 0.5s cubic-bezier(0.3, 0, 0.3, 1) infinite;
animation-delay: calc(var(--i) * 45ms), calc(1s + var(--i) * 60ms);
}
@keyframes gu-hum-in {
from {
opacity: 0;
transform: translateY(60%) rotate(-8deg);
}
}
@keyframes gu-hum-beat {
0%,
100% {
transform: translateY(0) scaleY(1);
}
18% {
transform: translateY(-9%) scaleY(1.06);
}
45% {
transform: translateY(1%) scaleY(0.95);
}
}
.gu-hum__hero-foot {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-top: auto;
}
.gu-hum__when {
display: grid;
margin: 0;
}
.gu-hum__when strong {
font-size: clamp(1.6rem, 3.4cqi, 2.6rem);
font-weight: 900;
letter-spacing: -0.03em;
}
.gu-hum__count {
display: flex;
gap: 6px;
margin: 0;
}
.gu-hum__count > span {
display: grid;
justify-items: center;
min-width: 70px;
padding: 10px 8px 8px;
border-radius: 18px;
background: rgb(12 15 61 / 0.6);
backdrop-filter: blur(8px);
font-size: 0.75rem;
font-weight: 700;
}
.gu-hum__count strong {
display: block;
font-size: 2rem;
font-weight: 900;
line-height: 1;
font-variant-numeric: tabular-nums;
animation: gu-hum-flip 0.45s var(--ease);
}
@keyframes gu-hum-flip {
from {
transform: translateY(-40%);
opacity: 0;
}
}
.gu-hum__pause {
min-height: 44px;
padding: 0 16px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgb(12 15 61 / 0.5);
color: inherit;
font: inherit;
font-size: 0.9rem;
font-weight: 700;
cursor: pointer;
}
/* ---------- Marquee ---------- */
.gu-hum__marquee {
overflow: hidden;
padding: 18px 0;
background: var(--orange);
color: var(--deep);
font-size: clamp(1.4rem, 3cqi, 2.2rem);
font-weight: 900;
letter-spacing: -0.03em;
white-space: pre;
transform: rotate(-1.5deg);
margin: -14px -2% 0;
}
.gu-hum__marquee > div {
display: flex;
width: max-content;
animation: gu-hum-roll 40s linear infinite;
}
@keyframes gu-hum-roll {
to {
transform: translateX(-50%);
}
}
/* ---------- Line-up ---------- */
.gu-hum__lineup {
padding: 110px 4% 96px;
}
.gu-hum__lineup ul {
display: grid;
gap: 20px;
margin: 48px 0 0;
padding: 0;
list-style: none;
}
@container (min-width: 760px) {
.gu-hum__lineup ul {
grid-template-columns: repeat(3, 1fr);
}
.gu-hum__lineup li:nth-child(2) {
margin-top: 60px;
}
}
.gu-hum__lineup li {
position: relative;
border-radius: 28px;
overflow: hidden;
background: var(--deep);
transform: perspective(900px) rotateX(var(--rx, 0deg))
rotateY(var(--ry, 0deg)) rotate(calc((var(--i) - 1) * 1.5deg));
transition: transform 0.6s var(--ease);
}
.gu-hum__lineup li:hover {
transition-duration: 0.15s;
}
.gu-hum__lineup .gu-hum__art {
aspect-ratio: 4 / 5;
}
.gu-hum__card-copy {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 60px 20px 20px;
background: linear-gradient(180deg, transparent, rgb(12 15 61 / 0.9));
}
.gu-hum__card-copy h3 {
margin: 2px 0;
font-size: clamp(1.8rem, 3.4cqi, 2.6rem);
font-weight: 900;
line-height: 0.95;
letter-spacing: -0.04em;
}
.gu-hum__card-copy p {
margin: 0;
opacity: 0.85;
}
.gu-hum__card-when {
color: var(--volt);
font-size: 0.85rem;
font-weight: 800;
}
/* ---------- Timetable ---------- */
.gu-hum__times {
padding: 96px 4%;
background: var(--deep);
}
.gu-hum__times-head {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
}
.gu-hum__plan {
margin: 0;
font-weight: 700;
}
.gu-hum__plan-n {
display: inline-grid;
place-items: center;
min-width: 40px;
height: 40px;
border-radius: 999px;
background: var(--volt);
color: var(--deep);
font-size: 1.2rem;
font-weight: 900;
animation: gu-hum-pop 0.5s var(--ease);
}
@keyframes gu-hum-pop {
40% {
transform: scale(1.3) rotate(-8deg);
}
}
.gu-hum__clash-note {
color: var(--pink);
}
.gu-hum__controls {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 16px;
margin: 32px 0 24px;
}
.gu-hum__days {
position: relative;
display: inline-grid;
grid-template-columns: 1fr 1fr;
padding: 4px;
border-radius: 999px;
background: rgb(246 236 214 / 0.1);
}
.gu-hum__days button {
position: relative;
z-index: 1;
min-height: 44px;
padding: 0 20px;
border: 0;
background: none;
color: inherit;
font: inherit;
font-weight: 800;
cursor: pointer;
transition: color 0.3s;
}
.gu-hum__days button[aria-selected="true"] {
color: var(--deep);
}
.gu-hum__days-pill {
position: absolute;
top: 4px;
bottom: 4px;
left: 4px;
width: calc(50% - 4px);
border-radius: 999px;
background: var(--cream);
transition: transform 0.5s var(--ease);
}
.gu-hum__days-pill[data-day="1"] {
transform: translateX(100%);
}
.gu-hum__switch {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 44px;
font-weight: 700;
cursor: pointer;
}
.gu-hum__switch input {
position: absolute;
opacity: 0;
}
.gu-hum__switch > span {
position: relative;
width: 48px;
height: 28px;
border-radius: 999px;
background: rgb(246 236 214 / 0.18);
transition: background-color 0.3s;
}
.gu-hum__switch > span::after {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--cream);
transition: transform 0.4s var(--ease);
}
.gu-hum__switch input:checked + span {
background: var(--volt);
}
.gu-hum__switch input:checked + span::after {
transform: translateX(20px);
background: var(--deep);
}
.gu-hum__switch input:focus-visible + span {
outline: 3px solid var(--volt);
outline-offset: 3px;
}
.gu-hum__grid {
--hour: 76px;
display: grid;
grid-template-columns: 52px 1fr 1fr;
gap: 10px;
overflow-x: auto;
}
.gu-hum__hours {
position: relative;
margin-top: 44px;
height: calc(var(--hour) * 10);
}
.gu-hum__hours span {
position: absolute;
top: calc(var(--row) * var(--hour) - 8px);
font-size: 0.8rem;
font-weight: 700;
opacity: 0.6;
font-variant-numeric: tabular-nums;
}
.gu-hum__stage {
min-width: 160px;
}
.gu-hum__stage h3 {
height: 36px;
margin: 0 0 8px;
font-size: 1rem;
font-weight: 900;
}
.gu-hum__stage ul {
position: relative;
height: calc(var(--hour) * 10);
margin: 0;
padding: 0;
list-style: none;
background: repeating-linear-gradient(
180deg,
var(--line) 0 1px,
transparent 1px var(--hour)
);
border-radius: 12px;
}
.gu-hum__stage li {
position: absolute;
left: 0;
right: 0;
top: calc(var(--top) * var(--hour) + 2px);
height: calc(var(--len) * var(--hour) - 4px);
animation: gu-hum-drop 0.6s var(--ease) both;
animation-delay: calc(var(--i) * 60ms);
transition: opacity 0.4s;
}
@keyframes gu-hum-drop {
from {
opacity: 0;
transform: translateY(-14px) scale(0.97);
}
}
.gu-hum__grid[data-only="true"] li[data-on="false"] {
opacity: 0.18;
}
.gu-hum__stage li button {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
height: 100%;
padding: 10px 40px 10px 12px;
border: 1.5px solid var(--line);
border-radius: 14px;
background: rgb(246 236 214 / 0.06);
color: inherit;
font: inherit;
text-align: left;
overflow: hidden;
cursor: pointer;
transition:
background-color 0.3s,
border-color 0.3s,
color 0.3s,
transform 0.3s var(--ease);
}
.gu-hum__stage li button:hover {
border-color: var(--cream);
transform: translateY(-2px);
}
.gu-hum__stage li[data-on="true"] button {
background: var(--orange);
border-color: var(--orange);
color: var(--deep);
}
.gu-hum__stage li[data-clash="true"] button {
background: repeating-linear-gradient(
-45deg,
var(--orange) 0 10px,
#ff7a45 10px 20px
);
box-shadow: 0 0 0 3px var(--pink);
}
.gu-hum__act-time {
font-size: 0.75rem;
font-weight: 700;
opacity: 0.75;
font-variant-numeric: tabular-nums;
}
.gu-hum__stage li strong {
font-size: 1.05rem;
font-weight: 900;
line-height: 1.1;
letter-spacing: -0.02em;
}
.gu-hum__act-kind {
font-size: 0.78rem;
opacity: 0.7;
}
.gu-hum__star {
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
}
.gu-hum__star svg {
width: 100%;
height: 100%;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linejoin: round;
transition:
fill 0.3s,
transform 0.5s var(--ease);
}
.gu-hum__stage li[data-on="true"] .gu-hum__star svg {
fill: var(--deep);
transform: rotate(72deg) scale(1.1);
}
.gu-hum__clash {
position: absolute;
right: 8px;
bottom: 8px;
padding: 2px 8px;
border-radius: 999px;
background: var(--deep);
color: var(--pink);
font-size: 0.72rem;
font-weight: 800;
}
/* ---------- Tickets ---------- */
.gu-hum__tickets {
padding: 96px 4%;
}
.gu-hum__tickets form {
display: grid;
gap: 24px;
margin-top: 40px;
}
.gu-hum__tiers {
display: grid;
gap: 12px;
margin: 0;
padding: 0;
border: 0;
}
@container (min-width: 760px) {
.gu-hum__tiers {
grid-template-columns: repeat(3, 1fr);
}
}
.gu-hum__tiers label {
position: relative;
cursor: pointer;
}
.gu-hum__tiers input {
position: absolute;
opacity: 0;
}
.gu-hum__tier {
display: grid;
gap: 4px;
height: 100%;
padding: 22px;
border: 2px solid var(--line);
border-radius: 24px;
transition:
border-color 0.3s,
background-color 0.3s,
color 0.3s,
transform 0.4s var(--ease);
}
.gu-hum__tiers label:hover .gu-hum__tier {
border-color: var(--cream);
}
.gu-hum__tiers input:checked + .gu-hum__tier {
background: var(--cream);
border-color: var(--cream);
color: var(--deep);
transform: rotate(-1deg) translateY(-4px);
}
.gu-hum__tiers input:focus-visible + .gu-hum__tier {
outline: 3px solid var(--volt);
outline-offset: 3px;
}
.gu-hum__tier-name {
font-weight: 800;
}
.gu-hum__tier-price {
font-size: 3.2rem;
font-weight: 900;
line-height: 1;
letter-spacing: -0.05em;
}
.gu-hum__tier-note {
opacity: 0.75;
}
.gu-hum__sold {
height: 8px;
margin-top: 14px;
border-radius: 8px;
background: rgb(127 127 160 / 0.3);
overflow: hidden;
}
.gu-hum__sold span {
display: block;
width: calc(var(--sold) * 100%);
height: 100%;
border-radius: 8px;
background: var(--orange);
}
.gu-hum__tier-left {
font-size: 0.82rem;
font-weight: 700;
}
.gu-hum__buy {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 16px;
}
.gu-hum__qty {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px;
border-radius: 999px;
background: rgb(246 236 214 / 0.1);
}
.gu-hum__qty button {
width: 44px;
height: 44px;
border: 0;
border-radius: 50%;
background: rgb(246 236 214 / 0.12);
color: inherit;
font: inherit;
font-size: 1.3rem;
cursor: pointer;
}
.gu-hum__qty output {
min-width: 36px;
text-align: center;
font-size: 1.2rem;
font-weight: 900;
}
.gu-hum__cta {
min-height: 56px;
padding: 0 30px;
border: 0;
border-radius: 999px;
background: var(--orange);
color: var(--deep);
font: inherit;
font-size: 1.1rem;
font-weight: 900;
cursor: pointer;
transition:
transform 0.3s var(--ease),
background-color 0.3s;
}
.gu-hum__cta:hover {
background: var(--volt);
transform: rotate(-2deg) scale(1.04);
}
.gu-hum__done {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
margin: 40px 0 0;
padding: 22px;
border-radius: 24px;
background: var(--volt);
color: var(--deep);
font-weight: 800;
}
.gu-hum__done button {
min-height: 40px;
padding: 0 16px;
border: 2px solid currentColor;
border-radius: 999px;
background: none;
color: inherit;
font: inherit;
cursor: pointer;
}
.gu-hum__foot {
padding: 40px 4%;
border-top: 1px solid var(--line);
opacity: 0.8;
}
.gu-hum__foot p {
margin: 0;
}
@media (prefers-reduced-motion: reduce) {
.gu-hum *,
.gu-hum *::before,
.gu-hum *::after {
animation: none !important;
transition: none !important;
}
}
```
You might also want
Next piece: Music playerIndie game launch page with a crew select
Landing pages, advanced
App launch page
Landing pages, advanced
Conference page
Landing pages, intermediate



