Design overhaul (v1.10.0 to v1.10.2) #18

Merged
ngu-git-admin merged 17 commits from design-overhaul into main 2026-09-30 23:59:16 +01:00
36 changed files with 255 additions and 219 deletions
Showing only changes of commit 6fc19d7ee3 - Show all commits

View file

@ -6,6 +6,7 @@ import Banner from "./Banner.tsx";
import siteLogo from "../assets/logos/NGU_Logo.svg";
import Footer from "./Footer.tsx";
import PrivacyNotice from "./PrivacyNotice.tsx";
import PageBackdrop from "./PageBackdrop.tsx";
import ThemeToggle from "./ThemeToggle.tsx";
import { scrollBehavior } from "../lib/motion.ts";
@ -239,8 +240,8 @@ export default function Layout() {
className="hidden md:flex items-center px-6 py-2"
aria-label={`On this page: ${activePage?.label}`}
style={{
background: "rgba(0, 47, 57, 0.92)",
borderBottom: "1px solid rgba(45,200,224,0.15)",
background: "rgba(0, 16, 17, 0.92)",
borderBottom: "1px solid rgba(92, 231, 255, 0.15)",
}}
>
<span className="text-xs text-white/65">{activePage?.label}</span>
@ -249,7 +250,7 @@ export default function Layout() {
<span
aria-hidden
className="mx-5 h-4 w-px"
style={{ background: "rgba(45,200,224,0.3)" }}
style={{ background: "rgba(92, 231, 255, 0.3)" }}
/>
<div className="flex items-center gap-6">
@ -272,6 +273,8 @@ export default function Layout() {
)}
</header>
<PageBackdrop />
{/* Keeps page content clear of the fixed header */}
<div aria-hidden className="print:hidden" style={{ height: headerHeight }} />
@ -292,7 +295,7 @@ export default function Layout() {
{mobileMenuOpen && (
<div
className="fixed inset-0 z-[60] flex flex-col items-center justify-center overflow-y-auto py-16"
style={{ background: "rgba(7,61,74,0.97)" }}
style={{ background: "rgba(0, 69, 82, 0.97)" }}
role="dialog"
aria-modal="true"
aria-label="Menu"

View file

@ -0,0 +1,62 @@
/* ═══════════════════════════════════════════════════════════════
PAGE BACKDROP: the circles and their tones (PageBackdrop.tsx)
Flat fills only: no blur, no gradient, no glow. Light mode uses
the palette's four palest shades, dark mode its dark shades at
half opacity over the ink background. Every text token reads at
5:1 or better on any of them, where two overlap included (the
lowest is the danger red in dark mode).
═══════════════════════════════════════════════════════════════ */
.page-backdrop {
position: fixed;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
--pb-opacity: 0.75;
--pb-a: #c2f6ff;
--pb-b: #dfebd6;
--pb-c: #c2ffd6;
--pb-d: #c2fbff;
--pb-e: #dfebd6;
--pb-shift: 0vw;
}
.page-backdrop__circle {
position: absolute;
border-radius: 50%;
opacity: var(--pb-opacity);
transform: translateX(var(--pb-shift));
transition: background-color 1.4s cubic-bezier(0.16, 1, 0.3, 1),
transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-backdrop__circle--a { width: 70vmax; height: 70vmax; left: -22vmax; top: -18vmax; background: var(--pb-a); }
.page-backdrop__circle--b { width: 52vmax; height: 52vmax; right: -16vmax; top: 8vh; background: var(--pb-b); }
.page-backdrop__circle--c { width: 44vmax; height: 44vmax; left: 30vw; bottom: -20vmax; background: var(--pb-c); }
.page-backdrop__circle--d { width: 30vmax; height: 30vmax; left: 12vw; top: 46vh; background: var(--pb-d); }
.page-backdrop__circle--e { width: 24vmax; height: 24vmax; right: 18vw; bottom: 6vh; background: var(--pb-e); }
/* Tones, one per section in turn: the same shades, moved around. */
.page-backdrop[data-tone="1"] { --pb-a: #dfebd6; --pb-b: #c2ffd6; --pb-c: #c2f6ff; --pb-d: #dfebd6; --pb-e: #c2fbff; --pb-shift: 4vw; }
.page-backdrop[data-tone="2"] { --pb-a: #c2ffd6; --pb-b: #c2fbff; --pb-c: #dfebd6; --pb-d: #c2f6ff; --pb-e: #c2ffd6; --pb-shift: -3vw; }
.page-backdrop[data-tone="3"] { --pb-a: #c2fbff; --pb-b: #c2f6ff; --pb-c: #c2ffd6; --pb-d: #dfebd6; --pb-e: #c2f6ff; --pb-shift: 2vw; }
/* Dark mode: the dark shades, the same turns. Two blocks as in
index.css: the toggle's choice, or the system's when there is none. */
:root[data-theme="dark"] .page-backdrop { --pb-opacity: 0.5; --pb-a: #004552; --pb-b: #27371b; --pb-c: #004c52; --pb-d: #00521b; --pb-e: #27371b; }
:root[data-theme="dark"] .page-backdrop[data-tone="1"] { --pb-a: #27371b; --pb-b: #004c52; --pb-c: #004552; --pb-d: #27371b; --pb-e: #00521b; }
:root[data-theme="dark"] .page-backdrop[data-tone="2"] { --pb-a: #004c52; --pb-b: #00521b; --pb-c: #27371b; --pb-d: #004552; --pb-e: #004c52; }
:root[data-theme="dark"] .page-backdrop[data-tone="3"] { --pb-a: #00521b; --pb-b: #004552; --pb-c: #004c52; --pb-d: #27371b; --pb-e: #004552; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .page-backdrop { --pb-opacity: 0.5; --pb-a: #004552; --pb-b: #27371b; --pb-c: #004c52; --pb-d: #00521b; --pb-e: #27371b; }
:root:not([data-theme="light"]) .page-backdrop[data-tone="1"] { --pb-a: #27371b; --pb-b: #004c52; --pb-c: #004552; --pb-d: #27371b; --pb-e: #00521b; }
:root:not([data-theme="light"]) .page-backdrop[data-tone="2"] { --pb-a: #004c52; --pb-b: #00521b; --pb-c: #27371b; --pb-d: #004552; --pb-e: #004c52; }
:root:not([data-theme="light"]) .page-backdrop[data-tone="3"] { --pb-a: #00521b; --pb-b: #004552; --pb-c: #004c52; --pb-d: #27371b; --pb-e: #004552; }
}
@media print {
.page-backdrop { display: none; }
}

View file

@ -0,0 +1,83 @@
/* ═══════════════════════════════════════════════════════════════
PAGE BACKDROP
One background behind every public page: large flat circles in
the palette's light shades (its dark ones in dark mode), fixed to
the window and overlapping. Sections paint nothing of their own,
so it runs behind all of them; cards keep their solid surface.
As the visitor moves through a page the circles change tone: the
section crossing the middle of the window picks one of TONES (its
place on the page, in turn), and the circles ease to that tone's
colors and a slightly shifted position. Watched with an
IntersectionObserver, so nothing runs while the page sits still;
the colors are in PageBackdrop.css. Under reduced motion the
change is instant (index.css stops every transition).
Every text color passes 4.5:1 on every shade used here, overlaps
included, in both modes: the light shades are the palette's
palest, and the dark ones sit at partial opacity.
═══════════════════════════════════════════════════════════════ */
import { useEffect, useRef } from 'react'
import { useLocation } from 'react-router-dom'
import './PageBackdrop.css'
/** How many tones PageBackdrop.css defines (data-tone 0 to 3). */
const TONES = 4
const CIRCLES = ['a', 'b', 'c', 'd', 'e']
export default function PageBackdrop() {
const ref = useRef<HTMLDivElement>(null)
const { pathname } = useLocation()
useEffect(() => {
const main = document.getElementById('main')
const backdrop = ref.current
if (!main || !backdrop) return undefined
backdrop.dataset.tone = '0'
let watched: Element[] = []
// The band crossing the window's middle line sets the tone.
const observer = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue
const index = watched.indexOf(entry.target)
if (index >= 0) backdrop.dataset.tone = String(index % TONES)
}
},
{ rootMargin: '-50% 0px -50% 0px', threshold: 0 },
)
// Pages draw their sections as their data arrives, so the list
// is gathered again whenever main's content changes.
const collect = () => {
observer.disconnect()
watched = Array.from(main.querySelectorAll('section'))
watched.forEach((section) => observer.observe(section))
}
collect()
let frame = 0
const mutations = new MutationObserver(() => {
cancelAnimationFrame(frame)
frame = requestAnimationFrame(collect)
})
mutations.observe(main, { childList: true, subtree: true })
return () => {
cancelAnimationFrame(frame)
mutations.disconnect()
observer.disconnect()
}
}, [pathname])
return (
<div ref={ref} className="page-backdrop" aria-hidden="true">
{CIRCLES.map((name) => (
<span key={name} className={`page-backdrop__circle page-backdrop__circle--${name}`} />
))}
</div>
)
}

View file

@ -1,8 +1,9 @@
/* ═══════════════════════════════════════════════════════════════
PAGE SHELL
Just the chrome that makes pages look alike: a page header, then
sections with a thin accent banner between them, alternating
backgrounds, and a left-aligned heading with a blurb and rule.
sections with a thin accent banner between them and a left-aligned
heading with a blurb and rule. Sections paint no background of
their own: the page's (PageBackdrop.tsx) runs behind all of them.
Whatever goes inside a section is passed as `content`, the shell
doesn't care what it is.
@ -21,7 +22,6 @@
title: "Local Groups",
blurb: "Optional line under the section heading.",
accent: BRAND, // heading, banner, rule
background: "var(--color-tint)",
actions: <SomeButton />, // optional, right of the heading
content: <YourStuff />,
},
@ -40,7 +40,6 @@ export type ShellSection = {
title: string;
blurb?: string;
accent: string;
background: string;
actions?: ReactNode;
content: ReactNode;
};
@ -57,7 +56,6 @@ export function Section({ section }: { section: ShellSection }) {
title,
blurb,
accent,
background,
// Optional action bar for this section's heading row, a view
// toggle, a filter, a link. Whatever the section needs; the
// shell just gives it a place to sit.
@ -71,7 +69,7 @@ export function Section({ section }: { section: ShellSection }) {
className="py-20"
// Clear of the fixed header, whatever it holds today (Layout
// sets --header-h from its measured height).
style={{ background, scrollMarginTop: "calc(var(--header-h, 5rem) + 1rem)" }}
style={{ scrollMarginTop: "calc(var(--header-h, 5rem) + 1rem)" }}
>
{/* Heading, left aligned, optional actions on the right */}
<div className="max-w-6xl mx-auto px-6 mb-10">
@ -102,7 +100,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
return (
<>
{/* Page header */}
<div className="pt-24 pb-12 px-6" style={{ background: "var(--color-tint)" }}>
<div className="pt-24 pb-12 px-6">
<div className="max-w-6xl mx-auto">
<h1 className="text-5xl md:text-6xl font-bold" style={{ color: accentText(BRAND) }}>
{title}

View file

@ -91,7 +91,7 @@ export default function PageState({
return (
<PageShell
title={title}
sections={[{ id: 'status', title: '', accent: BRAND, background: 'var(--color-surface)', content }]}
sections={[{ id: 'status', title: '', accent: BRAND, content }]}
/>
)
}

View file

@ -61,7 +61,6 @@ export default function AwardDetail() {
? 'Nobody has received this yet.'
: undefined,
accent,
background: 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-8">
<div className="flex flex-wrap items-center gap-x-6 gap-y-3 text-sm">

View file

@ -85,7 +85,6 @@ export default function BlogPost() {
id: "post",
title: "Post",
accent: BRAND,
background: "var(--color-surface)",
content: (
<div
className={
@ -175,7 +174,6 @@ export default function BlogPost() {
id: "authors",
title: authors.length === 1 ? "About the author" : "About the authors",
accent: BRAND,
background: "var(--color-tint)",
content: (
<div className="mx-auto max-w-6xl px-6">
<PeopleTiles size="md" accent={BRAND} people={authors} />

View file

@ -32,7 +32,6 @@ const SECTIONS = [
blurb:
"Young adult groups meeting in person and online across the movement.",
accent: BRAND,
background: "var(--color-tint)",
Component: OrgListMap,
request: { type: "group", label: "Add or update a group" },
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
@ -43,7 +42,6 @@ const SECTIONS = [
blurb:
"The regional organizations that support groups and host their own gatherings.",
accent: "#004c52",
background: "var(--color-surface)",
Component: OrgListVertical,
request: { type: "region", label: "Update a region" },
props: {
@ -62,7 +60,6 @@ const SECTIONS = [
blurb:
"Organizations we collaborate with across the Unity movement and beyond.",
accent: ACCENTS.olive,
background: "var(--color-tint)",
Component: OrgListCards,
request: { type: "partner", label: "Add or update a partner" },
props: {
@ -82,7 +79,6 @@ export default function CommunityPage() {
title: blog?.title || BLOG_DEFAULT_TITLE,
blurb: blog?.blurb ?? undefined,
accent: BRAND,
background: "var(--color-surface)",
Component: CommunityBlog,
request: { type: "blog", label: "Write for the blog" },
},

View file

@ -94,7 +94,6 @@ export default function EventDetail() {
title: event.theme || 'About',
blurb: event.theme ? event.tagline ?? undefined : undefined,
accent,
background: 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-8">
<Facts event={event} accent={accent} />
@ -145,7 +144,6 @@ export default function EventDetail() {
title: 'Upcoming dates',
blurb: seriesLabel(event.series, event.starts_on) ?? undefined,
accent,
background: 'var(--color-tint)',
content: (
<div className="max-w-6xl mx-auto px-6">
<ul className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
@ -176,7 +174,6 @@ export default function EventDetail() {
id: 'people',
title: 'Who’s there',
accent,
background: 'var(--color-tint)',
content: (
<div className="max-w-6xl mx-auto px-6">
<PeopleTiles size="lg" groups={groups} accent={accent} />
@ -191,7 +188,6 @@ export default function EventDetail() {
title: 'Presented here',
blurb: 'Awards given at this gathering.',
accent,
background: 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-6">
{event.awards.map((entry, index) => (

View file

@ -26,7 +26,6 @@ const SECTIONS = [
blurb:
"Found a broken link, spotted something out of date, or want the site to do something it doesn't? This form goes straight to the people who maintain it.",
accent: BRAND,
background: "var(--color-tint)",
content: (
// Narrower than the usual max-w-6xl: full-width form fields
// are unpleasant to fill in.

View file

@ -78,7 +78,6 @@ export default function GivingPage() {
blurb:
"Your giving funds scholarships, retreats, leadership development and the continued growth of the Next Generation of Unity leaders, teachers and community members.",
accent: BRAND,
background: "var(--color-tint)",
content: <GivingPanel />,
},
];

View file

@ -79,7 +79,6 @@ export default function History() {
blurb:
"Open a year to see what happened.",
accent: BRAND,
background: BACKGROUND,
content,
},
]}

View file

@ -13,7 +13,6 @@ const SECTIONS = [
title: "Board & Staff",
blurb: "The people guiding Next Generation of Unity day to day.",
accent: BRAND,
background: "var(--color-tint)",
content: (
<div className="max-w-6xl mx-auto px-6">
<PeopleTiles size="lg" teams={{ id: "ngu-board",}} />
@ -25,7 +24,6 @@ const SECTIONS = [
title: "Retreat Team",
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
accent: ACCENTS.green,
background: "var(--color-surface)",
content: (
<div className="max-w-6xl mx-auto px-6">
<PeopleTiles size="lg" teams="ngu-retreat-team" />
@ -37,7 +35,6 @@ const SECTIONS = [
title: "Committees & Volunteers",
blurb: "Additional roles and contributors.",
accent: ACCENTS.olive,
background: "var(--color-tint)",
content: <ComingSoon what="this list of committees and volunteers" />,
},
{
@ -45,7 +42,6 @@ const SECTIONS = [
title: "Contact Us",
blurb: "Reach out to our staff",
accent: ACCENTS.deep,
background: "var(--color-surface)",
content: (
<div className="max-w-6xl mx-auto px-6">
<a

View file

@ -80,7 +80,6 @@ export default function OrganizationDetail() {
id: 'about',
title: 'About',
accent,
background: 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-8">
<Facts org={org} accent={accent} back={back} />
@ -108,7 +107,6 @@ export default function OrganizationDetail() {
id: 'leadership',
title: 'Who runs it',
accent,
background: 'var(--color-tint)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-12">
{teamBlocks.map((block) => (
@ -170,7 +168,6 @@ export default function OrganizationDetail() {
title: 'Groups',
blurb: org.details.map_note ?? undefined,
accent,
background: 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{(org.details.groups ?? []).map((group) => (
@ -204,7 +201,6 @@ export default function OrganizationDetail() {
title: 'Awards',
blurb: `Given by ${org.short_name || org.name}.`,
accent,
background: 'var(--color-tint)',
content: (
<div className="max-w-6xl mx-auto px-6 grid gap-4 sm:grid-cols-2">
{org.awards.map((award) => (
@ -248,7 +244,6 @@ export default function OrganizationDetail() {
id: 'events',
title: 'Gatherings',
accent,
background: 'var(--color-surface)',
content: (
<EventListCards
host={org.id}

View file

@ -38,7 +38,6 @@ import { capitalize } from '../lib/text.ts'
import { accentText, BRAND } from '../lib/color.ts'
const BODY = 'var(--color-muted)'
const BACKGROUNDS = ['var(--color-surface)', 'var(--color-tint)']
/* affiliations.role, for a row with no title of its own. */
const ROLE_LABEL: Record<string, string> = {
@ -77,7 +76,6 @@ export default function PersonDetail() {
id: 'about',
title: 'About',
accent,
background: BACKGROUNDS[0],
content: (
<div className="max-w-6xl mx-auto px-6 space-y-8">
<Facts person={person} accent={accent} />
@ -103,7 +101,6 @@ export default function PersonDetail() {
id: 'roles',
title: 'Roles',
accent,
background: BACKGROUNDS[sections.length % 2],
content: (
<div className="max-w-6xl mx-auto px-6 space-y-8">
{current.length > 0 && <RoleList roles={current} accent={accent} />}
@ -128,7 +125,6 @@ export default function PersonDetail() {
id: 'events',
title: 'Events',
accent,
background: BACKGROUNDS[sections.length % 2],
content: (
<div className="max-w-6xl mx-auto px-6">
<ul className="space-y-5">
@ -148,7 +144,6 @@ export default function PersonDetail() {
id: 'awards',
title: 'Awards',
accent,
background: BACKGROUNDS[sections.length % 2],
content: (
<div className="max-w-6xl mx-auto px-6 space-y-6">
{person.awards.map((entry, index) => (
@ -196,7 +191,6 @@ export default function PersonDetail() {
id: 'posts',
title: 'Blog posts',
accent,
background: BACKGROUNDS[sections.length % 2],
content: (
<div className="max-w-6xl mx-auto px-6">
<ul className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">

View file

@ -173,7 +173,6 @@ const SECTIONS = [
title: "Privacy Policy",
blurb: `Last updated: ${LAST_UPDATED}`,
accent: BRAND,
background: "var(--color-surface)",
content: <LegalText parts={PARTS} />,
},
{
@ -181,7 +180,6 @@ const SECTIONS = [
title: "Data requests",
blurb: "Ask to see, correct or delete the information we hold about you.",
accent: BRAND,
background: "var(--color-tint)",
content: (
<div className="mx-auto max-w-3xl px-6">
<FeedbackForm fixedType={DATA_REQUEST.id} />

View file

@ -22,7 +22,6 @@ const SECTIONS = [
blurb:
'Pick a page from the main navigation, any event, organization, team, award, person or blog post, or type any link. Site pages always point at the live site. Choose what sits in the center and the colors; a warning shows if the code might not scan.',
accent: BRAND,
background: 'var(--color-tint)',
content: (
<div className="mx-auto max-w-6xl px-6">
<QrCodeMaker />

View file

@ -19,7 +19,6 @@ const SECTIONS = [
blurb:
"Tell us what you'd like on the site, or what should change. Attach a Word document with the details and we'll take it from there.",
accent: BRAND,
background: "var(--color-tint)",
content: (
<div className="mx-auto max-w-3xl px-6">
<RequestForm />

View file

@ -12,7 +12,6 @@ const SECTIONS = [
title: "Unity Teachings",
blurb: "Core principles, readings, and study material from the Unity movement.",
accent: BRAND,
background: "var(--color-tint)",
content: <ComingSoon what="our Unity teachings" />,
},
{
@ -20,7 +19,6 @@ const SECTIONS = [
title: "Branding & Marketing",
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
accent: ACCENTS.green,
background: "var(--color-surface)",
content: <ComingSoon what="our branding and marketing kit" />,
},
{
@ -28,7 +26,6 @@ const SECTIONS = [
title: "Partner Resources",
blurb: "Material for the organizations we collaborate with.",
accent: ACCENTS.olive,
background: "var(--color-tint)",
content: <ComingSoon what="resources for partners" />,
},
];

View file

@ -48,7 +48,6 @@ const SECTIONS = [
title: "National Retreats",
blurb: "Our flagship gatherings, open to young adults across the country.",
accent: BRAND,
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "national", ...RETREATS },
views: { ...CARD_VIEWS, default: "carousel" },
@ -59,7 +58,6 @@ const SECTIONS = [
title: "Regional Retreats",
blurb: "Smaller gatherings hosted by regions throughout the year.",
accent: ACCENTS.green,
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "regional", ...RETREATS },
views: { ...CARD_VIEWS, default: "grid" },
@ -69,7 +67,6 @@ const SECTIONS = [
title: "Partner Events",
blurb: "Retreats hosted by organizations we collaborate with.",
accent: ACCENTS.olive,
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "partner", ...RETREATS },
views: { ...CARD_VIEWS, default: "grid" },
@ -84,7 +81,6 @@ const SECTIONS = [
title: "Local Events",
blurb: "Hosted by individual groups.",
accent: ACCENTS.green,
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "local", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },
@ -94,7 +90,6 @@ const SECTIONS = [
title: "International Events",
blurb: "Gatherings beyond the US.",
accent: ACCENTS.deep,
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "international", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },
@ -104,7 +99,6 @@ const SECTIONS = [
title: "Other Events",
blurb: "Everything that doesn't fit the categories above.",
accent: ACCENTS.olive,
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "other", ...RETREATS_ONLY },
views: { ...CARD_VIEWS, default: "grid" },

View file

@ -53,7 +53,6 @@ export default function TeamDetail() {
id: 'about',
title: 'About',
accent,
background: 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-8">
<Facts orgId={team.org.id} orgKind={team.org.kind} orgName={team.org.name} accent={accent} />
@ -94,7 +93,6 @@ export default function TeamDetail() {
id: 'members',
title: hasAbout ? 'Members' : team.name,
accent,
background: hasAbout ? 'var(--color-tint)' : 'var(--color-surface)',
content: (
<div className="max-w-6xl mx-auto px-6 space-y-6">
{!hasAbout && (

View file

@ -84,7 +84,6 @@ const SECTIONS = [
title: "Terms of Service",
blurb: `Last updated: ${LAST_UPDATED}`,
accent: BRAND,
background: "var(--color-surface)",
content: <LegalText parts={PARTS} />,
},
];

View file

@ -15,7 +15,7 @@ type CalendarBandProps = { id: string; title: string; blurb?: string | null }
export default function CalendarBand({ id, title, blurb }: CalendarBandProps) {
return (
<section id={id} className="py-24" style={{ background: 'var(--color-tint-soft)' }}>
<section id={id} className="py-24">
<div className="mx-auto mb-10 flex max-w-6xl flex-wrap items-end justify-between gap-4 px-6">
<div>
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">

View file

@ -19,7 +19,7 @@ type FeaturedBandProps = {
export default function FeaturedBand({ id, title, blurb, cards }: FeaturedBandProps) {
return (
<section id={id} className="py-24" style={{ background: 'var(--color-tint-soft)' }}>
<section id={id} className="py-24">
<div className="mx-auto max-w-6xl px-6">
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">{title}</h2>
{blurb && <p className="mt-4 max-w-2xl text-lg text-muted">{blurb}</p>}

View file

@ -76,7 +76,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
}
return (
<section id={id} className="overflow-hidden py-24" style={{ background: 'var(--color-tint-soft)' }}>
<section id={id} className="overflow-hidden py-24">
<div className="mx-auto flex max-w-6xl flex-wrap items-end gap-6 px-6">
<div>
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">

View file

@ -6,8 +6,7 @@
Backdrop, what fills the background:
brand drifting color and slow concentric rings (many
circles, one center) with the dove at that center
brand a flat palette color with the dove, nothing moving
photos the hero photos, crossfading with a slow zoom, a
progress bar per photo and a pause button (anything
that moves on its own for more than five seconds
@ -121,7 +120,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
<div className="text-white">
{live ? (
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<span className="hp-live-dot h-2.5 w-2.5 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
<span className="h-2.5 w-2.5 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
Live now
{hero.livestream?.title && (
<span className="normal-case tracking-normal text-white/75">
@ -175,90 +174,97 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
)}
{(hero.primary || hero.secondary) && (
<div
className="hp-rise mt-10 flex flex-wrap gap-4"
style={{ animationDelay: '300ms' }}
>
{hero.primary && (
<HomeLink
url={hero.primary.url}
className="btn px-8 py-4 text-lg text-[#001011] shadow-xl transition-transform duration-300 hover:-translate-y-0.5 hover:scale-[1.03]"
style={{ background: '#c2ffd6' }}
>
{hero.primary.label}
</HomeLink>
)}
{hero.secondary && (
<HomeLink
url={hero.secondary.url}
className="btn border border-white/35 px-8 py-4 text-lg text-white transition-colors duration-300 hover:bg-white/10"
>
{hero.secondary.label} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</HomeLink>
)}
<div className="hp-rise mt-10" style={{ animationDelay: '300ms' }}>
<HeroActions primary={hero.primary} secondary={hero.secondary} />
</div>
)}
</div>
)
}
/* ── The hero's buttons ──────────────────────────────────────────
Both set: one cell in two halves, the primary filled on the left
and the secondary clear on the right, split by a slash (the
filled half's slanted edge, which the clear half tucks under).
One set: that one alone, in its own style. */
const SLANT = '1.75rem'
const PRIMARY_FILL = '#c2ffd6'
const PRIMARY_TEXT = '#001011'
const HALF = 'relative flex items-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]'
type HeroLink = Hero['primary']
function HeroActions({ primary, secondary }: { primary: HeroLink; secondary: HeroLink }) {
const arrow = <ArrowRight size="1em" weight="bold" className="inline" aria-hidden="true" />
if (primary && secondary) {
return (
<div className="btn inline-flex max-w-full overflow-hidden border border-white/35">
<HomeLink
url={primary.url}
className={`${HALF} z-10 hover:brightness-95`}
style={{
background: PRIMARY_FILL,
color: PRIMARY_TEXT,
paddingRight: `calc(2rem + ${SLANT})`,
clipPath: `polygon(0 0, 100% 0, calc(100% - ${SLANT}) 100%, 0 100%)`,
}}
>
{primary.label}
</HomeLink>
<HomeLink
url={secondary.url}
className={`${HALF} text-white hover:bg-white/10`}
style={{ marginLeft: `-${SLANT}`, paddingLeft: `calc(2rem + ${SLANT})` }}
>
{secondary.label} {arrow}
</HomeLink>
</div>
)
}
if (primary) {
return (
<HomeLink
url={primary.url}
className="btn inline-flex px-8 py-4 text-lg transition-transform duration-200 hover:-translate-y-0.5"
style={{ background: PRIMARY_FILL, color: PRIMARY_TEXT }}
>
{primary.label}
</HomeLink>
)
}
return (
<HomeLink
url={secondary!.url}
className="btn inline-flex items-center gap-2 border border-white/35 px-8 py-4 text-lg text-white transition-colors duration-200 hover:bg-white/10"
>
{secondary!.label} {arrow}
</HomeLink>
)
}
/* ── Brand backdrop ──────────────────────────────────────────── */
const BRAND_FILL = '#004552'
function BrandBackdrop() {
return (
<div className="absolute inset-0 -z-10" aria-hidden="true">
<div className="hp-aurora hp-aurora--a" style={blob('#008fa8', '48vw', '-10%', '-10%')} />
<div className="hp-aurora hp-aurora--b" style={blob('#c2ffd6', '38vw', '45%', '20%')} />
<div className="hp-aurora hp-aurora--c" style={blob('#aac992', '30vw', '70%', '-5%')} />
<div className="absolute inset-0 -z-10" style={{ background: BRAND_FILL }} aria-hidden="true">
<svg
className="absolute -right-[20vw] top-1/2 h-[120vw] w-[120vw] -translate-y-1/2 md:-right-[10vw] md:h-[80vw] md:w-[80vw]"
viewBox="0 0 400 400"
>
<defs>
<radialGradient id="hp-dove-glow">
<stop offset="0%" stopColor="#c2ffd6" stopOpacity="0.35" />
<stop offset="100%" stopColor="#c2ffd6" stopOpacity="0" />
</radialGradient>
</defs>
{/* The rings are faint; the dove at their center is not, so
the opacity sits on the rings rather than the whole SVG. */}
<g opacity="0.16">
<g className="hp-rings" fill="none" stroke="#ffffff">
{[40, 70, 100, 130, 160, 190].map((r, i) => (
<circle key={r} cx="200" cy="200" r={r} strokeWidth={i % 2 ? 0.6 : 1.2} strokeDasharray={i % 2 ? '2 6' : undefined} />
))}
<circle cx="390" cy="200" r="4" fill="#c2ffd6" stroke="none" />
<circle cx="200" cy="40" r="3" fill="#5ce7ff" stroke="none" />
</g>
<g className="hp-rings hp-rings--reverse" fill="none" stroke="#c2ffd6">
<circle cx="200" cy="200" r="115" strokeWidth="0.8" strokeDasharray="1 10" />
<circle cx="85" cy="200" r="3.5" fill="#ffffff" stroke="none" />
</g>
</g>
{/* Outside the rotating groups, so it stays upright while the
rings turn around it. 64 × 42.7 at the center fits inside
the innermost ring (r 40) with room to float. */}
<circle cx="200" cy="200" r="46" fill="url(#hp-dove-glow)" />
<g className="hp-dove" style={{ color: '#ffffff' }} opacity="0.9">
<DoveMark x="168" y="178.65" width="64" height="42.7" />
<g style={{ color: '#ffffff' }} opacity="0.14">
<DoveMark x="120" y="148" width="160" height="106.75" />
</g>
</svg>
<div
className="absolute inset-x-0 bottom-0 h-40"
style={{ background: `linear-gradient(to bottom, transparent, ${DEEP})` }}
/>
</div>
)
}
function blob(color: string, size: string, left: string, top: string): CSSProperties {
return { background: color, width: size, height: size, left, top }
}
/* ── Photo backdrop ──────────────────────────────────────────── */
function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: number }) {
@ -298,7 +304,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
className="absolute inset-0"
style={{
background:
'linear-gradient(100deg, rgba(4,38,46,0.92) 0%, rgba(4,38,46,0.65) 45%, rgba(4,38,46,0.15) 100%)',
'linear-gradient(100deg, rgba(0,16,17,0.92) 0%, rgba(0,16,17,0.65) 45%, rgba(0,16,17,0.15) 100%)',
}}
/>
</div>
@ -362,7 +368,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
return (
<div
className="relative overflow-hidden border border-white/15 bg-black shadow-2xl"
style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
style={{ boxShadow: '0 24px 48px -24px rgba(0, 16, 17, 0.6)' }}
>
<div className="aspect-video w-full">
{src && watching ? (
@ -375,7 +381,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
/>
) : src ? (
<div className="flex h-full w-full flex-col items-center justify-center gap-4 text-white">
<span className="hp-live-dot h-4 w-4 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
<span className="h-4 w-4 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
<button
type="button"
onClick={() => setWatching(true)}
@ -386,7 +392,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
</div>
) : (
<div className="flex h-full w-full flex-col items-center justify-center gap-4 text-white">
<span className="hp-live-dot h-4 w-4 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
<span className="h-4 w-4 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
<HomeLink
url={url}
className="btn bg-white px-6 py-3 text-[#001011] hover:scale-105"
@ -419,7 +425,7 @@ function VideoFrame({
return (
<div
className="relative overflow-hidden border border-white/15 bg-black shadow-2xl"
style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
style={{ boxShadow: '0 24px 48px -24px rgba(0, 16, 17, 0.6)' }}
>
<div className="aspect-video w-full">
{source?.kind === 'file' ? (
@ -463,7 +469,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
return (
<div
className="overflow-hidden border border-white/15 bg-white/10 text-white shadow-2xl backdrop-blur"
style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
style={{ boxShadow: '0 24px 48px -24px rgba(0, 16, 17, 0.6)' }}
>
{photo ? (
<img src={photo} alt="" className="aspect-[16/7] w-full object-cover" />

View file

@ -82,11 +82,11 @@ export default function NextEventCountdown({
return (
<section
aria-label="Next event"
className={`relative z-20 px-6 ${overlap ? '-mt-12' : 'py-12'}`}
className={`relative z-20 px-6 ${overlap ? '-mt-14 -mb-14' : 'py-12'}`}
>
<Link
to={eventHref(event.id)}
className="group mx-auto flex max-w-6xl flex-col gap-6 border bg-surface/95 p-6 shadow-2xl backdrop-blur transition-transform duration-300 hover:-translate-y-1 md:flex-row md:items-center md:p-8"
className="group mx-auto flex max-w-6xl flex-col gap-6 border bg-surface p-6 shadow-2xl transition-transform duration-300 hover:-translate-y-1 md:flex-row md:items-center md:p-8"
style={{ borderColor: `${withAlpha(accent, 33)}` }}
>
<div className="min-w-0 flex-1">

View file

@ -91,7 +91,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
}
return (
<section id={id} className="py-24" style={{ background: 'var(--color-surface)' }}>
<section id={id} className="py-24">
<div className="mx-auto max-w-6xl px-6">
<div className="grid gap-12 lg:grid-cols-12">
<div className="lg:col-span-5">

View file

@ -18,7 +18,7 @@ type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
return (
<section id={id} className="overflow-hidden py-24" style={{ background: 'var(--color-tint)' }}>
<section id={id} className="overflow-hidden py-24">
<div className="mx-auto mb-12 flex max-w-6xl flex-wrap items-end gap-6 px-6">
<div>
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">

View file

@ -49,12 +49,6 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
className="relative overflow-hidden py-24"
style={{ background: '#004552' }}
>
<div
className="pointer-events-none absolute -left-40 -top-40 h-[32rem] w-[32rem] rounded-full opacity-25 blur-3xl"
style={{ background: '#c2ffd6' }}
aria-hidden="true"
/>
<div className="relative mx-auto max-w-6xl px-6">
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
{title}

View file

@ -6,56 +6,6 @@
prefers-reduced-motion; the page still reads the same without it.
═══════════════════════════════════════════════════════════════ */
/* ── Hero: brand mode aurora ─────────────────────────────────── */
.hp-aurora {
position: absolute;
border-radius: 9999px;
filter: blur(80px);
opacity: 0.55;
will-change: transform;
}
.hp-aurora--a { animation: hp-drift-a 22s ease-in-out infinite alternate; }
.hp-aurora--b { animation: hp-drift-b 28s ease-in-out infinite alternate; }
.hp-aurora--c { animation: hp-drift-c 34s ease-in-out infinite alternate; }
@keyframes hp-drift-a {
from { transform: translate(-10%, -5%) scale(1); }
to { transform: translate(15%, 10%) scale(1.25); }
}
@keyframes hp-drift-b {
from { transform: translate(10%, 5%) scale(1.1); }
to { transform: translate(-20%, -10%) scale(0.9); }
}
@keyframes hp-drift-c {
from { transform: translate(0, 10%) scale(0.9); }
to { transform: translate(-10%, -15%) scale(1.2); }
}
/* Concentric rings: many circles, one center. */
.hp-rings {
animation: hp-spin 90s linear infinite;
transform-origin: 50% 50%;
}
.hp-rings--reverse { animation-direction: reverse; animation-duration: 140s; }
@keyframes hp-spin {
to { transform: rotate(360deg); }
}
/* The dove at the rings' center bobs gently rather than turning. */
.hp-dove {
animation: hp-bob 6s ease-in-out infinite;
transform-box: fill-box;
transform-origin: center;
}
@keyframes hp-bob {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-4px); }
}
/* ── Hero: headline words rise in ────────────────────────────── */
.hp-rise {
@ -103,17 +53,6 @@
to { transform: scaleX(1); }
}
/* ── Hero: LIVE ──────────────────────────────────────────────── */
.hp-live-dot {
box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
animation: hp-pulse 1.6s ease-out infinite;
}
@keyframes hp-pulse {
to { box-shadow: 0 0 0 12px rgba(255, 77, 77, 0); }
}
/* ── Timeline rail ───────────────────────────────────────────── */
.hp-rail {
@ -147,11 +86,7 @@
.hp-stat--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
.hp-aurora,
.hp-rings,
.hp-dove,
.hp-slide--on img,
.hp-live-dot {
.hp-slide--on img {
animation: none;
}
.hp-rise,