One palette backdrop behind every page; flat hero, split hero buttons
PageBackdrop draws flat, overlapping palette circles behind the public site and eases them to a new tone as each section reaches the middle of the window, so sections no longer paint their own bands (PageShell's background field is gone). The hero's brand backdrop is a flat teal with the dove, its two buttons one cell cut by a slash, and the countdown straddles the hero and the band below. No glows: the drifting blobs, rings, live-dot pulse and the stats band's blurred circle are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3dfc31fd85
commit
6fc19d7ee3
36 changed files with 255 additions and 219 deletions
|
|
@ -6,6 +6,7 @@ import Banner from "./Banner.tsx";
|
||||||
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
||||||
import Footer from "./Footer.tsx";
|
import Footer from "./Footer.tsx";
|
||||||
import PrivacyNotice from "./PrivacyNotice.tsx";
|
import PrivacyNotice from "./PrivacyNotice.tsx";
|
||||||
|
import PageBackdrop from "./PageBackdrop.tsx";
|
||||||
import ThemeToggle from "./ThemeToggle.tsx";
|
import ThemeToggle from "./ThemeToggle.tsx";
|
||||||
import { scrollBehavior } from "../lib/motion.ts";
|
import { scrollBehavior } from "../lib/motion.ts";
|
||||||
|
|
||||||
|
|
@ -239,8 +240,8 @@ export default function Layout() {
|
||||||
className="hidden md:flex items-center px-6 py-2"
|
className="hidden md:flex items-center px-6 py-2"
|
||||||
aria-label={`On this page: ${activePage?.label}`}
|
aria-label={`On this page: ${activePage?.label}`}
|
||||||
style={{
|
style={{
|
||||||
background: "rgba(0, 47, 57, 0.92)",
|
background: "rgba(0, 16, 17, 0.92)",
|
||||||
borderBottom: "1px solid rgba(45,200,224,0.15)",
|
borderBottom: "1px solid rgba(92, 231, 255, 0.15)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="text-xs text-white/65">{activePage?.label}</span>
|
<span className="text-xs text-white/65">{activePage?.label}</span>
|
||||||
|
|
@ -249,7 +250,7 @@ export default function Layout() {
|
||||||
<span
|
<span
|
||||||
aria-hidden
|
aria-hidden
|
||||||
className="mx-5 h-4 w-px"
|
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">
|
<div className="flex items-center gap-6">
|
||||||
|
|
@ -272,6 +273,8 @@ export default function Layout() {
|
||||||
)}
|
)}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<PageBackdrop />
|
||||||
|
|
||||||
{/* Keeps page content clear of the fixed header */}
|
{/* Keeps page content clear of the fixed header */}
|
||||||
<div aria-hidden className="print:hidden" style={{ height: headerHeight }} />
|
<div aria-hidden className="print:hidden" style={{ height: headerHeight }} />
|
||||||
|
|
||||||
|
|
@ -292,7 +295,7 @@ export default function Layout() {
|
||||||
{mobileMenuOpen && (
|
{mobileMenuOpen && (
|
||||||
<div
|
<div
|
||||||
className="fixed inset-0 z-[60] flex flex-col items-center justify-center overflow-y-auto py-16"
|
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"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
aria-label="Menu"
|
aria-label="Menu"
|
||||||
|
|
|
||||||
62
src/components/PageBackdrop.css
Normal file
62
src/components/PageBackdrop.css
Normal 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; }
|
||||||
|
}
|
||||||
83
src/components/PageBackdrop.tsx
Normal file
83
src/components/PageBackdrop.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
/* ═══════════════════════════════════════════════════════════════
|
/* ═══════════════════════════════════════════════════════════════
|
||||||
PAGE SHELL
|
PAGE SHELL
|
||||||
Just the chrome that makes pages look alike: a page header, then
|
Just the chrome that makes pages look alike: a page header, then
|
||||||
sections with a thin accent banner between them, alternating
|
sections with a thin accent banner between them and a left-aligned
|
||||||
backgrounds, and a left-aligned heading with a blurb and rule.
|
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
|
Whatever goes inside a section is passed as `content`, the shell
|
||||||
doesn't care what it is.
|
doesn't care what it is.
|
||||||
|
|
@ -21,7 +22,6 @@
|
||||||
title: "Local Groups",
|
title: "Local Groups",
|
||||||
blurb: "Optional line under the section heading.",
|
blurb: "Optional line under the section heading.",
|
||||||
accent: BRAND, // heading, banner, rule
|
accent: BRAND, // heading, banner, rule
|
||||||
background: "var(--color-tint)",
|
|
||||||
actions: <SomeButton />, // optional, right of the heading
|
actions: <SomeButton />, // optional, right of the heading
|
||||||
content: <YourStuff />,
|
content: <YourStuff />,
|
||||||
},
|
},
|
||||||
|
|
@ -40,7 +40,6 @@ export type ShellSection = {
|
||||||
title: string;
|
title: string;
|
||||||
blurb?: string;
|
blurb?: string;
|
||||||
accent: string;
|
accent: string;
|
||||||
background: string;
|
|
||||||
actions?: ReactNode;
|
actions?: ReactNode;
|
||||||
content: ReactNode;
|
content: ReactNode;
|
||||||
};
|
};
|
||||||
|
|
@ -57,7 +56,6 @@ export function Section({ section }: { section: ShellSection }) {
|
||||||
title,
|
title,
|
||||||
blurb,
|
blurb,
|
||||||
accent,
|
accent,
|
||||||
background,
|
|
||||||
// Optional action bar for this section's heading row, a view
|
// Optional action bar for this section's heading row, a view
|
||||||
// toggle, a filter, a link. Whatever the section needs; the
|
// toggle, a filter, a link. Whatever the section needs; the
|
||||||
// shell just gives it a place to sit.
|
// shell just gives it a place to sit.
|
||||||
|
|
@ -71,7 +69,7 @@ export function Section({ section }: { section: ShellSection }) {
|
||||||
className="py-20"
|
className="py-20"
|
||||||
// Clear of the fixed header, whatever it holds today (Layout
|
// Clear of the fixed header, whatever it holds today (Layout
|
||||||
// sets --header-h from its measured height).
|
// 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 */}
|
{/* Heading, left aligned, optional actions on the right */}
|
||||||
<div className="max-w-6xl mx-auto px-6 mb-10">
|
<div className="max-w-6xl mx-auto px-6 mb-10">
|
||||||
|
|
@ -102,7 +100,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Page header */}
|
{/* 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">
|
<div className="max-w-6xl mx-auto">
|
||||||
<h1 className="text-5xl md:text-6xl font-bold" style={{ color: accentText(BRAND) }}>
|
<h1 className="text-5xl md:text-6xl font-bold" style={{ color: accentText(BRAND) }}>
|
||||||
{title}
|
{title}
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ export default function PageState({
|
||||||
return (
|
return (
|
||||||
<PageShell
|
<PageShell
|
||||||
title={title}
|
title={title}
|
||||||
sections={[{ id: 'status', title: '', accent: BRAND, background: 'var(--color-surface)', content }]}
|
sections={[{ id: 'status', title: '', accent: BRAND, content }]}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ export default function AwardDetail() {
|
||||||
? 'Nobody has received this yet.'
|
? 'Nobody has received this yet.'
|
||||||
: undefined,
|
: undefined,
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
<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">
|
<div className="flex flex-wrap items-center gap-x-6 gap-y-3 text-sm">
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,6 @@ export default function BlogPost() {
|
||||||
id: "post",
|
id: "post",
|
||||||
title: "Post",
|
title: "Post",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-surface)",
|
|
||||||
content: (
|
content: (
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
|
|
@ -175,7 +174,6 @@ export default function BlogPost() {
|
||||||
id: "authors",
|
id: "authors",
|
||||||
title: authors.length === 1 ? "About the author" : "About the authors",
|
title: authors.length === 1 ? "About the author" : "About the authors",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: (
|
content: (
|
||||||
<div className="mx-auto max-w-6xl px-6">
|
<div className="mx-auto max-w-6xl px-6">
|
||||||
<PeopleTiles size="md" accent={BRAND} people={authors} />
|
<PeopleTiles size="md" accent={BRAND} people={authors} />
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ const SECTIONS = [
|
||||||
blurb:
|
blurb:
|
||||||
"Young adult groups meeting in person and online across the movement.",
|
"Young adult groups meeting in person and online across the movement.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
Component: OrgListMap,
|
Component: OrgListMap,
|
||||||
request: { type: "group", label: "Add or update a group" },
|
request: { type: "group", label: "Add or update a group" },
|
||||||
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
|
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
|
||||||
|
|
@ -43,7 +42,6 @@ const SECTIONS = [
|
||||||
blurb:
|
blurb:
|
||||||
"The regional organizations that support groups and host their own gatherings.",
|
"The regional organizations that support groups and host their own gatherings.",
|
||||||
accent: "#004c52",
|
accent: "#004c52",
|
||||||
background: "var(--color-surface)",
|
|
||||||
Component: OrgListVertical,
|
Component: OrgListVertical,
|
||||||
request: { type: "region", label: "Update a region" },
|
request: { type: "region", label: "Update a region" },
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -62,7 +60,6 @@ const SECTIONS = [
|
||||||
blurb:
|
blurb:
|
||||||
"Organizations we collaborate with across the Unity movement and beyond.",
|
"Organizations we collaborate with across the Unity movement and beyond.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.olive,
|
||||||
background: "var(--color-tint)",
|
|
||||||
Component: OrgListCards,
|
Component: OrgListCards,
|
||||||
request: { type: "partner", label: "Add or update a partner" },
|
request: { type: "partner", label: "Add or update a partner" },
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -82,7 +79,6 @@ export default function CommunityPage() {
|
||||||
title: blog?.title || BLOG_DEFAULT_TITLE,
|
title: blog?.title || BLOG_DEFAULT_TITLE,
|
||||||
blurb: blog?.blurb ?? undefined,
|
blurb: blog?.blurb ?? undefined,
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-surface)",
|
|
||||||
Component: CommunityBlog,
|
Component: CommunityBlog,
|
||||||
request: { type: "blog", label: "Write for the blog" },
|
request: { type: "blog", label: "Write for the blog" },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,6 @@ export default function EventDetail() {
|
||||||
title: event.theme || 'About',
|
title: event.theme || 'About',
|
||||||
blurb: event.theme ? event.tagline ?? undefined : undefined,
|
blurb: event.theme ? event.tagline ?? undefined : undefined,
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||||
<Facts event={event} accent={accent} />
|
<Facts event={event} accent={accent} />
|
||||||
|
|
@ -145,7 +144,6 @@ export default function EventDetail() {
|
||||||
title: 'Upcoming dates',
|
title: 'Upcoming dates',
|
||||||
blurb: seriesLabel(event.series, event.starts_on) ?? undefined,
|
blurb: seriesLabel(event.series, event.starts_on) ?? undefined,
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-tint)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<ul className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
|
<ul className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
|
|
@ -176,7 +174,6 @@ export default function EventDetail() {
|
||||||
id: 'people',
|
id: 'people',
|
||||||
title: 'Who’s there',
|
title: 'Who’s there',
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-tint)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<PeopleTiles size="lg" groups={groups} accent={accent} />
|
<PeopleTiles size="lg" groups={groups} accent={accent} />
|
||||||
|
|
@ -191,7 +188,6 @@ export default function EventDetail() {
|
||||||
title: 'Presented here',
|
title: 'Presented here',
|
||||||
blurb: 'Awards given at this gathering.',
|
blurb: 'Awards given at this gathering.',
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-6">
|
<div className="max-w-6xl mx-auto px-6 space-y-6">
|
||||||
{event.awards.map((entry, index) => (
|
{event.awards.map((entry, index) => (
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ const SECTIONS = [
|
||||||
blurb:
|
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.",
|
"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,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: (
|
content: (
|
||||||
// Narrower than the usual max-w-6xl: full-width form fields
|
// Narrower than the usual max-w-6xl: full-width form fields
|
||||||
// are unpleasant to fill in.
|
// are unpleasant to fill in.
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,6 @@ export default function GivingPage() {
|
||||||
blurb:
|
blurb:
|
||||||
"Your giving funds scholarships, retreats, leadership development and the continued growth of the Next Generation of Unity leaders, teachers and community members.",
|
"Your giving funds scholarships, retreats, leadership development and the continued growth of the Next Generation of Unity leaders, teachers and community members.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: <GivingPanel />,
|
content: <GivingPanel />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,6 @@ export default function History() {
|
||||||
blurb:
|
blurb:
|
||||||
"Open a year to see what happened.",
|
"Open a year to see what happened.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: BACKGROUND,
|
|
||||||
content,
|
content,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ const SECTIONS = [
|
||||||
title: "Board & Staff",
|
title: "Board & Staff",
|
||||||
blurb: "The people guiding Next Generation of Unity day to day.",
|
blurb: "The people guiding Next Generation of Unity day to day.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<PeopleTiles size="lg" teams={{ id: "ngu-board",}} />
|
<PeopleTiles size="lg" teams={{ id: "ngu-board",}} />
|
||||||
|
|
@ -25,7 +24,6 @@ const SECTIONS = [
|
||||||
title: "Retreat Team",
|
title: "Retreat Team",
|
||||||
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
||||||
accent: ACCENTS.green,
|
accent: ACCENTS.green,
|
||||||
background: "var(--color-surface)",
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<PeopleTiles size="lg" teams="ngu-retreat-team" />
|
<PeopleTiles size="lg" teams="ngu-retreat-team" />
|
||||||
|
|
@ -37,7 +35,6 @@ const SECTIONS = [
|
||||||
title: "Committees & Volunteers",
|
title: "Committees & Volunteers",
|
||||||
blurb: "Additional roles and contributors.",
|
blurb: "Additional roles and contributors.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.olive,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: <ComingSoon what="this list of committees and volunteers" />,
|
content: <ComingSoon what="this list of committees and volunteers" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -45,7 +42,6 @@ const SECTIONS = [
|
||||||
title: "Contact Us",
|
title: "Contact Us",
|
||||||
blurb: "Reach out to our staff",
|
blurb: "Reach out to our staff",
|
||||||
accent: ACCENTS.deep,
|
accent: ACCENTS.deep,
|
||||||
background: "var(--color-surface)",
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<a
|
<a
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ export default function OrganizationDetail() {
|
||||||
id: 'about',
|
id: 'about',
|
||||||
title: 'About',
|
title: 'About',
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||||
<Facts org={org} accent={accent} back={back} />
|
<Facts org={org} accent={accent} back={back} />
|
||||||
|
|
@ -108,7 +107,6 @@ export default function OrganizationDetail() {
|
||||||
id: 'leadership',
|
id: 'leadership',
|
||||||
title: 'Who runs it',
|
title: 'Who runs it',
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-tint)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-12">
|
<div className="max-w-6xl mx-auto px-6 space-y-12">
|
||||||
{teamBlocks.map((block) => (
|
{teamBlocks.map((block) => (
|
||||||
|
|
@ -170,7 +168,6 @@ export default function OrganizationDetail() {
|
||||||
title: 'Groups',
|
title: 'Groups',
|
||||||
blurb: org.details.map_note ?? undefined,
|
blurb: org.details.map_note ?? undefined,
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
<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) => (
|
{(org.details.groups ?? []).map((group) => (
|
||||||
|
|
@ -204,7 +201,6 @@ export default function OrganizationDetail() {
|
||||||
title: 'Awards',
|
title: 'Awards',
|
||||||
blurb: `Given by ${org.short_name || org.name}.`,
|
blurb: `Given by ${org.short_name || org.name}.`,
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-tint)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 grid gap-4 sm:grid-cols-2">
|
<div className="max-w-6xl mx-auto px-6 grid gap-4 sm:grid-cols-2">
|
||||||
{org.awards.map((award) => (
|
{org.awards.map((award) => (
|
||||||
|
|
@ -248,7 +244,6 @@ export default function OrganizationDetail() {
|
||||||
id: 'events',
|
id: 'events',
|
||||||
title: 'Gatherings',
|
title: 'Gatherings',
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<EventListCards
|
<EventListCards
|
||||||
host={org.id}
|
host={org.id}
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ import { capitalize } from '../lib/text.ts'
|
||||||
import { accentText, BRAND } from '../lib/color.ts'
|
import { accentText, BRAND } from '../lib/color.ts'
|
||||||
|
|
||||||
const BODY = 'var(--color-muted)'
|
const BODY = 'var(--color-muted)'
|
||||||
const BACKGROUNDS = ['var(--color-surface)', 'var(--color-tint)']
|
|
||||||
|
|
||||||
/* affiliations.role, for a row with no title of its own. */
|
/* affiliations.role, for a row with no title of its own. */
|
||||||
const ROLE_LABEL: Record<string, string> = {
|
const ROLE_LABEL: Record<string, string> = {
|
||||||
|
|
@ -77,7 +76,6 @@ export default function PersonDetail() {
|
||||||
id: 'about',
|
id: 'about',
|
||||||
title: 'About',
|
title: 'About',
|
||||||
accent,
|
accent,
|
||||||
background: BACKGROUNDS[0],
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||||
<Facts person={person} accent={accent} />
|
<Facts person={person} accent={accent} />
|
||||||
|
|
@ -103,7 +101,6 @@ export default function PersonDetail() {
|
||||||
id: 'roles',
|
id: 'roles',
|
||||||
title: 'Roles',
|
title: 'Roles',
|
||||||
accent,
|
accent,
|
||||||
background: BACKGROUNDS[sections.length % 2],
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||||
{current.length > 0 && <RoleList roles={current} accent={accent} />}
|
{current.length > 0 && <RoleList roles={current} accent={accent} />}
|
||||||
|
|
@ -128,7 +125,6 @@ export default function PersonDetail() {
|
||||||
id: 'events',
|
id: 'events',
|
||||||
title: 'Events',
|
title: 'Events',
|
||||||
accent,
|
accent,
|
||||||
background: BACKGROUNDS[sections.length % 2],
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<ul className="space-y-5">
|
<ul className="space-y-5">
|
||||||
|
|
@ -148,7 +144,6 @@ export default function PersonDetail() {
|
||||||
id: 'awards',
|
id: 'awards',
|
||||||
title: 'Awards',
|
title: 'Awards',
|
||||||
accent,
|
accent,
|
||||||
background: BACKGROUNDS[sections.length % 2],
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-6">
|
<div className="max-w-6xl mx-auto px-6 space-y-6">
|
||||||
{person.awards.map((entry, index) => (
|
{person.awards.map((entry, index) => (
|
||||||
|
|
@ -196,7 +191,6 @@ export default function PersonDetail() {
|
||||||
id: 'posts',
|
id: 'posts',
|
||||||
title: 'Blog posts',
|
title: 'Blog posts',
|
||||||
accent,
|
accent,
|
||||||
background: BACKGROUNDS[sections.length % 2],
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<ul className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
<ul className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,6 @@ const SECTIONS = [
|
||||||
title: "Privacy Policy",
|
title: "Privacy Policy",
|
||||||
blurb: `Last updated: ${LAST_UPDATED}`,
|
blurb: `Last updated: ${LAST_UPDATED}`,
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-surface)",
|
|
||||||
content: <LegalText parts={PARTS} />,
|
content: <LegalText parts={PARTS} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -181,7 +180,6 @@ const SECTIONS = [
|
||||||
title: "Data requests",
|
title: "Data requests",
|
||||||
blurb: "Ask to see, correct or delete the information we hold about you.",
|
blurb: "Ask to see, correct or delete the information we hold about you.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: (
|
content: (
|
||||||
<div className="mx-auto max-w-3xl px-6">
|
<div className="mx-auto max-w-3xl px-6">
|
||||||
<FeedbackForm fixedType={DATA_REQUEST.id} />
|
<FeedbackForm fixedType={DATA_REQUEST.id} />
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ const SECTIONS = [
|
||||||
blurb:
|
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.',
|
'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,
|
accent: BRAND,
|
||||||
background: 'var(--color-tint)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="mx-auto max-w-6xl px-6">
|
<div className="mx-auto max-w-6xl px-6">
|
||||||
<QrCodeMaker />
|
<QrCodeMaker />
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ const SECTIONS = [
|
||||||
blurb:
|
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.",
|
"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,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: (
|
content: (
|
||||||
<div className="mx-auto max-w-3xl px-6">
|
<div className="mx-auto max-w-3xl px-6">
|
||||||
<RequestForm />
|
<RequestForm />
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ const SECTIONS = [
|
||||||
title: "Unity Teachings",
|
title: "Unity Teachings",
|
||||||
blurb: "Core principles, readings, and study material from the Unity movement.",
|
blurb: "Core principles, readings, and study material from the Unity movement.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: <ComingSoon what="our Unity teachings" />,
|
content: <ComingSoon what="our Unity teachings" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -20,7 +19,6 @@ const SECTIONS = [
|
||||||
title: "Branding & Marketing",
|
title: "Branding & Marketing",
|
||||||
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
|
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
|
||||||
accent: ACCENTS.green,
|
accent: ACCENTS.green,
|
||||||
background: "var(--color-surface)",
|
|
||||||
content: <ComingSoon what="our branding and marketing kit" />,
|
content: <ComingSoon what="our branding and marketing kit" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -28,7 +26,6 @@ const SECTIONS = [
|
||||||
title: "Partner Resources",
|
title: "Partner Resources",
|
||||||
blurb: "Material for the organizations we collaborate with.",
|
blurb: "Material for the organizations we collaborate with.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.olive,
|
||||||
background: "var(--color-tint)",
|
|
||||||
content: <ComingSoon what="resources for partners" />,
|
content: <ComingSoon what="resources for partners" />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ const SECTIONS = [
|
||||||
title: "National Retreats",
|
title: "National Retreats",
|
||||||
blurb: "Our flagship gatherings, open to young adults across the country.",
|
blurb: "Our flagship gatherings, open to young adults across the country.",
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-tint)",
|
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "national", ...RETREATS },
|
props: { scope: "national", ...RETREATS },
|
||||||
views: { ...CARD_VIEWS, default: "carousel" },
|
views: { ...CARD_VIEWS, default: "carousel" },
|
||||||
|
|
@ -59,7 +58,6 @@ const SECTIONS = [
|
||||||
title: "Regional Retreats",
|
title: "Regional Retreats",
|
||||||
blurb: "Smaller gatherings hosted by regions throughout the year.",
|
blurb: "Smaller gatherings hosted by regions throughout the year.",
|
||||||
accent: ACCENTS.green,
|
accent: ACCENTS.green,
|
||||||
background: "var(--color-surface)",
|
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "regional", ...RETREATS },
|
props: { scope: "regional", ...RETREATS },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
@ -69,7 +67,6 @@ const SECTIONS = [
|
||||||
title: "Partner Events",
|
title: "Partner Events",
|
||||||
blurb: "Retreats hosted by organizations we collaborate with.",
|
blurb: "Retreats hosted by organizations we collaborate with.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.olive,
|
||||||
background: "var(--color-tint)",
|
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "partner", ...RETREATS },
|
props: { scope: "partner", ...RETREATS },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
@ -84,7 +81,6 @@ const SECTIONS = [
|
||||||
title: "Local Events",
|
title: "Local Events",
|
||||||
blurb: "Hosted by individual groups.",
|
blurb: "Hosted by individual groups.",
|
||||||
accent: ACCENTS.green,
|
accent: ACCENTS.green,
|
||||||
background: "var(--color-surface)",
|
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "local", ...RETREATS_ONLY },
|
props: { scope: "local", ...RETREATS_ONLY },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
@ -94,7 +90,6 @@ const SECTIONS = [
|
||||||
title: "International Events",
|
title: "International Events",
|
||||||
blurb: "Gatherings beyond the US.",
|
blurb: "Gatherings beyond the US.",
|
||||||
accent: ACCENTS.deep,
|
accent: ACCENTS.deep,
|
||||||
background: "var(--color-tint)",
|
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "international", ...RETREATS_ONLY },
|
props: { scope: "international", ...RETREATS_ONLY },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
@ -104,7 +99,6 @@ const SECTIONS = [
|
||||||
title: "Other Events",
|
title: "Other Events",
|
||||||
blurb: "Everything that doesn't fit the categories above.",
|
blurb: "Everything that doesn't fit the categories above.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.olive,
|
||||||
background: "var(--color-surface)",
|
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "other", ...RETREATS_ONLY },
|
props: { scope: "other", ...RETREATS_ONLY },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ export default function TeamDetail() {
|
||||||
id: 'about',
|
id: 'about',
|
||||||
title: 'About',
|
title: 'About',
|
||||||
accent,
|
accent,
|
||||||
background: 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
<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} />
|
<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',
|
id: 'members',
|
||||||
title: hasAbout ? 'Members' : team.name,
|
title: hasAbout ? 'Members' : team.name,
|
||||||
accent,
|
accent,
|
||||||
background: hasAbout ? 'var(--color-tint)' : 'var(--color-surface)',
|
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6 space-y-6">
|
<div className="max-w-6xl mx-auto px-6 space-y-6">
|
||||||
{!hasAbout && (
|
{!hasAbout && (
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ const SECTIONS = [
|
||||||
title: "Terms of Service",
|
title: "Terms of Service",
|
||||||
blurb: `Last updated: ${LAST_UPDATED}`,
|
blurb: `Last updated: ${LAST_UPDATED}`,
|
||||||
accent: BRAND,
|
accent: BRAND,
|
||||||
background: "var(--color-surface)",
|
|
||||||
content: <LegalText parts={PARTS} />,
|
content: <LegalText parts={PARTS} />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ type CalendarBandProps = { id: string; title: string; blurb?: string | null }
|
||||||
|
|
||||||
export default function CalendarBand({ id, title, blurb }: CalendarBandProps) {
|
export default function CalendarBand({ id, title, blurb }: CalendarBandProps) {
|
||||||
return (
|
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 className="mx-auto mb-10 flex max-w-6xl flex-wrap items-end justify-between gap-4 px-6">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ type FeaturedBandProps = {
|
||||||
|
|
||||||
export default function FeaturedBand({ id, title, blurb, cards }: FeaturedBandProps) {
|
export default function FeaturedBand({ id, title, blurb, cards }: FeaturedBandProps) {
|
||||||
return (
|
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">
|
<div className="mx-auto max-w-6xl px-6">
|
||||||
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">{title}</h2>
|
<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>}
|
{blurb && <p className="mt-4 max-w-2xl text-lg text-muted">{blurb}</p>}
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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 className="mx-auto flex max-w-6xl flex-wrap items-end gap-6 px-6">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
|
|
||||||
Backdrop, what fills the background:
|
Backdrop, what fills the background:
|
||||||
|
|
||||||
brand drifting color and slow concentric rings (many
|
brand a flat palette color with the dove, nothing moving
|
||||||
circles, one center) with the dove at that center
|
|
||||||
photos the hero photos, crossfading with a slow zoom, a
|
photos the hero photos, crossfading with a slow zoom, a
|
||||||
progress bar per photo and a pause button (anything
|
progress bar per photo and a pause button (anything
|
||||||
that moves on its own for more than five seconds
|
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">
|
<div className="text-white">
|
||||||
{live ? (
|
{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">
|
<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
|
Live now
|
||||||
{hero.livestream?.title && (
|
{hero.livestream?.title && (
|
||||||
<span className="normal-case tracking-normal text-white/75">
|
<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) && (
|
{(hero.primary || hero.secondary) && (
|
||||||
<div
|
<div className="hp-rise mt-10" style={{ animationDelay: '300ms' }}>
|
||||||
className="hp-rise mt-10 flex flex-wrap gap-4"
|
<HeroActions primary={hero.primary} secondary={hero.secondary} />
|
||||||
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>
|
</div>
|
||||||
)}
|
)}
|
||||||
</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 ──────────────────────────────────────────── */
|
/* ── Brand backdrop ──────────────────────────────────────────── */
|
||||||
|
|
||||||
|
const BRAND_FILL = '#004552'
|
||||||
|
|
||||||
function BrandBackdrop() {
|
function BrandBackdrop() {
|
||||||
return (
|
return (
|
||||||
<div className="absolute inset-0 -z-10" aria-hidden="true">
|
<div className="absolute inset-0 -z-10" style={{ background: BRAND_FILL }} 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%')} />
|
|
||||||
|
|
||||||
<svg
|
<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]"
|
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"
|
viewBox="0 0 400 400"
|
||||||
>
|
>
|
||||||
<defs>
|
<g style={{ color: '#ffffff' }} opacity="0.14">
|
||||||
<radialGradient id="hp-dove-glow">
|
<DoveMark x="120" y="148" width="160" height="106.75" />
|
||||||
<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>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<div
|
|
||||||
className="absolute inset-x-0 bottom-0 h-40"
|
|
||||||
style={{ background: `linear-gradient(to bottom, transparent, ${DEEP})` }}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function blob(color: string, size: string, left: string, top: string): CSSProperties {
|
|
||||||
return { background: color, width: size, height: size, left, top }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Photo backdrop ──────────────────────────────────────────── */
|
/* ── Photo backdrop ──────────────────────────────────────────── */
|
||||||
|
|
||||||
function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: number }) {
|
function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: number }) {
|
||||||
|
|
@ -298,7 +304,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
|
||||||
className="absolute inset-0"
|
className="absolute inset-0"
|
||||||
style={{
|
style={{
|
||||||
background:
|
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>
|
</div>
|
||||||
|
|
@ -362,7 +368,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="relative overflow-hidden border border-white/15 bg-black shadow-2xl"
|
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">
|
<div className="aspect-video w-full">
|
||||||
{src && watching ? (
|
{src && watching ? (
|
||||||
|
|
@ -375,7 +381,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
|
||||||
/>
|
/>
|
||||||
) : src ? (
|
) : src ? (
|
||||||
<div className="flex h-full w-full flex-col items-center justify-center gap-4 text-white">
|
<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
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => setWatching(true)}
|
onClick={() => setWatching(true)}
|
||||||
|
|
@ -386,7 +392,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex h-full w-full flex-col items-center justify-center gap-4 text-white">
|
<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
|
<HomeLink
|
||||||
url={url}
|
url={url}
|
||||||
className="btn bg-white px-6 py-3 text-[#001011] hover:scale-105"
|
className="btn bg-white px-6 py-3 text-[#001011] hover:scale-105"
|
||||||
|
|
@ -419,7 +425,7 @@ function VideoFrame({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="relative overflow-hidden border border-white/15 bg-black shadow-2xl"
|
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">
|
<div className="aspect-video w-full">
|
||||||
{source?.kind === 'file' ? (
|
{source?.kind === 'file' ? (
|
||||||
|
|
@ -463,7 +469,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="overflow-hidden border border-white/15 bg-white/10 text-white shadow-2xl backdrop-blur"
|
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 ? (
|
{photo ? (
|
||||||
<img src={photo} alt="" className="aspect-[16/7] w-full object-cover" />
|
<img src={photo} alt="" className="aspect-[16/7] w-full object-cover" />
|
||||||
|
|
|
||||||
|
|
@ -82,11 +82,11 @@ export default function NextEventCountdown({
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
aria-label="Next event"
|
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
|
<Link
|
||||||
to={eventHref(event.id)}
|
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)}` }}
|
style={{ borderColor: `${withAlpha(accent, 33)}` }}
|
||||||
>
|
>
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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="mx-auto max-w-6xl px-6">
|
||||||
<div className="grid gap-12 lg:grid-cols-12">
|
<div className="grid gap-12 lg:grid-cols-12">
|
||||||
<div className="lg:col-span-5">
|
<div className="lg:col-span-5">
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
|
||||||
|
|
||||||
export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
|
export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
|
||||||
return (
|
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 className="mx-auto mb-12 flex max-w-6xl flex-wrap items-end gap-6 px-6">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,6 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
|
||||||
className="relative overflow-hidden py-24"
|
className="relative overflow-hidden py-24"
|
||||||
style={{ background: '#004552' }}
|
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">
|
<div className="relative mx-auto max-w-6xl px-6">
|
||||||
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
|
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
|
||||||
{title}
|
{title}
|
||||||
|
|
|
||||||
|
|
@ -6,56 +6,6 @@
|
||||||
prefers-reduced-motion; the page still reads the same without it.
|
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 ────────────────────────────── */
|
/* ── Hero: headline words rise in ────────────────────────────── */
|
||||||
|
|
||||||
.hp-rise {
|
.hp-rise {
|
||||||
|
|
@ -103,17 +53,6 @@
|
||||||
to { transform: scaleX(1); }
|
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 ───────────────────────────────────────────── */
|
/* ── Timeline rail ───────────────────────────────────────────── */
|
||||||
|
|
||||||
.hp-rail {
|
.hp-rail {
|
||||||
|
|
@ -147,11 +86,7 @@
|
||||||
.hp-stat--in { opacity: 1; transform: none; }
|
.hp-stat--in { opacity: 1; transform: none; }
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.hp-aurora,
|
.hp-slide--on img {
|
||||||
.hp-rings,
|
|
||||||
.hp-dove,
|
|
||||||
.hp-slide--on img,
|
|
||||||
.hp-live-dot {
|
|
||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
.hp-rise,
|
.hp-rise,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue