Fix dark mode and bring the public design in line with the taste audit

- Dark mode: the countdown card, timeline section, Giving text, error
  text, the Leadership button, skeletons and the admin's dark text all
  follow the tokens; logos get a light plate in dark mode
- One BRAND accent (the button token, so the admin palette reaches
  every page) and one ACCENTS family in color.ts, replacing 20 local
  teal constants and the purple, ochre and rust section colours;
  neon green and gold become mint and brand green
- Shadows are tinted with the site's ink; glow shadows are gone
- One giving label, Give, in the nav, footer and Giving page
- Phosphor icons replace the hand-drawn SVGs and the glyph icons;
  Pathfinder paths pick a named icon (emoji still shown) and lose the
  watermark
- Home keeps two eyebrows; StatsBand's title is a real heading;
  section headings step down under the page title
- Nav links switch to the menu below lg, so they never wrap; jump
  links land clear of the header; press feedback on buttons
- Empty sections say what's coming and who to ask; loading is a
  skeleton; form placeholders and borders are readable; one
  corner-radius rule; theme-color for both modes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 02:54:03 -05:00
parent f72a9604d2
commit 048c7599ce
59 changed files with 416 additions and 350 deletions

View file

@ -68,6 +68,8 @@ In dev, Vite proxies `/api` to the target set in `vite.config.ts`, so the API mu
- **Vite resolves `.js` before `.ts`**, so a `.js` and `.ts` file with the same base name will import the wrong one. Give new hooks distinct names. - **Vite resolves `.js` before `.ts`**, so a `.js` and `.ts` file with the same base name will import the wrong one. Give new hooks distinct names.
- **Don't use `fallback: EMPTY` in api.ts hooks.** It silently returns empty arrays and hides server errors; let the error state surface. - **Don't use `fallback: EMPTY` in api.ts hooks.** It silently returns empty arrays and hides server errors; let the error state surface.
- **Colours are tokens, not hex.** Admins can override any token (Panel → Site settings → Colours); the defaults live in three places that must agree: `src/index.css`, `THEME_DEFAULTS` in `server/src/theme.js`, `THEME_COLORS` in `src/lib/adminSchema/siteSettings.ts`. Use the utilities from `src/index.css` (`text-ink`, `text-body`, `text-muted`, `text-link`, `bg-surface`, `bg-tint`, `bg-action`, `border-brand/20`...) so dark mode works; a literal only for something that must look the same in both modes (white on a dark band, a platform's colour). Data colours (accents, event and region colours) go through `withAlpha`, `accentText` and `readableOn` in `src/lib/color.ts`, never `${color}55`. - **Colours are tokens, not hex.** Admins can override any token (Panel → Site settings → Colours); the defaults live in three places that must agree: `src/index.css`, `THEME_DEFAULTS` in `server/src/theme.js`, `THEME_COLORS` in `src/lib/adminSchema/siteSettings.ts`. Use the utilities from `src/index.css` (`text-ink`, `text-body`, `text-muted`, `text-link`, `bg-surface`, `bg-tint`, `bg-action`, `border-brand/20`...) so dark mode works; a literal only for something that must look the same in both modes (white on a dark band, a platform's colour). Data colours (accents, event and region colours) go through `withAlpha`, `accentText` and `readableOn` in `src/lib/color.ts`, never `${color}55`.
- **Icons are Phosphor** (`@phosphor-icons/react`), weight `bold` (or `fill` for play/star). No hand-drawn `<svg>` icons and no Unicode glyphs as icons (× › ▶ →). Brand marks are the exception: `DoveMark`, `PlatformIcon`, the Google logo, the chapter map.
- **Accents come from `src/lib/color.ts`:** `BRAND` (the teal, via the button token so the admin palette reaches it) and `ACCENTS` (deep, green, mint). Not a new hex in a page.
- **No em-dashes** (U+2014) anywhere: UI text, help text, comments, docs, commit messages. Use a colon, comma or parentheses. An empty table cell shows `-`. - **No em-dashes** (U+2014) anywhere: UI text, help text, comments, docs, commit messages. Use a colon, comma or parentheses. An empty table cell shows `-`.
- **Admin editor text:** blank select options read `Default: …` (what blank means), examples in help text start with `eg.`, and record ids are called "URL ID". Cut-off preview text uses `preview()` from `src/lib/text.ts`, which ends it with an ellipsis. See `docs/updating-data-in-code.md`. - **Admin editor text:** blank select options read `Default: …` (what blank means), examples in help text start with `eg.`, and record ids are called "URL ID". Cut-off preview text uses `preview()` from `src/lib/text.ts`, which ends it with an ellipsis. See `docs/updating-data-in-code.md`.

View file

@ -275,6 +275,8 @@ The numbers band's "Number Source" dropdown works the same way:
| Chapter map tiles and area names | `src/data/mapGrid.ts` | `AREAS` (tile positions) and `AREA_NAMES`. Which region paints which tile is in the database (Admin → Data → Organizations → a region → Map areas). | | Chapter map tiles and area names | `src/data/mapGrid.ts` | `AREAS` (tile positions) and `AREA_NAMES`. Which region paints which tile is in the database (Admin → Data → Organizations → a region → Map areas). |
| Feedback form types | `src/data/feedbackTypes.ts` **and** `TYPES` in `server/src/routes/feedback.js` | Keep the ids identical in both; the server stores unknown ids as `general`. Labels and hints are client-only. `DATA_REQUEST` ('privacy') isn't a tile: the Privacy page's form sends it, and the server requires an email for it. | | Feedback form types | `src/data/feedbackTypes.ts` **and** `TYPES` in `server/src/routes/feedback.js` | Keep the ids identical in both; the server stores unknown ids as `general`. Labels and hints are client-only. `DATA_REQUEST` ('privacy') isn't a tile: the Privacy page's form sends it, and the server requires an email for it. |
| The site's colours, light and dark | the database over `src/index.css` | Admin → Panel → Site settings → Colours (superadmins): pick a colour, set its light and/or dark value; saving refuses anything that makes text hard to read. The defaults are the `@theme` tokens and dark block in `src/index.css`, and must stay the same in `THEME_DEFAULTS` (`server/src/theme.js`) and `THEME_COLORS` (`src/lib/adminSchema/siteSettings.ts`). Change a token's value in both modes and every use follows. Use the token utilities (`text-muted`, `bg-surface`, `border-brand/20`) or `var(--color-…)`, not hex. A colour that arrives as data (a page accent, an event's or region's colour) goes through `src/lib/color.ts`: `withAlpha` for tints, `accentText` for text in it, `readableOn` for text on it. | | The site's colours, light and dark | the database over `src/index.css` | Admin → Panel → Site settings → Colours (superadmins): pick a colour, set its light and/or dark value; saving refuses anything that makes text hard to read. The defaults are the `@theme` tokens and dark block in `src/index.css`, and must stay the same in `THEME_DEFAULTS` (`server/src/theme.js`) and `THEME_COLORS` (`src/lib/adminSchema/siteSettings.ts`). Change a token's value in both modes and every use follows. Use the token utilities (`text-muted`, `bg-surface`, `border-brand/20`) or `var(--color-…)`, not hex. A colour that arrives as data (a page accent, an event's or region's colour) goes through `src/lib/color.ts`: `withAlpha` for tints, `accentText` for text in it, `readableOn` for text on it. |
| The icons a Front page "Find your way in" path can pick | `src/data/pathIcons.ts` (keys and labels) **and** `ICONS` in `src/pages/sections/home/Pathfinder.tsx` (the Phosphor icon for each key) | Add a line to both. A path saved with an emoji from before the list shows it as it is. |
| A page section's accent colour | `BRAND` and `ACCENTS` in `src/lib/color.ts` | Pages pick from these (`accent: ACCENTS.green`); add a colour there, not a hex in a page. Each is readable as text on white and the tints. |
| Privacy Policy and Terms wording | `src/pages/Privacy.tsx`, `src/pages/Terms.tsx` | The `PARTS` list, and `LAST_UPDATED` whenever the wording changes. The Privacy page must stay true of the code: what the feedback form stores, what the browser keeps, which embeds wait for a click. | | Privacy Policy and Terms wording | `src/pages/Privacy.tsx`, `src/pages/Terms.tsx` | The `PARTS` list, and `LAST_UPDATED` whenever the wording changes. The Privacy page must stay true of the code: what the feedback form stores, what the browser keeps, which embeds wait for a click. |
| Event type labels and plurals (public site) | `src/lib/eventTypes.ts` | Also the order of the type filter chips. | | Event type labels and plurals (public site) | `src/lib/eventTypes.ts` | Also the order of the type filter chips. |
| Event and person role labels (public site) | `ROLE_LABEL` in `src/pages/EventDetail.tsx` and `src/pages/PersonDetail.tsx` | | | Event and person role labels (public site) | `ROLE_LABEL` in `src/pages/EventDetail.tsx` and `src/pages/PersonDetail.tsx` | |

View file

@ -5,6 +5,9 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><!-- site:title --></title> <title><!-- site:title --></title>
<!-- The browser chrome around the page, for each mode. -->
<meta name="theme-color" content="#073d4a" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0c1d21" media="(prefers-color-scheme: dark)" />
<!-- Theme before first paint, so a dark visitor never sees a white <!-- Theme before first paint, so a dark visitor never sees a white
flash: this browser's choice (ThemeToggle), else the system. --> flash: this browser's choice (ThemeToggle), else the system. -->
<script> <script>

View file

@ -12,6 +12,7 @@
"dependencies": { "dependencies": {
"@fontsource/montserrat": "^5.3.0", "@fontsource/montserrat": "^5.3.0",
"@fontsource/poppins": "^5.3.0", "@fontsource/poppins": "^5.3.0",
"@phosphor-icons/react": "^2.1.10",
"qrcode": "^1.5.4", "qrcode": "^1.5.4",
"react": "^19.0.0", "react": "^19.0.0",
"react-dom": "^19.0.0", "react-dom": "^19.0.0",

15
pnpm-lock.yaml generated
View file

@ -14,6 +14,9 @@ importers:
'@fontsource/poppins': '@fontsource/poppins':
specifier: ^5.3.0 specifier: ^5.3.0
version: 5.3.0 version: 5.3.0
'@phosphor-icons/react':
specifier: ^2.1.10
version: 2.1.10(react-dom@19.3.0(react@19.3.0))(react@19.3.0)
qrcode: qrcode:
specifier: ^1.5.4 specifier: ^1.5.4
version: 1.5.4 version: 1.5.4
@ -129,6 +132,13 @@ packages:
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
'@phosphor-icons/react@2.1.10':
resolution: {integrity: sha512-vt8Tvq8GLjheAZZYa+YG/pW7HDbov8El/MANW8pOAz4eGxrwhnbfrQZq0Cp4q8zBEu8NIhHdnr+r8thnfRSNYA==}
engines: {node: '>=10'}
peerDependencies:
react: '>= 16.8'
react-dom: '>= 16.8'
'@rolldown/binding-android-arm-eabi@1.2.9': '@rolldown/binding-android-arm-eabi@1.2.9':
resolution: {integrity: sha512-tNISae1QEf/vkb3xkRcjV5SEdzPE97We5IVaa2Z8jSszQPZ8U60B/YCYpw4QI7VidYsBtKavczXf+DyDs9WGxw==} resolution: {integrity: sha512-tNISae1QEf/vkb3xkRcjV5SEdzPE97We5IVaa2Z8jSszQPZ8U60B/YCYpw4QI7VidYsBtKavczXf+DyDs9WGxw==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
@ -823,6 +833,11 @@ snapshots:
'@oxfmt/win32-x64@0.2.0': '@oxfmt/win32-x64@0.2.0':
optional: true optional: true
'@phosphor-icons/react@2.1.10(react-dom@19.3.0(react@19.3.0))(react@19.3.0)':
dependencies:
react: 19.3.0
react-dom: 19.3.0(react@19.3.0)
'@rolldown/binding-android-arm-eabi@1.2.9': '@rolldown/binding-android-arm-eabi@1.2.9':
optional: true optional: true

View file

@ -1,3 +1,4 @@
import { ArrowRight } from "@phosphor-icons/react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
/* ═══════════════════════════════════════════════════════════════ /* ═══════════════════════════════════════════════════════════════
@ -13,18 +14,7 @@ export default function ArrowLink({ to, label, color, size = "h-9 w-9" }) {
className={`${size} shrink-0 rounded-full flex items-center justify-center transition-transform duration-200 hover:scale-110`} className={`${size} shrink-0 rounded-full flex items-center justify-center transition-transform duration-200 hover:scale-110`}
style={{ border: `1px solid ${color}`, color }} style={{ border: `1px solid ${color}`, color }}
> >
<svg <ArrowRight className="h-4 w-4" weight="bold" aria-hidden="true" />
viewBox="0 0 24 24"
className="h-4 w-4"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
>
<path d="M5 12h14M13 6l6 6-6 6" />
</svg>
</Link> </Link>
); );
} }

View file

@ -1,3 +1,4 @@
import { X } from "@phosphor-icons/react";
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { SITE_BANNER } from "../data/bannerConfig.ts"; import { SITE_BANNER } from "../data/bannerConfig.ts";
@ -54,9 +55,7 @@ export default function Banner() {
aria-label="Dismiss announcement" aria-label="Dismiss announcement"
className="absolute right-3 top-1/2 -translate-y-1/2 p-1.5 rounded-md text-white/50 hover:text-white hover:bg-white/10 transition-colors" className="absolute right-3 top-1/2 -translate-y-1/2 p-1.5 rounded-md text-white/50 hover:text-white hover:bg-white/10 transition-colors"
> >
<svg className="w-4 h-4" viewBox="0 0 20 20" fill="currentColor"> <X className="w-4 h-4" weight="bold" aria-hidden="true" />
<path d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" />
</svg>
</button> </button>
)} )}
</div> </div>

View file

@ -0,0 +1,24 @@
/* ═══════════════════════════════════════════════════════════════
COMING SOON
What a page section shows before it has content, instead of a
heading over nothing: that it's being put together, and where to
ask in the meantime. Swap it for the real content when there is
some.
═══════════════════════════════════════════════════════════════ */
const CONTACT = 'info@nextgenerationofunity.org'
export default function ComingSoon({ what }: { what: string }) {
return (
<div className="mx-auto max-w-6xl px-6">
<p className="max-w-xl rounded-2xl border border-dashed border-brand/30 bg-surface/60 p-6 text-body">
We’re putting {what} together. In the meantime, ask us at{' '}
<a href={`mailto:${CONTACT}`} className="font-semibold text-link underline underline-offset-2">
{CONTACT}
</a>
.
</p>
</div>
)
}

View file

@ -38,13 +38,13 @@ import type { ContentBlock } from '../lib/useContent.ts'
import { Anchor, Inline, Paragraphs } from './InlineText.tsx' import { Anchor, Inline, Paragraphs } from './InlineText.tsx'
import VideoPlayer from './VideoPlayer.tsx' import VideoPlayer from './VideoPlayer.tsx'
import ScheduleBlock from './ScheduleBlock.tsx' import ScheduleBlock from './ScheduleBlock.tsx'
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
export default function ContentBlocks({ export default function ContentBlocks({
blocks, blocks,
accent = '#0f7183', accent = BRAND,
className = '', className = '',
}: { }: {
blocks?: ContentBlock[] | null blocks?: ContentBlock[] | null

View file

@ -60,7 +60,7 @@ function Picture({ card }: { card: FeaturedCard }) {
alt="" alt=""
loading="lazy" loading="lazy"
onError={img.onError} onError={img.onError}
className="max-h-full max-w-full object-contain" className="logo-plate max-h-full max-w-full object-contain"
/> />
</div> </div>
) )
@ -77,7 +77,7 @@ function Card({ card }: { card: FeaturedCard }) {
const text = ( const text = (
<div className="flex flex-1 flex-col p-6"> <div className="flex flex-1 flex-col p-6">
{card.eyebrow && ( {card.eyebrow && (
<p className="text-xs font-bold uppercase tracking-[0.2em] text-link">{card.eyebrow}</p> <p className="text-sm font-semibold text-link">{card.eyebrow}</p>
)} )}
{card.title && ( {card.title && (
<h3 className="mt-2 font-display text-xl font-extrabold leading-snug text-ink"> <h3 className="mt-2 font-display text-xl font-extrabold leading-snug text-ink">
@ -117,7 +117,7 @@ function Card({ card }: { card: FeaturedCard }) {
export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) { export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) {
return ( return (
<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 lg:[&>li:first-child]:col-span-2">
{cards.map((card, index) => ( {cards.map((card, index) => (
<Card key={`${card.kind}-${card.ref?.id ?? card.url}-${index}`} card={card} /> <Card key={`${card.kind}-${card.ref?.id ?? card.url}-${index}`} card={card} />
))} ))}

View file

@ -111,9 +111,9 @@ export default function Footer() {
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="inline-block mt-8 px-6 py-2.5 rounded-full text-sm font-bold text-white whitespace-nowrap transition-all duration-200 hover:scale-105" className="inline-block mt-8 px-6 py-2.5 rounded-full text-sm font-bold text-white whitespace-nowrap transition-all duration-200 hover:scale-105"
style={{ background: "#0f7183" }} style={{ background: "var(--color-action)" }}
> >
Support Us {giveAction.label}
</a> </a>
)} )}
</div> </div>

View file

@ -1,3 +1,4 @@
import { X, List } from "@phosphor-icons/react";
import { Suspense, useState, useEffect, useRef } from "react"; import { Suspense, useState, useEffect, useRef } from "react";
import { NavLink, Link, Outlet, useLocation } from "react-router-dom"; import { NavLink, Link, Outlet, useLocation } from "react-router-dom";
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts"; import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
@ -28,7 +29,7 @@ const ACTION_VARIANTS: Record<
}, },
fancy: { fancy: {
className: "font-bold text-white hover:scale-105", className: "font-bold text-white hover:scale-105",
style: { background: "#0f7183" }, style: { background: "var(--color-action)" },
}, },
}; };
@ -47,7 +48,7 @@ function NavAction({
onClick?: () => void; onClick?: () => void;
}) { }) {
const v = ACTION_VARIANTS[item.variant] ?? ACTION_VARIANTS.ghost; const v = ACTION_VARIANTS[item.variant] ?? ACTION_VARIANTS.ghost;
const className = `inline-block whitespace-nowrap rounded-full transition-all duration-200 ${ACTION_SIZES[size]} ${v.className}`; const className = `inline-block whitespace-nowrap rounded-full transition-all duration-200 active:scale-[0.98] ${ACTION_SIZES[size]} ${v.className}`;
return item.external ? ( return item.external ? (
<a <a
@ -74,7 +75,11 @@ const navActions = NAV_ACTIONS as NavActionItem[];
export default function Layout() { export default function Layout() {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [activeSection, setActiveSection] = useState<string | null>(null); const [activeSection, setActiveSection] = useState<string | null>(null);
const [headerHeight, setHeaderHeight] = useState(72); // Measured below; this first guess (nav, plus the section strip on
// pages that have one) keeps the content from jumping when it lands.
const [headerHeight, setHeaderHeight] = useState(() =>
72 + ((PAGE_SECTIONS[window.location.pathname] ?? []).length ? 36 : 0),
);
const headerRef = useRef<HTMLElement>(null); const headerRef = useRef<HTMLElement>(null);
const closeMenuRef = useRef<HTMLButtonElement>(null); const closeMenuRef = useRef<HTMLButtonElement>(null);
const location = useLocation(); const location = useLocation();
@ -153,7 +158,10 @@ export default function Layout() {
}, [location.pathname, headerHeight]); }, [location.pathname, headerHeight]);
return ( return (
<div className="min-h-screen overflow-x-hidden"> <div
className="min-h-screen overflow-x-hidden"
style={{ "--header-h": `${headerHeight}px` } as React.CSSProperties}
>
<a <a
href="#main" href="#main"
className="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[70] focus:rounded-full focus:bg-surface focus:px-4 focus:py-2 focus:font-semibold focus:text-ink" className="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[70] focus:rounded-full focus:bg-surface focus:px-4 focus:py-2 focus:font-semibold focus:text-ink"
@ -182,7 +190,7 @@ export default function Layout() {
<img src={nguLogo} alt="Next Generation of Unity" className="h-10 w-auto" /> <img src={nguLogo} alt="Next Generation of Unity" className="h-10 w-auto" />
</Link> </Link>
<div className="hidden md:flex items-center gap-6"> <div className="hidden lg:flex items-center gap-6">
{PAGE_LINKS.map((page) => ( {PAGE_LINKS.map((page) => (
<NavLink <NavLink
key={page.path} key={page.path}
@ -203,7 +211,7 @@ export default function Layout() {
</div> </div>
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
<div className="hidden md:flex items-center gap-3"> <div className="hidden lg:flex items-center gap-3">
{navActions.map((item) => ( {navActions.map((item) => (
<NavAction key={item.label} item={item} /> <NavAction key={item.label} item={item} />
))} ))}
@ -212,14 +220,12 @@ export default function Layout() {
<ThemeToggle className="text-white/80 hover:bg-white/10 hover:text-white" /> <ThemeToggle className="text-white/80 hover:bg-white/10 hover:text-white" />
<button <button
className="md:hidden text-white p-2" className="lg:hidden text-white p-2"
aria-label="Open menu" aria-label="Open menu"
aria-expanded={mobileMenuOpen} aria-expanded={mobileMenuOpen}
onClick={() => setMobileMenuOpen(!mobileMenuOpen)} onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
> >
<div className="w-6 h-0.5 bg-white mb-1.5 transition-all" /> <List size={26} weight="bold" aria-hidden="true" />
<div className="w-6 h-0.5 bg-white mb-1.5" />
<div className="w-6 h-0.5 bg-white" />
</button> </button>
</div> </div>
</nav> </nav>
@ -294,7 +300,7 @@ export default function Layout() {
aria-label="Close menu" aria-label="Close menu"
onClick={() => setMobileMenuOpen(false)} onClick={() => setMobileMenuOpen(false)}
> >
× <X size={28} weight="bold" aria-hidden="true" />
</button> </button>
<div className="w-64"> <div className="w-64">
@ -309,7 +315,7 @@ export default function Layout() {
end={page.path === "/"} end={page.path === "/"}
className={({ isActive }) => className={({ isActive }) =>
`block text-2xl font-bold py-3 transition-colors ${ `block text-2xl font-bold py-3 transition-colors ${
isActive ? "text-[#aac992]" : "text-white hover:text-[#10d48a]" isActive ? "text-[#aac992]" : "text-white hover:text-[#9fe7d0]"
}` }`
} }
> >
@ -326,7 +332,7 @@ export default function Layout() {
<a <a
key={section.hash} key={section.hash}
href={section.hash} href={section.hash}
className="text-white/80 text-lg py-2 hover:text-[#10d48a] transition-colors" className="text-white/80 text-lg py-2 hover:text-[#9fe7d0] transition-colors"
onClick={() => setMobileMenuOpen(false)} onClick={() => setMobileMenuOpen(false)}
> >
{section.label} {section.label}

View file

@ -25,5 +25,6 @@ export default function Logo({
}) { }) {
const img = useSmallImage(src) const img = useSmallImage(src)
if (img.failed) return <>{fallback}</> if (img.failed) return <>{fallback}</>
return <img src={img.src} alt={alt} loading="lazy" className={className} onError={img.onError} /> // logo-plate: a light backing in dark mode, for marks drawn for white.
return <img src={img.src} alt={alt} loading="lazy" className={`logo-plate ${className ?? ""}`} onError={img.onError} />
} }

View file

@ -20,7 +20,7 @@
title: "Local Chapters", title: "Local Chapters",
blurb: "Optional line under the section heading.", blurb: "Optional line under the section heading.",
accent: "#0f7183", // heading, banner, rule accent: BRAND, // heading, banner, rule
background: "var(--color-tint)", background: "var(--color-tint)",
actions: <SomeButton />, // optional, right of the heading actions: <SomeButton />, // optional, right of the heading
content: <YourStuff />, content: <YourStuff />,
@ -32,9 +32,8 @@
import { useEffect, type ReactNode } from "react"; import { useEffect, type ReactNode } from "react";
import { documentTitle } from "../lib/site.ts"; import { documentTitle } from "../lib/site.ts";
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const TEAL = "#0f7183";
export type ShellSection = { export type ShellSection = {
id: string; id: string;
@ -70,20 +69,21 @@ export function Section({ section }: { section: ShellSection }) {
<section <section
id={id} id={id}
className="py-20" className="py-20"
style={{ background, scrollMarginTop: "5rem" }} // 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)" }}
> >
{/* 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">
<div className="flex flex-wrap items-end justify-between gap-4"> <div className="flex flex-wrap items-end justify-between gap-4">
<div> <div>
<h2 className="text-4xl md:text-5xl font-extrabold" style={{ color: accentText(accent) }}> <h2 className="text-3xl md:text-4xl font-extrabold" style={{ color: accentText(accent) }}>
{title} {title}
</h2> </h2>
{blurb && <p className="mt-2 text-muted max-w-xl">{blurb}</p>} {blurb && <p className="mt-2 text-muted max-w-xl">{blurb}</p>}
</div> </div>
{actions} {actions}
</div> </div>
<div className="mt-6 h-px w-full" style={{ background: accent, opacity: 0.35 }} />
</div> </div>
{content} {content}
@ -104,7 +104,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
{/* 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" style={{ background: "var(--color-tint)" }}>
<div className="max-w-6xl mx-auto"> <div className="max-w-6xl mx-auto">
<h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: accentText(TEAL) }}> <h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: accentText(BRAND) }}>
{title} {title}
</h1> </h1>
{intro && <p className="mt-3 text-lg text-muted max-w-2xl">{intro}</p>} {intro && <p className="mt-3 text-lg text-muted max-w-2xl">{intro}</p>}

View file

@ -16,9 +16,8 @@
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import PageShell from './PageShell.tsx' import PageShell from './PageShell.tsx'
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const TEAL = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
export default function PageState({ export default function PageState({
@ -53,7 +52,7 @@ export default function PageState({
<Link <Link
to={backTo} to={backTo}
className="mt-4 inline-block rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint" className="mt-4 inline-block rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint"
style={{ borderColor: TEAL, color: accentText(TEAL) }} style={{ borderColor: BRAND, color: accentText(BRAND) }}
> >
{backLabel} {backLabel}
</Link> </Link>
@ -63,12 +62,12 @@ export default function PageState({
title = 'Something went wrong' title = 'Something went wrong'
content = ( content = (
<div className="max-w-6xl mx-auto px-6"> <div className="max-w-6xl mx-auto px-6">
<p style={{ color: '#b3261e' }}>Couldn’t load this {noun}. {error}</p> <p className="text-danger">Couldn’t load this {noun}. {error}</p>
<button <button
type="button" type="button"
onClick={onRetry} onClick={onRetry}
className="mt-3 rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint" className="mt-3 rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint"
style={{ borderColor: TEAL, color: accentText(TEAL) }} style={{ borderColor: BRAND, color: accentText(BRAND) }}
> >
Try again Try again
</button> </button>
@ -77,16 +76,22 @@ export default function PageState({
} else { } else {
title = 'Loading…' title = 'Loading…'
content = ( content = (
<p className="max-w-6xl mx-auto px-6" style={{ color: BODY }} role="status"> <div className="max-w-6xl mx-auto px-6" role="status">
Loading this {noun}… <span className="sr-only">Loading this {noun}…</span>
</p> <div aria-hidden="true" className="space-y-4">
<div className="skeleton !min-h-0 h-8 w-2/3 !rounded-xl" />
<div className="skeleton !min-h-0 h-4 w-full !rounded-lg" />
<div className="skeleton !min-h-0 h-4 w-5/6 !rounded-lg" />
<div className="skeleton !min-h-0 mt-8 aspect-video w-full max-w-3xl" />
</div>
</div>
) )
} }
return ( return (
<PageShell <PageShell
title={title} title={title}
sections={[{ id: 'status', title: '', accent: TEAL, background: 'var(--color-surface)', content }]} sections={[{ id: 'status', title: '', accent: BRAND, background: 'var(--color-surface)', content }]}
/> />
) )
} }

View file

@ -15,7 +15,7 @@
/* color */ /* color */
--pl-accent: #0f7183; --pl-accent: #0f7183;
--pl-frame-bg: var(--color-surface); --pl-frame-bg: var(--color-surface);
--pl-frame-edge: rgba(15, 23, 42, 0.1); --pl-frame-edge: color-mix(in srgb, var(--color-muted) 20%, transparent);
--pl-photo-bg: color-mix(in srgb, var(--color-muted) 15%, var(--color-surface)); --pl-photo-bg: color-mix(in srgb, var(--color-muted) 15%, var(--color-surface));
--pl-ink: var(--color-ink); --pl-ink: var(--color-ink);
--pl-muted: var(--color-muted); --pl-muted: var(--color-muted);

View file

@ -1,3 +1,4 @@
import { ArrowRight, CaretDown, X } from "@phosphor-icons/react";
import { import {
useEffect, useEffect,
useId, useId,
@ -643,7 +644,7 @@ function DetailPanel({
</div> </div>
<button type="button" className="pl__close" onClick={onClose}> <button type="button" className="pl__close" onClick={onClose}>
<span className="pl__sr">Close details</span> <span className="pl__sr">Close details</span>
<span aria-hidden="true">×</span> <X size={18} weight="bold" aria-hidden="true" />
</button> </button>
</div> </div>
@ -692,7 +693,7 @@ function DetailPanel({
{profile && ( {profile && (
<Link to={profile} className="pl__profile"> <Link to={profile} className="pl__profile">
View full profile → View full profile <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</Link> </Link>
)} )}
</div> </div>
@ -701,16 +702,7 @@ function DetailPanel({
function Chevron() { function Chevron() {
return ( return (
<svg viewBox="0 0 16 16" width="12" height="12" focusable="false"> <CaretDown size={12} weight="bold" aria-hidden="true" />
<path
d="M4 6.5 8 10.5 12 6.5"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
); );
} }

View file

@ -10,6 +10,7 @@
index.css. index.css.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { Sun, Moon } from '@phosphor-icons/react'
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
type Theme = 'light' | 'dark' type Theme = 'light' | 'dark'
@ -62,18 +63,7 @@ export default function ThemeToggle({ className = '' }: { className?: string })
title={dark ? 'Light mode' : 'Dark mode'} title={dark ? 'Light mode' : 'Dark mode'}
className={`flex h-9 w-9 items-center justify-center rounded-full transition-colors ${className}`} className={`flex h-9 w-9 items-center justify-center rounded-full transition-colors ${className}`}
> >
{dark ? ( {dark ? <Sun size={20} weight="bold" aria-hidden="true" /> : <Moon size={20} weight="bold" aria-hidden="true" />}
// Sun
<svg viewBox="0 0 24 24" className="h-5 w-5" fill="none" stroke="currentColor" strokeWidth="2" aria-hidden="true">
<circle cx="12" cy="12" r="4" />
<path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" strokeLinecap="round" />
</svg>
) : (
// Moon
<svg viewBox="0 0 24 24" className="h-5 w-5" fill="none" stroke="currentColor" strokeWidth="2" aria-hidden="true">
<path d="M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z" strokeLinejoin="round" />
</svg>
)}
</button> </button>
) )
} }

View file

@ -11,12 +11,13 @@
goes somewhere: the still becomes a link to it. goes somewhere: the still becomes a link to it.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { Play } from '@phosphor-icons/react'
import { useState } from 'react' import { useState } from 'react'
import HomeLink from '../pages/sections/home/HomeLink.tsx' import HomeLink from '../pages/sections/home/HomeLink.tsx'
import { playingSource, videoSource, videoThumbnail } from '../lib/embeds.ts' import { playingSource, videoSource, videoThumbnail } from '../lib/embeds.ts'
import { BRAND } from '../lib/color.ts'
const ACCENT = '#0f7183'
export default function VideoPlayer({ export default function VideoPlayer({
url, url,
@ -62,9 +63,7 @@ export default function VideoPlayer({
className="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/25" className="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/25"
> >
<span className="flex h-16 w-16 items-center justify-center rounded-full bg-white/90 shadow-lg transition-transform group-hover:scale-110"> <span className="flex h-16 w-16 items-center justify-center rounded-full bg-white/90 shadow-lg transition-transform group-hover:scale-110">
<svg viewBox="0 0 24 24" className="ml-1 h-7 w-7" fill={ACCENT}> <Play className="ml-1 h-7 w-7" weight="fill" style={{ color: BRAND }} aria-hidden="true" />
<path d="M8 5v14l11-7z" />
</svg>
</span> </span>
</span> </span>
</> </>

View file

@ -75,6 +75,7 @@
able to read and copy. able to read and copy.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowUp, ArrowDown, CaretRight } from "@phosphor-icons/react";
import { useRef, useState } from "react"; import { useRef, useState } from "react";
import ContentBlocks from "../ContentBlocks.tsx"; import ContentBlocks from "../ContentBlocks.tsx";
@ -581,7 +582,7 @@ export function Repeater({
expanded ? "rotate-90" : "" expanded ? "rotate-90" : ""
}`} }`}
> >
▶ <CaretRight size={14} weight="bold" aria-hidden="true" />
</span> </span>
<span className="truncate"> <span className="truncate">
{spec.title ? spec.title(row, options) : `#${index + 1}`} {spec.title ? spec.title(row, options) : `#${index + 1}`}
@ -597,14 +598,14 @@ export function Repeater({
onClick={() => move(index, -1)} onClick={() => move(index, -1)}
disabled={index === 0} disabled={index === 0}
> >
↑ <ArrowUp size={14} weight="bold" aria-hidden="true" />
</IconButton> </IconButton>
<IconButton <IconButton
label="Move down" label="Move down"
onClick={() => move(index, 1)} onClick={() => move(index, 1)}
disabled={index === list.length - 1} disabled={index === list.length - 1}
> >
↓ <ArrowDown size={14} weight="bold" aria-hidden="true" />
</IconButton> </IconButton>
<IconButton <IconButton
label="Insert a new one below" label="Insert a new one below"

28
src/data/pathIcons.ts Normal file
View file

@ -0,0 +1,28 @@
/* ═══════════════════════════════════════════════════════════════
PATH ICONS
The icons a "Find your way in" path can show (Front page →
Connect Nav → Icon), as [key, label]. The admin's dropdown lists
the labels; Pathfinder.tsx draws the Phosphor icon for each key.
Adding one is a line here and one in ICONS in Pathfinder.tsx.
A path saved before this list existed may hold an emoji instead
of a key; Pathfinder shows that as it is.
═══════════════════════════════════════════════════════════════ */
export const PATH_ICONS: [string, string][] = [
['heart', 'Heart'],
['hands', 'Helping hand'],
['people', 'People'],
['calendar', 'Calendar'],
['tent', 'Retreat (tent)'],
['map', 'Map pin'],
['home', 'Home'],
['book', 'Book'],
['learn', 'Graduation cap'],
['chat', 'Speech bubble'],
['music', 'Music'],
['compass', 'Compass'],
['sparkle', 'Sparkle'],
['star', 'Star'],
]

View file

@ -35,6 +35,16 @@
--color-tint-soft: #f6fbfc; /* hover rows, faint panels */ --color-tint-soft: #f6fbfc; /* hover rows, faint panels */
--color-danger: #b3261e; --color-danger: #b3261e;
--color-danger-tint: #fdf3f2; --color-danger-tint: #fdf3f2;
/* Tailwind's shadows, tinted with the site's deep ink instead of
black, so a card's shadow belongs to the page. */
--shadow-2xs: 0 1px rgb(4 38 46 / 0.05);
--shadow-xs: 0 1px 2px 0 rgb(4 38 46 / 0.05);
--shadow-sm: 0 1px 3px 0 rgb(4 38 46 / 0.1), 0 1px 2px -1px rgb(4 38 46 / 0.1);
--shadow-md: 0 4px 6px -1px rgb(4 38 46 / 0.1), 0 2px 4px -2px rgb(4 38 46 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(4 38 46 / 0.12), 0 4px 6px -4px rgb(4 38 46 / 0.1);
--shadow-xl: 0 20px 25px -5px rgb(4 38 46 / 0.12), 0 8px 10px -6px rgb(4 38 46 / 0.1);
--shadow-2xl: 0 25px 50px -12px rgb(4 38 46 / 0.3);
} }
/* How much of an accent colour its text keeps (src/lib/color.ts, /* How much of an accent colour its text keeps (src/lib/color.ts,
@ -123,6 +133,28 @@ h1, h2, h3, h4, h5, h6 {
font-weight: bold; font-weight: bold;
} }
/* A logo on a dark page: many are drawn for white paper (dark marks,
transparent background) and would vanish. .logo-plate gives them
a small light backing in dark mode only. */
:root[data-theme="dark"] .logo-plate {
background: #eef9fb;
border-radius: 0.75rem;
padding: 0.25rem;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .logo-plate {
background: #eef9fb;
border-radius: 0.75rem;
padding: 0.25rem;
}
}
/* Corners, one rule for the site: actions (buttons, pills, chips)
are rounded-full; cards and panels are rounded-3xl when large and
rounded-2xl when small; media and logos inside a card are
rounded-xl. PeopleTiles' 2-3px photo frame is its own deliberate
exception. */
/* Scrollbar hide */ /* Scrollbar hide */
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-track { background: transparent; }
@ -201,9 +233,9 @@ h1, h2, h3, h4, h5, h6 {
min-height: 22rem; min-height: 22rem;
background: linear-gradient( background: linear-gradient(
100deg, 100deg,
rgba(0, 0, 0, 0.04) 30%, color-mix(in srgb, var(--color-muted) 8%, transparent) 30%,
rgba(0, 0, 0, 0.08) 50%, color-mix(in srgb, var(--color-muted) 16%, transparent) 50%,
rgba(0, 0, 0, 0.04) 70% color-mix(in srgb, var(--color-muted) 8%, transparent) 70%
); );
background-size: 200% 100%; background-size: 200% 100%;
animation: skeleton-shimmer 1.4s ease-in-out infinite; animation: skeleton-shimmer 1.4s ease-in-out infinite;

View file

@ -1,5 +1,6 @@
import { mediaUrl } from "../media.ts"; import { mediaUrl } from "../media.ts";
import { featuredCardsChild } from "./shared.ts"; import { featuredCardsChild } from "./shared.ts";
import { PATH_ICONS } from "../../data/pathIcons.ts";
/* ── Front page ────────────────────────────────────────────────── /* ── Front page ──────────────────────────────────────────────────
@ -218,11 +219,17 @@ export const frontPage = {
label: "Connect Nav", label: "Connect Nav",
note: "Each path is a choice a visitor can pick; its actions appear when they do.", note: "Each path is a choice a visitor can pick; its actions appear when they do.",
addLabel: "Add path", addLabel: "Add path",
title: (row) => [row.icon, row.label].filter(Boolean).join(" ") || "New path", title: (row) => row.label || "New path",
blank: { label: "", icon: "", blurb: "" }, blank: { label: "", icon: "", blurb: "" },
fields: [ fields: [
{ path: "label", label: "Label", required: true, help: "eg. Attend, Serve…" }, { path: "label", label: "Label", required: true, help: "eg. Attend, Serve…" },
{ path: "icon", label: "Icon", help: "Emoji" }, {
path: "icon",
label: "Icon",
widget: "select",
options: PATH_ICONS,
blankLabel: "Default: a dot",
},
{ path: "blurb", label: "Blurb", full: true }, { path: "blurb", label: "Blurb", full: true },
], ],
children: [ children: [

View file

@ -37,3 +37,18 @@ export function readableOn(color: string): string {
const onInk = (lum + 0.05) / (INK_LUM + 0.05) const onInk = (lum + 0.05) / (INK_LUM + 0.05)
return onWhite >= onInk ? '#ffffff' : '#04262e' return onWhite >= onInk ? '#ffffff' : '#04262e'
} }
/* ── The site's accents ──────────────────────────────────────────
BRAND is the teal every page uses as its accent; it's the button
token, so the admin's palette (Site settings → Colours) reaches it.
ACCENTS are the other section colours a page may give a band, all
from the same family and all readable as text on white and on the
tints (5:1 or better). Use these rather than a new hex. */
export const BRAND = 'var(--color-action)'
export const ACCENTS = {
teal: BRAND,
deep: '#004c52',
green: '#56733f',
mint: '#1b6f5e',
}

View file

@ -23,9 +23,8 @@ import PageState from '../components/PageState.tsx'
import { useAward, type Recipient } from '../lib/useContent.ts' import { useAward, type Recipient } from '../lib/useContent.ts'
import { eventHref, orgHref, personHref } from '../lib/hrefs.ts' import { eventHref, orgHref, personHref } from '../lib/hrefs.ts'
import { mediaUrl, initials } from '../lib/media.ts' import { mediaUrl, initials } from '../lib/media.ts'
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const TEAL = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
export default function AwardDetail() { export default function AwardDetail() {
@ -46,7 +45,7 @@ export default function AwardDetail() {
) )
} }
const accent = TEAL const accent = BRAND
const logo = mediaUrl(award.logo) const logo = mediaUrl(award.logo)
return ( return (
@ -67,7 +66,7 @@ export default function AwardDetail() {
<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">
{logo && ( {logo && (
<img src={logo} alt="" loading="lazy" className="h-12 w-12 object-contain" /> <img src={logo} alt="" loading="lazy" className="logo-plate h-12 w-12 object-contain" />
)} )}
{award.org && ( {award.org && (

View file

@ -18,9 +18,8 @@ import ContentBlocks from '../components/ContentBlocks.tsx'
import PeopleTiles from '../components/PeopleTiles.tsx' import PeopleTiles from '../components/PeopleTiles.tsx'
import { mediaUrl } from '../lib/media.ts' import { mediaUrl } from '../lib/media.ts'
import { postDate, useBlogPost } from '../lib/useBlog.ts' import { postDate, useBlogPost } from '../lib/useBlog.ts'
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const ACCENT = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
/* Where "back" goes: the section on the Community page. */ /* Where "back" goes: the section on the Community page. */
@ -66,7 +65,7 @@ export default function BlogPost() {
{ {
id: 'post', id: 'post',
title: 'Post', title: 'Post',
accent: ACCENT, accent: BRAND,
background: 'var(--color-surface)', background: 'var(--color-surface)',
content: ( content: (
<article className="mx-auto max-w-3xl space-y-8 px-6"> <article className="mx-auto max-w-3xl space-y-8 px-6">
@ -77,12 +76,12 @@ export default function BlogPost() {
<span <span
key={tag} key={tag}
className="rounded-full px-3 py-0.5 text-xs font-semibold" className="rounded-full px-3 py-0.5 text-xs font-semibold"
style={{ background: 'var(--color-tint)', color: accentText(ACCENT) }} style={{ background: 'var(--color-tint)', color: accentText(BRAND) }}
> >
{tag} {tag}
</span> </span>
))} ))}
<Link to={BACK.to} className="ml-auto hover:underline" style={{ color: accentText(ACCENT) }}> <Link to={BACK.to} className="ml-auto hover:underline" style={{ color: accentText(BRAND) }}>
{BACK.label} {BACK.label}
</Link> </Link>
</div> </div>
@ -91,7 +90,7 @@ export default function BlogPost() {
<img src={cover} alt={post.cover_alt ?? ""} className="aspect-video w-full rounded-2xl object-cover" /> <img src={cover} alt={post.cover_alt ?? ""} className="aspect-video w-full rounded-2xl object-cover" />
)} )}
<ContentBlocks blocks={post.blocks} accent={ACCENT} /> <ContentBlocks blocks={post.blocks} accent={BRAND} />
</article> </article>
), ),
}, },
@ -101,11 +100,11 @@ export default function BlogPost() {
sections.push({ sections.push({
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: ACCENT, accent: BRAND,
background: 'var(--color-tint)', 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={ACCENT} people={authors} /> <PeopleTiles size="md" accent={BRAND} people={authors} />
</div> </div>
), ),
}) })

View file

@ -6,6 +6,7 @@ import OrgListVertical from "./sections/OrgList-Vertical.tsx";
import OrgListCards from "./sections/OrgList-Card.tsx"; import OrgListCards from "./sections/OrgList-Card.tsx";
import CommunityBlog from "./sections/CommunityBlog.tsx"; import CommunityBlog from "./sections/CommunityBlog.tsx";
import { useCommunityBlog } from "../lib/useBlog.ts"; import { useCommunityBlog } from "../lib/useBlog.ts";
import { ACCENTS, BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/community"); const PAGE = sitePage("/community");
@ -30,7 +31,7 @@ const SECTIONS = [
title: "Local Chapters", title: "Local Chapters",
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: "#0f7183", accent: BRAND,
background: "var(--color-tint)", background: "var(--color-tint)",
Component: OrgListMap, Component: OrgListMap,
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle }, views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
@ -58,7 +59,7 @@ const SECTIONS = [
title: "Partner Organizations", title: "Partner Organizations",
blurb: blurb:
"Organizations we collaborate with across the Unity movement and beyond.", "Organizations we collaborate with across the Unity movement and beyond.",
accent: "#7a5ea8", accent: ACCENTS.mint,
background: "var(--color-tint)", background: "var(--color-tint)",
Component: OrgListCards, Component: OrgListCards,
props: { props: {
@ -77,7 +78,7 @@ export default function CommunityPage() {
id: "blog", id: "blog",
title: blog?.title || BLOG_DEFAULT_TITLE, title: blog?.title || BLOG_DEFAULT_TITLE,
blurb: blog?.blurb ?? undefined, blurb: blog?.blurb ?? undefined,
accent: "#0f7183", accent: BRAND,
background: "var(--color-surface)", background: "var(--color-surface)",
Component: CommunityBlog, Component: CommunityBlog,
}, },

View file

@ -34,9 +34,8 @@ import { mediaUrl } from '../lib/media.ts'
import { eventTypeLabel } from '../lib/eventTypes.ts' import { eventTypeLabel } from '../lib/eventTypes.ts'
import { occurrenceLabel, seriesLabel, seriesTimes, upcomingOccurrences } from '../lib/eventSeries.ts' import { occurrenceLabel, seriesLabel, seriesTimes, upcomingOccurrences } from '../lib/eventSeries.ts'
import { capitalize } from '../lib/text.ts' import { capitalize } from '../lib/text.ts'
import { accentText, readableOn } from '../lib/color.ts' import { accentText, readableOn, BRAND } from '../lib/color.ts'
const TEAL = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
/* Billing order. A role missing from here still renders, at the /* Billing order. A role missing from here still renders, at the
@ -86,7 +85,7 @@ export default function EventDetail() {
) )
} }
const accent = event.color || TEAL const accent = event.color || BRAND
const groups = peopleGroups(event.people, accent) const groups = peopleGroups(event.people, accent)
const sections: ShellSection[] = [ const sections: ShellSection[] = [

View file

@ -1,6 +1,7 @@
import PageShell from "../components/PageShell.tsx"; import PageShell from "../components/PageShell.tsx";
import { sitePage } from "../lib/site.ts"; import { sitePage } from "../lib/site.ts";
import FeedbackForm from "./sections/FeedbackForm.tsx"; import FeedbackForm from "./sections/FeedbackForm.tsx";
import { BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/feedback"); const PAGE = sitePage("/feedback");
@ -17,7 +18,6 @@ const PAGE = sitePage("/feedback");
This file only decides where it sits on the page. This file only decides where it sits on the page.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
const ACCENT = "#0f7183";
const SECTIONS = [ const SECTIONS = [
{ {
@ -25,7 +25,7 @@ const SECTIONS = [
title: "Website Feedback", title: "Website Feedback",
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: ACCENT, accent: BRAND,
background: "var(--color-tint)", 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

View file

@ -1,6 +1,7 @@
import { useEffect } from "react"; import { useEffect } from "react";
import PageShell from "../components/PageShell.tsx"; import PageShell from "../components/PageShell.tsx";
import { sitePage } from "../lib/site.ts"; import { sitePage } from "../lib/site.ts";
import { BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/give"); const PAGE = sitePage("/give");
@ -10,7 +11,6 @@ const GIVING_URL =
const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1"; const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1";
const ACCENT = "#0f7183";
function useChurchCenterModal() { function useChurchCenterModal() {
useEffect(() => { useEffect(() => {
@ -34,7 +34,7 @@ function useChurchCenterModal() {
function GivingPanel() { function GivingPanel() {
return ( return (
<div className="max-w-2xl mx-auto px-6 text-center"> <div className="max-w-2xl mx-auto px-6 text-center">
<p className="text-slate-700 leading-relaxed"> <p className="text-body leading-relaxed">
Gifts are processed securely through Church Center. The form opens Gifts are processed securely through Church Center. The form opens
right here on the page and you can give once or set up a recurring right here on the page and you can give once or set up a recurring
gift, and you don&rsquo;t need an account to do either. gift, and you don&rsquo;t need an account to do either.
@ -52,12 +52,12 @@ function GivingPanel() {
focus-visible:ring-offset-2 focus-visible:ring-offset-2
motion-reduce:transition-none motion-reduce:transition-none
" "
style={{ backgroundColor: ACCENT, "--tw-ring-color": ACCENT } as React.CSSProperties} style={{ backgroundColor: BRAND, "--tw-ring-color": BRAND } as React.CSSProperties}
> >
Give now Give
</a> </a>
<p className="mt-4 text-sm text-slate-500"> <p className="mt-4 text-sm text-muted">
If you would like to send a check, please email our Board Treasurer at treasurer@nextgenerationofunity.org to get an address. If you would like to send a check, please email our Board Treasurer at treasurer@nextgenerationofunity.org to get an address.
</p> </p>
</div> </div>
@ -74,10 +74,10 @@ export default function GivingPage() {
const sections = [ const sections = [
{ {
id: "give", id: "give",
title: "Donate to NGU", title: "Give to NGU",
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: ACCENT, accent: BRAND,
background: "var(--color-tint)", background: "var(--color-tint)",
content: <GivingPanel />, content: <GivingPanel />,
}, },

View file

@ -3,6 +3,7 @@ import { sitePage } from "../lib/site.ts";
import HistoryTimeline from "./sections/history/HistoryTimeline.tsx"; import HistoryTimeline from "./sections/history/HistoryTimeline.tsx";
import { HISTORY_DECADES } from "../data/historyDecades.ts"; import { HISTORY_DECADES } from "../data/historyDecades.ts";
import { useHistory } from "../lib/useHistory.ts"; import { useHistory } from "../lib/useHistory.ts";
import { BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/history"); const PAGE = sitePage("/history");
@ -14,7 +15,6 @@ const PAGE = sitePage("/history");
*/ */
const PROGRAM_START_YEAR = 2000; const PROGRAM_START_YEAR = 2000;
const ACCENT = "#0f7183";
const BACKGROUND = "var(--color-surface)"; const BACKGROUND = "var(--color-surface)";
export default function History() { export default function History() {
@ -27,7 +27,7 @@ export default function History() {
const wrap = (children: React.ReactNode) => ( const wrap = (children: React.ReactNode) => (
<div <div
className="max-w-6xl mx-auto px-6" className="max-w-6xl mx-auto px-6"
style={{ "--tl-accent": ACCENT, "--tl-surface": BACKGROUND } as React.CSSProperties} style={{ "--tl-accent": BRAND, "--tl-surface": BACKGROUND } as React.CSSProperties}
> >
{children} {children}
</div> </div>
@ -78,7 +78,7 @@ export default function History() {
title: "NGU Timeline", title: "NGU Timeline",
blurb: blurb:
"Open a year to see what happened.", "Open a year to see what happened.",
accent: ACCENT, accent: BRAND,
background: BACKGROUND, background: BACKGROUND,
content, content,
}, },

View file

@ -1,6 +1,8 @@
import PageShell from "../components/PageShell.tsx"; import PageShell from "../components/PageShell.tsx";
import ComingSoon from "../components/ComingSoon.tsx";
import { sitePage } from "../lib/site.ts"; import { sitePage } from "../lib/site.ts";
import PeopleTiles from "../components/PeopleTiles.tsx"; import PeopleTiles from "../components/PeopleTiles.tsx";
import { ACCENTS, BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/leadership"); const PAGE = sitePage("/leadership");
@ -10,7 +12,7 @@ const SECTIONS = [
id: "board-staff", id: "board-staff",
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: "#0f7183", accent: BRAND,
background: "var(--color-tint)", background: "var(--color-tint)",
content: ( content: (
<div className="max-w-6xl mx-auto px-6"> <div className="max-w-6xl mx-auto px-6">
@ -22,7 +24,7 @@ const SECTIONS = [
id: "retreat-team", id: "retreat-team",
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: "#4a7a2f", accent: ACCENTS.green,
background: "var(--color-surface)", background: "var(--color-surface)",
content: ( content: (
<div className="max-w-6xl mx-auto px-6"> <div className="max-w-6xl mx-auto px-6">
@ -34,26 +36,21 @@ const SECTIONS = [
id: "committees", id: "committees",
title: "Committees & Volunteers", title: "Committees & Volunteers",
blurb: "Additional roles and contributors.", blurb: "Additional roles and contributors.",
accent: "#7a5ea8", accent: ACCENTS.mint,
background: "var(--color-tint)", background: "var(--color-tint)",
content: ( content: <ComingSoon what="this list of committees and volunteers" />,
<div className="max-w-6xl mx-auto px-6">
{/* Other roles content */}
</div>
),
}, },
{ {
id: "contact", id: "contact",
title: "Contact Us", title: "Contact Us",
blurb: "Reach out to our staff", blurb: "Reach out to our staff",
accent: "#004c52", accent: ACCENTS.deep,
background: "var(--color-surface)", 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
href="mailto:info@nextgenerationofunity.org" href="mailto:info@nextgenerationofunity.org"
className="inline-block py-2.5 px-6 rounded-xl font-bold transition-all duration-200 hover:scale-105" className="inline-block py-2.5 px-6 rounded-full border border-link text-link font-bold transition-all duration-200 hover:scale-105 active:scale-[0.98]"
style={{ border: "1px solid #0f7183", color: "#0f7183" }}
> >
info@nextgenerationofunity.org info@nextgenerationofunity.org
</a> </a>

View file

@ -32,9 +32,8 @@ import {
import { orgHref, orgListHref, teamHref } from '../lib/hrefs.ts' import { orgHref, orgListHref, teamHref } from '../lib/hrefs.ts'
import { initials, mediaUrl } from '../lib/media.ts' import { initials, mediaUrl } from '../lib/media.ts'
import Logo from '../components/Logo.tsx' import Logo from '../components/Logo.tsx'
import { withAlpha, accentText, readableOn } from '../lib/color.ts' import { withAlpha, accentText, readableOn, BRAND } from '../lib/color.ts'
const TEAL = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
export default function OrganizationDetail() { export default function OrganizationDetail() {
@ -72,7 +71,7 @@ export default function OrganizationDetail() {
return <Navigate to={canonical} replace /> return <Navigate to={canonical} replace />
} }
const accent = org.color || TEAL const accent = org.color || BRAND
const back = orgListHref(org.kind) const back = orgListHref(org.kind)
const sections: any[] = [ const sections: any[] = [

View file

@ -34,9 +34,8 @@ import { awardHref, eventHref, orgHref, teamHref } from '../lib/hrefs.ts'
import { mediaUrl, initials } from '../lib/media.ts' import { mediaUrl, initials } from '../lib/media.ts'
import { eventTypeLabel } from '../lib/eventTypes.ts' import { eventTypeLabel } from '../lib/eventTypes.ts'
import { capitalize } from '../lib/text.ts' import { capitalize } from '../lib/text.ts'
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const TEAL = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
const BACKGROUNDS = ['var(--color-surface)', 'var(--color-tint)'] const BACKGROUNDS = ['var(--color-surface)', 'var(--color-tint)']
@ -68,7 +67,7 @@ export default function PersonDetail() {
) )
} }
const accent = TEAL const accent = BRAND
const current = person.roles.filter((role) => !role.ended_on) const current = person.roles.filter((role) => !role.ended_on)
const previous = person.roles.filter((role) => role.ended_on) const previous = person.roles.filter((role) => role.ended_on)

View file

@ -5,6 +5,7 @@ import PageShell from "../components/PageShell.tsx";
import { DATA_REQUEST } from "../data/feedbackTypes.ts"; import { DATA_REQUEST } from "../data/feedbackTypes.ts";
import { PRIVACY_EMAIL, sitePage } from "../lib/site.ts"; import { PRIVACY_EMAIL, sitePage } from "../lib/site.ts";
import FeedbackForm from "./sections/FeedbackForm.tsx"; import FeedbackForm from "./sections/FeedbackForm.tsx";
import { BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/privacy"); const PAGE = sitePage("/privacy");
@ -24,7 +25,6 @@ const PAGE = sitePage("/privacy");
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
const LAST_UPDATED = "September 28, 2026"; const LAST_UPDATED = "September 28, 2026";
const ACCENT = "#0f7183";
const link = "underline underline-offset-2 text-link"; const link = "underline underline-offset-2 text-link";
@ -168,7 +168,7 @@ const SECTIONS = [
id: "privacy", id: "privacy",
title: "Privacy Policy", title: "Privacy Policy",
blurb: `Last updated: ${LAST_UPDATED}`, blurb: `Last updated: ${LAST_UPDATED}`,
accent: ACCENT, accent: BRAND,
background: "var(--color-surface)", background: "var(--color-surface)",
content: <LegalText parts={PARTS} />, content: <LegalText parts={PARTS} />,
}, },
@ -176,7 +176,7 @@ const SECTIONS = [
id: "requests", id: "requests",
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: ACCENT, accent: BRAND,
background: "var(--color-tint)", background: "var(--color-tint)",
content: ( content: (
<div className="mx-auto max-w-3xl px-6"> <div className="mx-auto max-w-3xl px-6">

View file

@ -1,6 +1,7 @@
import PageShell from '../components/PageShell.tsx' import PageShell from '../components/PageShell.tsx'
import { sitePage } from '../lib/site.ts' import { sitePage } from '../lib/site.ts'
import QrCodeMaker from './sections/QrCodeMaker.tsx' import QrCodeMaker from './sections/QrCodeMaker.tsx'
import { BRAND } from '../lib/color.ts'
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage('/qr') const PAGE = sitePage('/qr')
@ -20,7 +21,7 @@ const SECTIONS = [
title: 'Make a QR code', title: 'Make a QR code',
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 centre and the colours; 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 centre and the colours; a warning shows if the code might not scan.',
accent: '#0f7183', accent: BRAND,
background: 'var(--color-tint)', background: 'var(--color-tint)',
content: ( content: (
<div className="mx-auto max-w-6xl px-6"> <div className="mx-auto max-w-6xl px-6">

View file

@ -1,5 +1,7 @@
import PageShell from "../components/PageShell.tsx"; import PageShell from "../components/PageShell.tsx";
import ComingSoon from "../components/ComingSoon.tsx";
import { sitePage } from "../lib/site.ts"; import { sitePage } from "../lib/site.ts";
import { ACCENTS, BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/resources"); const PAGE = sitePage("/resources");
@ -9,37 +11,25 @@ const SECTIONS = [
id: "unity", id: "unity",
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: "#0f7183", accent: BRAND,
background: "var(--color-tint)", background: "var(--color-tint)",
content: ( content: <ComingSoon what="our Unity teachings" />,
<div className="max-w-6xl mx-auto px-6">
{/* Unity teachings content */}
</div>
),
}, },
{ {
id: "branding", id: "branding",
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: "#4a7a2f", accent: ACCENTS.green,
background: "var(--color-surface)", background: "var(--color-surface)",
content: ( content: <ComingSoon what="our branding and marketing kit" />,
<div className="max-w-6xl mx-auto px-6">
{/* Branding & marketing content */}
</div>
),
}, },
{ {
id: "partner", id: "partner",
title: "Partner Resources", title: "Partner Resources",
blurb: "Material for the organizations we collaborate with.", blurb: "Material for the organizations we collaborate with.",
accent: "#7a5ea8", accent: ACCENTS.mint,
background: "var(--color-tint)", background: "var(--color-tint)",
content: ( content: <ComingSoon what="resources for partners" />,
<div className="max-w-6xl mx-auto px-6">
{/* Partner resources content */}
</div>
),
}, },
]; ];

View file

@ -2,6 +2,7 @@ import PageShell from "../components/PageShell.tsx";
import { sitePage } from "../lib/site.ts"; import { sitePage } from "../lib/site.ts";
import { useSectionManifest } from "../lib/sections.tsx"; import { useSectionManifest } from "../lib/sections.tsx";
import EventListCards, { EventCardsToggle } from "./sections/EventList-Cards.tsx"; import EventListCards, { EventCardsToggle } from "./sections/EventList-Cards.tsx";
import { ACCENTS, BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/retreats"); const PAGE = sitePage("/retreats");
@ -46,7 +47,7 @@ const SECTIONS = [
id: "national", id: "national",
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: "#0f7183", accent: BRAND,
background: "var(--color-tint)", background: "var(--color-tint)",
Component: EventListCards, Component: EventListCards,
props: { scope: "national", ...RETREATS }, props: { scope: "national", ...RETREATS },
@ -56,7 +57,7 @@ const SECTIONS = [
id: "regional", id: "regional",
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: "#4a7a2f", accent: ACCENTS.green,
background: "var(--color-surface)", background: "var(--color-surface)",
Component: EventListCards, Component: EventListCards,
props: { scope: "regional", ...RETREATS }, props: { scope: "regional", ...RETREATS },
@ -66,7 +67,7 @@ const SECTIONS = [
id: "partner", id: "partner",
title: "Partner Events", title: "Partner Events",
blurb: "Retreats hosted by organizations we collaborate with.", blurb: "Retreats hosted by organizations we collaborate with.",
accent: "#7a5ea8", accent: ACCENTS.mint,
background: "var(--color-tint)", background: "var(--color-tint)",
Component: EventListCards, Component: EventListCards,
props: { scope: "partner", ...RETREATS }, props: { scope: "partner", ...RETREATS },
@ -81,7 +82,7 @@ const SECTIONS = [
id: "local", id: "local",
title: "Local Events", title: "Local Events",
blurb: "Hosted by individual chapters.", blurb: "Hosted by individual chapters.",
accent: "#9a5b17", accent: ACCENTS.green,
background: "var(--color-surface)", background: "var(--color-surface)",
Component: EventListCards, Component: EventListCards,
props: { scope: "local", ...RETREATS_ONLY }, props: { scope: "local", ...RETREATS_ONLY },
@ -91,7 +92,7 @@ const SECTIONS = [
id: "international", id: "international",
title: "International Events", title: "International Events",
blurb: "Gatherings beyond the US.", blurb: "Gatherings beyond the US.",
accent: "#2f6bb5", accent: ACCENTS.deep,
background: "var(--color-tint)", background: "var(--color-tint)",
Component: EventListCards, Component: EventListCards,
props: { scope: "international", ...RETREATS_ONLY }, props: { scope: "international", ...RETREATS_ONLY },
@ -101,7 +102,7 @@ const SECTIONS = [
id: "other", id: "other",
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: "#5d6c70", accent: ACCENTS.mint,
background: "var(--color-surface)", background: "var(--color-surface)",
Component: EventListCards, Component: EventListCards,
props: { scope: "other", ...RETREATS_ONLY }, props: { scope: "other", ...RETREATS_ONLY },

View file

@ -20,9 +20,8 @@ import ContentBlocks from '../components/ContentBlocks.tsx'
import PeopleTiles from '../components/PeopleTiles.tsx' import PeopleTiles from '../components/PeopleTiles.tsx'
import { useTeam } from '../lib/useContent.ts' import { useTeam } from '../lib/useContent.ts'
import { orgHref } from '../lib/hrefs.ts' import { orgHref } from '../lib/hrefs.ts'
import { accentText } from '../lib/color.ts' import { accentText, BRAND } from '../lib/color.ts'
const TEAL = '#0f7183'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
export default function TeamDetail() { export default function TeamDetail() {
@ -43,7 +42,7 @@ export default function TeamDetail() {
) )
} }
const accent = team.color || TEAL const accent = team.color || BRAND
const hasAbout = const hasAbout =
team.description.length > 0 || team.blocks.length > 0 || team.links.length > 0 team.description.length > 0 || team.blocks.length > 0 || team.links.length > 0

View file

@ -3,6 +3,7 @@ import { Link } from "react-router-dom";
import LegalText, { type LegalPart } from "../components/LegalText.tsx"; import LegalText, { type LegalPart } from "../components/LegalText.tsx";
import PageShell from "../components/PageShell.tsx"; import PageShell from "../components/PageShell.tsx";
import { sitePage } from "../lib/site.ts"; import { sitePage } from "../lib/site.ts";
import { BRAND } from "../lib/color.ts"
/* Title and intro: site.json, which also gives the search metadata. */ /* Title and intro: site.json, which also gives the search metadata. */
const PAGE = sitePage("/terms"); const PAGE = sitePage("/terms");
@ -82,7 +83,7 @@ const SECTIONS = [
id: "terms", id: "terms",
title: "Terms of Service", title: "Terms of Service",
blurb: `Last updated: ${LAST_UPDATED}`, blurb: `Last updated: ${LAST_UPDATED}`,
accent: "#0f7183", accent: BRAND,
background: "var(--color-surface)", background: "var(--color-surface)",
content: <LegalText parts={PARTS} />, content: <LegalText parts={PARTS} />,
}, },

View file

@ -18,9 +18,8 @@ import { useCallback, useEffect, useRef, useState, type ReactNode } from "react"
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { ApiError, del, get, post } from "../../lib/api.ts"; import { ApiError, del, get, post } from "../../lib/api.ts";
import { accentText } from '../../lib/color.ts' import { accentText, BRAND } from '../../lib/color.ts'
const TEAL = "#0f7183";
const MUTED = "var(--color-muted)"; const MUTED = "var(--color-muted)";
const POLL_MS = 2000; const POLL_MS = 2000;
@ -234,7 +233,7 @@ function Editor({ source, onMade }: { source: Job; onMade: () => void }) {
<button <button
type="button" type="button"
className="text-sm underline" className="text-sm underline"
style={{ color: accentText(TEAL) }} style={{ color: accentText(BRAND) }}
onClick={() => { onClick={() => {
if (videoRef.current) videoRef.current.currentTime = value; if (videoRef.current) videoRef.current.currentTime = value;
}} }}
@ -245,7 +244,7 @@ function Editor({ source, onMade }: { source: Job; onMade: () => void }) {
</div> </div>
))} ))}
</div> </div>
<p className="text-sm" style={{ color: end > start ? MUTED : "#b3261e" }}> <p className="text-sm" style={{ color: end > start ? MUTED : "var(--color-danger)" }}>
{end > start ? `Clip length: ${clock(end - start)}` : "The start has to be before the end."} {end > start ? `Clip length: ${clock(end - start)}` : "The start has to be before the end."}
</p> </p>
@ -359,7 +358,7 @@ export default function AdminClips() {
} }
if (!data) { if (!data) {
return <p style={{ color: loadError ? "#b3261e" : MUTED }}>{loadError ?? "Loading…"}</p>; return <p style={{ color: loadError ? "var(--color-danger)" : MUTED }}>{loadError ?? "Loading…"}</p>;
} }
const missing = [!data.tools.ytdlp && "yt-dlp", !data.tools.ffmpeg && "ffmpeg"].filter(Boolean); const missing = [!data.tools.ytdlp && "yt-dlp", !data.tools.ffmpeg && "ffmpeg"].filter(Boolean);
@ -481,7 +480,7 @@ export default function AdminClips() {
</> </>
)} )}
{clip.saved_url && ( {clip.saved_url && (
<Link to="/admin/media" className="text-sm underline" style={{ color: accentText(TEAL) }}> <Link to="/admin/media" className="text-sm underline" style={{ color: accentText(BRAND) }}>
In the media library In the media library
</Link> </Link>
)} )}

View file

@ -16,6 +16,7 @@
record) wants to be a separate component that fails on its own. record) wants to be a separate component that fails on its own.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowRight, ArrowUpRight } from "@phosphor-icons/react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { useAuth } from "../../lib/auth.tsx"; import { useAuth } from "../../lib/auth.tsx";
import { SITE_VERSION } from "../../lib/version.ts"; import { SITE_VERSION } from "../../lib/version.ts";
@ -48,7 +49,7 @@ function NavCard({ item }) {
aria-hidden="true" aria-hidden="true"
className="ml-auto text-link opacity-0 transition-opacity group-hover:opacity-100" className="ml-auto text-link opacity-0 transition-opacity group-hover:opacity-100"
> >
→ <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</span> </span>
</div> </div>
@ -139,7 +140,7 @@ export default function AdminHome() {
{/* Sticky so it stays put once the card column outgrows it. */} {/* Sticky so it stays put once the card column outgrows it. */}
<aside className="divide-y divide-brand/10 rounded-2xl border border-brand/20 bg-surface lg:sticky lg:top-6"> <aside className="divide-y divide-brand/10 rounded-2xl border border-brand/20 bg-surface lg:sticky lg:top-6">
<PanelSection title="Signed in"> <PanelSection title="Signed in">
<p className="font-medium text-[#0f2f36]">{user?.name || user?.email}</p> <p className="font-medium text-ink">{user?.name || user?.email}</p>
{user?.name && user?.email && ( {user?.name && user?.email && (
<p className="mt-0.5 break-all text-xs text-muted/80">{user.email}</p> <p className="mt-0.5 break-all text-xs text-muted/80">{user.email}</p>
)} )}
@ -173,7 +174,7 @@ export default function AdminHome() {
rel="noreferrer" rel="noreferrer"
className="mt-2 inline-block underline-offset-4 transition-colors hover:text-link hover:underline" className="mt-2 inline-block underline-offset-4 transition-colors hover:text-link hover:underline"
> >
View the public site ↗ View the public site <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</a> </a>
</PanelSection> </PanelSection>
</aside> </aside>

View file

@ -36,7 +36,7 @@ const GOOGLE_ERRORS: Record<string, string> = {
}; };
const fieldClass = const fieldClass =
"w-full rounded-xl border border-muted/25 bg-surface px-4 py-3 text-body " + "w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
"outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25"; "outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25";
export default function AdminLogin() { export default function AdminLogin() {

View file

@ -68,7 +68,7 @@ function Stat({ label, value }) {
<div className="text-xs font-medium uppercase tracking-wider text-muted/70"> <div className="text-xs font-medium uppercase tracking-wider text-muted/70">
{label} {label}
</div> </div>
<div className="mt-1 break-words text-sm font-medium text-[#0f2f36]">{value}</div> <div className="mt-1 break-words text-sm font-medium text-ink">{value}</div>
</div> </div>
); );
} }
@ -198,7 +198,7 @@ export default function AdminPanel() {
className="rounded-full border border-brand/20 bg-surface px-3 py-1 text-sm text-muted" className="rounded-full border border-brand/20 bg-surface px-3 py-1 text-sm text-muted"
> >
{row.label}{" "} {row.label}{" "}
<strong className="font-semibold text-[#0f2f36]"> <strong className="font-semibold text-ink">
{row.count ?? "-"} {row.count ?? "-"}
</strong> </strong>
</span> </span>
@ -232,7 +232,7 @@ export default function AdminPanel() {
return ( return (
<tr key={row.id} className={row.is_active ? "" : "bg-tint-soft"}> <tr key={row.id} className={row.is_active ? "" : "bg-tint-soft"}>
<td className="px-4 py-3"> <td className="px-4 py-3">
<div className="font-medium text-[#0f2f36]"> <div className="font-medium text-ink">
{row.name || row.email} {row.name || row.email}
{isMe && ( {isMe && (
<span className="ml-2 text-xs font-normal text-muted/70"> <span className="ml-2 text-xs font-normal text-muted/70">
@ -255,7 +255,7 @@ export default function AdminPanel() {
value={row.role} value={row.role}
disabled={locked || busy} disabled={locked || busy}
onChange={(e) => changeRole(row, e.target.value)} onChange={(e) => changeRole(row, e.target.value)}
className="rounded-lg border border-brand/30 bg-surface px-2 py-1 text-sm text-[#0f2f36] disabled:cursor-not-allowed disabled:bg-tint-soft disabled:text-muted/60" className="rounded-lg border border-brand/30 bg-surface px-2 py-1 text-sm text-ink disabled:cursor-not-allowed disabled:bg-tint-soft disabled:text-muted/60"
title={ title={
isMe isMe
? "You can't change your own role." ? "You can't change your own role."
@ -314,7 +314,7 @@ export default function AdminPanel() {
<dl className="mt-4 grid gap-x-6 gap-y-1.5 text-sm sm:grid-cols-2"> <dl className="mt-4 grid gap-x-6 gap-y-1.5 text-sm sm:grid-cols-2">
{ROLES.map((role) => ( {ROLES.map((role) => (
<div key={role} className="flex gap-2"> <div key={role} className="flex gap-2">
<dt className="shrink-0 font-medium text-[#0f2f36]"> <dt className="shrink-0 font-medium text-ink">
{ROLE_LABELS[role]} {ROLE_LABELS[role]}
</dt> </dt>
<dd className="text-muted">{ROLE_NOTES[role]}</dd> <dd className="text-muted">{ROLE_NOTES[role]}</dd>

View file

@ -46,6 +46,7 @@
why the array form exists and teams uses it. why the array form exists and teams uses it.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowLeft } from "@phosphor-icons/react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useNavigate, useParams } from "react-router-dom"; import { useNavigate, useParams } from "react-router-dom";
@ -358,7 +359,7 @@ export default function EntityEdit() {
onClick={() => leave(`/admin/${manifest.key}`)} onClick={() => leave(`/admin/${manifest.key}`)}
className="text-sm text-muted hover:text-link" className="text-sm text-muted hover:text-link"
> >
← {manifest.label} <ArrowLeft size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" /> {manifest.label}
</button> </button>
)} )}
@ -470,7 +471,7 @@ export default function EntityEdit() {
</div> </div>
{/* Sticky action bar */} {/* Sticky action bar */}
<div className="fixed inset-x-0 bottom-0 border-t border-brand/20 bg-white/95 backdrop-blur"> <div className="fixed inset-x-0 bottom-0 border-t border-brand/20 bg-surface/95 backdrop-blur">
<div className="mx-auto flex max-w-5xl flex-wrap items-center gap-4 px-6 py-3"> <div className="mx-auto flex max-w-5xl flex-wrap items-center gap-4 px-6 py-3">
{canWrite ? ( {canWrite ? (
<> <>

View file

@ -24,7 +24,7 @@ import { mediaUrl } from '../../lib/media.ts'
import { preview } from '../../lib/text.ts' import { preview } from '../../lib/text.ts'
import { postDate, useCommunityBlog, type BlogPostSummary } from '../../lib/useBlog.ts' import { postDate, useCommunityBlog, type BlogPostSummary } from '../../lib/useBlog.ts'
import HomeLink from './home/HomeLink.tsx' import HomeLink from './home/HomeLink.tsx'
import { accentText } from '../../lib/color.ts' import { accentText, BRAND } from '../../lib/color.ts'
import { useSmallImage } from '../../lib/useSmallImage.ts' import { useSmallImage } from '../../lib/useSmallImage.ts'
/* Headings for a half the admin didn't title. */ /* Headings for a half the admin didn't title. */
@ -50,7 +50,7 @@ function PostCard({ post, accent }: { post: BlogPostSummary; accent: string }) {
)} )}
<div className="flex flex-1 flex-col p-6"> <div className="flex flex-1 flex-col p-6">
{(date || post.tags.length > 0) && ( {(date || post.tags.length > 0) && (
<p className="text-xs font-bold uppercase tracking-[0.2em]" style={{ color: accentText(accent) }}> <p className="text-sm font-semibold" style={{ color: accentText(accent) }}>
{[date, ...post.tags].filter(Boolean).join(' · ')} {[date, ...post.tags].filter(Boolean).join(' · ')}
</p> </p>
)} )}
@ -79,7 +79,7 @@ function Subheading({ children, accent }: { children: string; accent: string })
) )
} }
export default function CommunityBlog({ accent = '#0f7183' }: { accent?: string }) { export default function CommunityBlog({ accent = BRAND }: { accent?: string }) {
const { data: blog, loading, error, reload } = useCommunityBlog() const { data: blog, loading, error, reload } = useCommunityBlog()
if (!blog) { if (!blog) {
@ -112,7 +112,7 @@ export default function CommunityBlog({ accent = '#0f7183' }: { accent?: string
{hasInternal && ( {hasInternal && (
<div> <div>
<Subheading accent={accent}>{internal.title || DEFAULTS.internal}</Subheading> <Subheading accent={accent}>{internal.title || DEFAULTS.internal}</Subheading>
<ul className="mt-6 grid gap-6 sm:grid-cols-2 lg:grid-cols-3"> <ul className="mt-6 grid gap-6 sm:grid-cols-2 lg:grid-cols-3 lg:[&>li:first-child]:col-span-2">
{internal.posts.map((post) => ( {internal.posts.map((post) => (
<PostCard key={post.id} post={post} accent={accent} /> <PostCard key={post.id} post={post} accent={accent} />
))} ))}

View file

@ -39,7 +39,8 @@
just has one answer on a phone. just has one answer on a phone.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { useMemo, useState } from 'react' import { ArrowRight, ArrowLeft, CaretRight, CaretLeft } from '@phosphor-icons/react'
import { useMemo, useState, type ReactNode } from 'react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import { typesPresent, useEvents } from '../../lib/eventData.ts' import { typesPresent, useEvents } from '../../lib/eventData.ts'
@ -47,7 +48,7 @@ import { EVENT_TYPES, eventTypeLabel, type EventType } from '../../lib/eventType
import { firstOccurrenceFrom, occurrencesBetween, seriesTimes } from '../../lib/eventSeries.ts' import { firstOccurrenceFrom, occurrencesBetween, seriesTimes } from '../../lib/eventSeries.ts'
import { eventHref } from '../../lib/hrefs.ts' import { eventHref } from '../../lib/hrefs.ts'
import type { EventListItem } from '../../lib/useContent.ts' import type { EventListItem } from '../../lib/useContent.ts'
import { withAlpha, accentText, readableOn } from '../../lib/color.ts' import { withAlpha, accentText, readableOn, BRAND } from '../../lib/color.ts'
export type CalendarControl = 'scope' | 'type' | 'online' | 'search' export type CalendarControl = 'scope' | 'type' | 'online' | 'search'
export type CalendarView = 'month' | 'list' export type CalendarView = 'month' | 'list'
@ -57,7 +58,6 @@ const ALL_CONTROLS: CalendarControl[] = ['scope', 'type', 'online', 'search']
/* Bar rows drawn per week before a day collapses to "+N more". */ /* Bar rows drawn per week before a day collapses to "+N more". */
const MAX_LANES = 3 const MAX_LANES = 3
const TEAL = '#0f7183'
const INK = 'var(--color-ink)' const INK = 'var(--color-ink)'
const BODY = 'var(--color-muted)' const BODY = 'var(--color-muted)'
@ -228,7 +228,7 @@ export default function EventCalendar({
host, host,
status, status,
type, type,
accent = TEAL, accent = BRAND,
controls = ALL_CONTROLS, controls = ALL_CONTROLS,
defaultView = 'month', defaultView = 'month',
}: EventCalendarProps) { }: EventCalendarProps) {
@ -312,10 +312,10 @@ export default function EventCalendar({
<div className="flex flex-wrap items-center gap-3"> <div className="flex flex-wrap items-center gap-3">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<NavButton label="Previous month" onClick={() => go(shiftMonth(month, -1))} accent={accent}> <NavButton label="Previous month" onClick={() => go(shiftMonth(month, -1))} accent={accent}>
‹ <CaretLeft size={20} weight="bold" aria-hidden="true" />
</NavButton> </NavButton>
<NavButton label="Next month" onClick={() => go(shiftMonth(month, 1))} accent={accent}> <NavButton label="Next month" onClick={() => go(shiftMonth(month, 1))} accent={accent}>
› <CaretRight size={20} weight="bold" aria-hidden="true" />
</NavButton> </NavButton>
</div> </div>
@ -381,7 +381,7 @@ export default function EventCalendar({
/> />
)} )}
{show('online') && ( {show('online') && (
<label className="flex cursor-pointer items-center gap-2 rounded-full border border-brand/25 bg-surface px-4 py-2 text-sm"> <label className="flex cursor-pointer items-center gap-2 rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm">
<input <input
type="checkbox" type="checkbox"
checked={onlineOnly} checked={onlineOnly}
@ -399,7 +399,7 @@ export default function EventCalendar({
onChange={(e) => setQuery(e.target.value)} onChange={(e) => setQuery(e.target.value)}
placeholder="Search events" placeholder="Search events"
aria-label="Search events" aria-label="Search events"
className="min-w-[12rem] flex-1 rounded-full border border-brand/25 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40 md:max-w-xs" className="min-w-[12rem] flex-1 rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40 md:max-w-xs"
/> />
)} )}
{filtering && ( {filtering && (
@ -422,7 +422,7 @@ export default function EventCalendar({
Couldn’t load events. {error.message} Couldn’t load events. {error.message}
</p> </p>
) : loading ? ( ) : loading ? (
<div className="h-[32rem] animate-pulse rounded-3xl bg-white/70" aria-hidden="true" /> <div className="h-[32rem] animate-pulse rounded-3xl bg-tint" aria-hidden="true" />
) : ( ) : (
<> <>
{view === 'month' && ( {view === 'month' && (
@ -460,7 +460,7 @@ export default function EventCalendar({
className="font-semibold hover:underline" className="font-semibold hover:underline"
style={{ color: accentText(accent) }} style={{ color: accentText(accent) }}
> >
Jump to the next event, {monthTitle(monthKey(next))} → Jump to the next event, {monthTitle(monthKey(next))} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</button> </button>
) : filtering ? ( ) : filtering ? (
'Nothing matches these filters.' 'Nothing matches these filters.'
@ -593,14 +593,14 @@ function Bar({ seg, accent }: { seg: Segment; accent: string }) {
background: color, background: color,
}} }}
> >
{seg.continuesBefore && <span aria-hidden="true">←</span>} {seg.continuesBefore && <ArrowLeft size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />}
<span className="truncate"> <span className="truncate">
{seg.time && seg.span === 1 && <span className="font-normal opacity-85">{seg.time.split(' – ')[0]} </span>} {seg.time && seg.span === 1 && <span className="font-normal opacity-85">{seg.time.split(' – ')[0]} </span>}
{seg.event.title} {seg.event.title}
</span> </span>
{seg.continuesAfter && ( {seg.continuesAfter && (
<span className="ml-auto" aria-hidden="true"> <span className="ml-auto" aria-hidden="true">
→ <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</span> </span>
)} )}
</Link> </Link>
@ -749,7 +749,7 @@ function NavButton({
label: string label: string
onClick: () => void onClick: () => void
accent: string accent: string
children: string children: ReactNode
}) { }) {
return ( return (
<button <button
@ -782,7 +782,7 @@ function FilterSelect({
value={value} value={value}
onChange={(e) => onChange(e.target.value)} onChange={(e) => onChange(e.target.value)}
aria-label={label} aria-label={label}
className="rounded-full border border-brand/25 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40" className="rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40"
> >
<option value="">{all}</option> <option value="">{all}</option>
{options.map(([id, name]) => ( {options.map(([id, name]) => (

View file

@ -1,3 +1,4 @@
import { CaretDown, CaretRight, CaretLeft, Cards, SquaresFour } from '@phosphor-icons/react';
import { useEffect, useMemo, useRef, useState } from "react"; import { useEffect, useMemo, useRef, useState } from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { splitByStatus, typesPresent, useEvents } from "../../lib/eventData.ts"; import { splitByStatus, typesPresent, useEvents } from "../../lib/eventData.ts";
@ -7,7 +8,7 @@ import { seriesLabel } from "../../lib/eventSeries.ts";
import PlatformIcon from "../../components/PlatformIcon.tsx"; import PlatformIcon from "../../components/PlatformIcon.tsx";
import { mediaUrl } from "../../lib/media.ts"; import { mediaUrl } from "../../lib/media.ts";
import Logo from "../../components/Logo.tsx"; import Logo from "../../components/Logo.tsx";
import { accentText, withAlpha, readableOn } from '../../lib/color.ts' import { accentText, withAlpha, readableOn, BRAND } from '../../lib/color.ts'
/* ═══════════════════════════════════════════════════════════════ /* ═══════════════════════════════════════════════════════════════
EVENT LIST: CARDS EVENT LIST: CARDS
@ -35,7 +36,6 @@ import { accentText, withAlpha, readableOn } from '../../lib/color.ts'
fires only for an event with no host at all. */ fires only for an event with no host at all. */
const DEFAULT_ORG_LOGO = null; const DEFAULT_ORG_LOGO = null;
const TEAL = "#0f7183"; // last-resort card color
const INK = "var(--color-ink)"; // button text: the card colour is only a border const INK = "var(--color-ink)"; // button text: the card colour is only a border
const CARD_BG = "var(--color-surface)"; // sits under every card, photo or not const CARD_BG = "var(--color-surface)"; // sits under every card, photo or not
@ -131,8 +131,8 @@ function TitleLink({ ev, linked, children }) {
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
export function Card({ export function Card({
ev, ev,
defaultColor = TEAL, defaultColor = BRAND,
accent = TEAL, accent = BRAND,
compact = false, compact = false,
interactive = true, interactive = true,
linked = true, linked = true,
@ -397,10 +397,7 @@ export function EventCardsToggle({ view, setView, accent }) {
className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200" className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200"
style={btn(view === "carousel")} style={btn(view === "carousel")}
> >
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"> <Cards className="h-4 w-4" weight="bold" aria-hidden="true" />
<rect x="7" y="5" width="10" height="14" rx="2" />
<path d="M3.5 8v8M20.5 8v8" />
</svg>
Carousel Carousel
</button> </button>
<button <button
@ -409,12 +406,7 @@ export function EventCardsToggle({ view, setView, accent }) {
className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200" className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200"
style={btn(view === "grid")} style={btn(view === "grid")}
> >
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"> <SquaresFour className="h-4 w-4" weight="bold" aria-hidden="true" />
<rect x="3" y="3" width="7" height="7" rx="1.5" />
<rect x="14" y="3" width="7" height="7" rx="1.5" />
<rect x="3" y="14" width="7" height="7" rx="1.5" />
<rect x="14" y="14" width="7" height="7" rx="1.5" />
</svg>
Grid Grid
</button> </button>
</div> </div>
@ -437,7 +429,7 @@ export default function EventListCards({
status, status,
type, type,
view = "carousel", view = "carousel",
accent = TEAL, accent = BRAND,
defaultColor, defaultColor,
empty = "· Events coming soon, stay connected for announcements ·", empty = "· Events coming soon, stay connected for announcements ·",
}: any) { }: any) {
@ -630,19 +622,7 @@ export default function EventListCards({
{showPast {showPast
? "Hide past events" ? "Hide past events"
: `See past events (${pastEvents.length})`} : `See past events (${pastEvents.length})`}
<svg <CaretDown className="h-4 w-4 transition-transform duration-300" style={{ transform: showPast ? "rotate(180deg)" : "none" }} weight="bold" aria-hidden="true" />
viewBox="0 0 24 24"
className="h-4 w-4 transition-transform duration-300"
style={{ transform: showPast ? "rotate(180deg)" : "none" }}
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
>
<path d="M6 9l6 6-6 6" />
</svg>
</button> </button>
</div> </div>
</div> </div>
@ -696,7 +676,7 @@ export default function EventListCards({
className="absolute left-2 md:left-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100" className="absolute left-2 md:left-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
style={arrowStyle(index > 0)} style={arrowStyle(index > 0)}
> >
‹ <CaretLeft size={20} weight="bold" aria-hidden="true" />
</button> </button>
<button <button
onClick={next} onClick={next}
@ -705,7 +685,7 @@ export default function EventListCards({
className="absolute right-2 md:right-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100" className="absolute right-2 md:right-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
style={arrowStyle(index < events.length - 1)} style={arrowStyle(index < events.length - 1)}
> >
› <CaretRight size={20} weight="bold" aria-hidden="true" />
</button> </button>
</> </>
)} )}

View file

@ -15,13 +15,13 @@
need an email, since the answer has to go somewhere. need an email, since the answer has to go somewhere.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { CaretDown } from '@phosphor-icons/react';
import { useState } from "react"; import { useState } from "react";
import { post, ApiError } from "../../lib/api.ts"; import { post, ApiError } from "../../lib/api.ts";
import { PAGE_LINKS, PAGE_SECTIONS } from "../../navConfig.ts"; import { PAGE_LINKS, PAGE_SECTIONS } from "../../navConfig.ts";
import { DATA_REQUEST, FEEDBACK_TYPES } from "../../data/feedbackTypes.ts"; import { DATA_REQUEST, FEEDBACK_TYPES } from "../../data/feedbackTypes.ts";
import { accentText } from '../../lib/color.ts' import { accentText, BRAND } from '../../lib/color.ts'
const ACCENT = "#0f7183";
const MUTED = "var(--color-muted)"; const MUTED = "var(--color-muted)";
const MAX_CHARS = 1500; const MAX_CHARS = 1500;
const MIN_MESSAGE = 10; // matches the server const MIN_MESSAGE = 10; // matches the server
@ -35,8 +35,8 @@ const WHOLE_PAGE = "";
/* ── Shared field chrome ─────────────────────────────────────── */ /* ── Shared field chrome ─────────────────────────────────────── */
const fieldClass = const fieldClass =
"w-full rounded-xl border border-muted/25 bg-surface px-4 py-3 text-body " + "w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
"placeholder:text-muted/50 outline-none transition-colors " + "placeholder:text-muted outline-none transition-colors " +
"focus:border-brand focus:ring-2 focus:ring-brand/25"; "focus:border-brand focus:ring-2 focus:ring-brand/25";
const errorFieldClass = "border-danger focus:border-danger focus:ring-danger/20"; const errorFieldClass = "border-danger focus:border-danger focus:ring-danger/20";
@ -76,21 +76,7 @@ function Select({ id, label, value, onChange, children }) {
> >
{children} {children}
</select> </select>
<svg <CaretDown aria-hidden="true" weight="bold" className="pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2" style={{ color: MUTED }} />
aria-hidden="true"
viewBox="0 0 20 20"
fill="none"
className="pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2"
style={{ color: MUTED }}
>
<path
d="M5 8l5 5 5-5"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</div> </div>
</div> </div>
); );
@ -297,7 +283,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
aria-live="polite" aria-live="polite"
className="rounded-2xl border border-brand/20 bg-surface p-8 sm:p-10" className="rounded-2xl border border-brand/20 bg-surface p-8 sm:p-10"
> >
<h3 className="text-2xl font-bold" style={{ color: accentText(ACCENT) }}> <h3 className="text-2xl font-bold" style={{ color: accentText(BRAND) }}>
Thanks, we've got it Thanks, we've got it
</h3> </h3>
{where && ( {where && (

View file

@ -1,3 +1,4 @@
import { ArrowUpRight } from '@phosphor-icons/react';
import ArrowLink from "../../components/ArrowLink.tsx"; import ArrowLink from "../../components/ArrowLink.tsx";
import { mediaUrl } from "../../lib/media.ts"; import { mediaUrl } from "../../lib/media.ts";
import Logo from "../../components/Logo.tsx"; import Logo from "../../components/Logo.tsx";
@ -112,7 +113,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
className="py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105" className="py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${color}`, color }} style={{ border: `1px solid ${color}`, color }}
> >
{siteLabel} ↗ {siteLabel} <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</a> </a>
)} )}
@ -171,7 +172,7 @@ export default function OrgListCards({
pageLabel = "Learn more", pageLabel = "Learn more",
siteLabel = "Visit site", siteLabel = "Visit site",
sort = byName, sort = byName,
empty = "· Nothing to show here just yet ·", empty = "Nothing to show here yet.",
}) { }) {
const { organizations, loading, error } = useOrganizations(kind); const { organizations, loading, error } = useOrganizations(kind);

View file

@ -1,3 +1,4 @@
import { CaretRight, X } from '@phosphor-icons/react';
import { useEffect, useRef, useState } from "react"; import { useEffect, useRef, useState } from "react";
import { useCommunity } from "../../lib/chapters.ts"; import { useCommunity } from "../../lib/chapters.ts";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
@ -526,17 +527,7 @@ function ChapterCard({ chapter, color, open, onOpen }) {
transform: open ? "rotate(90deg)" : "none", transform: open ? "rotate(90deg)" : "none",
}} }}
> >
<svg <CaretRight className="h-4 w-4" weight="bold" aria-hidden="true" />
viewBox="0 0 24 24"
className="h-4 w-4"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M9 6l6 6-6 6" />
</svg>
</button> </button>
{orgPath(chapter) && ( {orgPath(chapter) && (
@ -587,7 +578,7 @@ function ChapterDetail({ chapter, region, onClose }) {
className="shrink-0 h-8 w-8 rounded-full flex items-center justify-center text-lg font-bold transition-transform duration-200 hover:scale-110" className="shrink-0 h-8 w-8 rounded-full flex items-center justify-center text-lg font-bold transition-transform duration-200 hover:scale-110"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }} style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
> >
× <X size={20} weight="bold" aria-hidden="true" />
</button> </button>
</div> </div>

View file

@ -1,3 +1,4 @@
import { ArrowUpRight, CaretRight } from '@phosphor-icons/react';
import { useId, useState } from "react"; import { useId, useState } from "react";
import ArrowLink from "../../components/ArrowLink.tsx"; import ArrowLink from "../../components/ArrowLink.tsx";
import { mediaUrl } from "../../lib/media.ts"; import { mediaUrl } from "../../lib/media.ts";
@ -108,19 +109,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
aria-controls={panelId} aria-controls={panelId}
className="flex-1 min-w-0 flex items-center gap-3 text-left py-1" className="flex-1 min-w-0 flex items-center gap-3 text-left py-1"
> >
<svg <CaretRight className="ol-chevron h-4 w-4 shrink-0" style={{ color, transform: open ? "rotate(90deg)" : "none" }} weight="bold" aria-hidden="true" />
viewBox="0 0 24 24"
className="ol-chevron h-4 w-4 shrink-0"
style={{ color, transform: open ? "rotate(90deg)" : "none" }}
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
>
<path d="M9 6l6 6-6 6" />
</svg>
<OrgMark org={org} color={color} /> <OrgMark org={org} color={color} />
@ -155,7 +144,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
rel="noopener noreferrer" rel="noopener noreferrer"
color={color} color={color}
> >
{siteLabel} ↗ {siteLabel} <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</RowButton> </RowButton>
)} )}
@ -256,7 +245,7 @@ export default function OrgListVertical({
pageLabel = "Region page", pageLabel = "Region page",
siteLabel = "Visit site", siteLabel = "Visit site",
sort = byName, sort = byName,
empty = "· Nothing to show here just yet ·", empty = "Nothing to show here yet.",
}) { }) {
const { organizations, loading, error } = useOrganizations(kind); const { organizations, loading, error } = useOrganizations(kind);

View file

@ -38,9 +38,8 @@ import { NAV_ACTIONS, PAGE_LINKS, PAGE_SECTIONS } from '../../navConfig.ts'
import { awardHref, blogHref, eventHref, orgHref, personHref, teamHref } from '../../lib/hrefs.ts' import { awardHref, blogHref, eventHref, orgHref, personHref, teamHref } from '../../lib/hrefs.ts'
import { siteUrl } from '../../lib/site.ts' import { siteUrl } from '../../lib/site.ts'
import { useDirectory, type Directory } from '../../lib/useContent.ts' import { useDirectory, type Directory } from '../../lib/useContent.ts'
import { accentText } from '../../lib/color.ts' import { accentText, BRAND } from '../../lib/color.ts'
const TEAL = '#0f7183'
const MUTED = 'var(--color-muted)' const MUTED = 'var(--color-muted)'
/* PNG download size in pixels. Plenty for print at a few inches; /* PNG download size in pixels. Plenty for print at a few inches;
@ -329,7 +328,7 @@ export default function QrCodeMaker() {
placeholder="https://… or /retreats" placeholder="https://… or /retreats"
className={`mt-2 ${inputClass}`} className={`mt-2 ${inputClass}`}
/> />
<p className="mt-1 text-sm" style={{ color: custom.trim() && !typed ? '#b3261e' : MUTED }}> <p className="mt-1 text-sm" style={{ color: custom.trim() && !typed ? 'var(--color-danger)' : MUTED }}>
{custom.trim() && !typed {custom.trim() && !typed
? 'That isn’t a web address. Use https://…, a domain, or a site path like /retreats.' ? 'That isn’t a web address. Use https://…, a domain, or a site path like /retreats.'
: 'A full address, a domain (example.org), or a path on this site (/retreats).'} : 'A full address, a domain (example.org), or a path on this site (/retreats).'}
@ -407,7 +406,7 @@ export default function QrCodeMaker() {
setDoveColor(QR_DOVE) setDoveColor(QR_DOVE)
}} }}
className="pb-2 text-sm underline" className="pb-2 text-sm underline"
style={{ color: accentText(TEAL) }} style={{ color: accentText(BRAND) }}
> >
Reset colours Reset colours
</button> </button>
@ -431,7 +430,7 @@ export default function QrCodeMaker() {
type="button" type="button"
onClick={copy} onClick={copy}
className="rounded-full border px-4 py-2 text-sm font-semibold transition-colors hover:bg-brand/10" className="rounded-full border px-4 py-2 text-sm font-semibold transition-colors hover:bg-brand/10"
style={{ borderColor: TEAL, color: accentText(TEAL) }} style={{ borderColor: BRAND, color: accentText(BRAND) }}
> >
{copied ? 'Copied ✓' : 'Copy link'} {copied ? 'Copied ✓' : 'Copy link'}
</button> </button>
@ -488,7 +487,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
} }
const inputClass = const inputClass =
'w-full rounded-xl border border-muted/25 bg-surface px-4 py-3 text-body ' + 'w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body ' +
'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25' 'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25'
/* A colour well with its hex beside it, both editable. */ /* A colour well with its hex beside it, both editable. */
@ -526,7 +525,7 @@ function ColourInput({
setText(e.target.value) setText(e.target.value)
if (/^#[0-9a-f]{6}$/i.test(e.target.value)) onChange(e.target.value.toLowerCase()) if (/^#[0-9a-f]{6}$/i.test(e.target.value)) onChange(e.target.value.toLowerCase())
}} }}
className="w-24 rounded-lg border border-muted/25 bg-surface px-2 py-1.5 font-mono text-sm text-body outline-none focus:border-brand" className="w-24 rounded-lg border border-muted/50 bg-surface px-2 py-1.5 font-mono text-sm text-body outline-none focus:border-brand"
/> />
</div> </div>
</div> </div>
@ -534,7 +533,7 @@ function ColourInput({
} }
const selectClass = const selectClass =
'w-full appearance-none rounded-xl border border-muted/25 bg-surface px-4 py-3 pr-10 text-body ' + 'w-full appearance-none rounded-xl border border-muted/50 bg-surface px-4 py-3 pr-10 text-body ' +
'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25' 'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25'
function Select({ function Select({

View file

@ -19,6 +19,7 @@
Nothing featured, and the section doesn't render at all. Nothing featured, and the section doesn't render at all.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowRight, CaretRight, CaretLeft } from '@phosphor-icons/react';
import { useRef, useState, type PointerEvent as ReactPointerEvent } from 'react' import { useRef, useState, type PointerEvent as ReactPointerEvent } from 'react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
@ -26,10 +27,9 @@ import HomeLink from './HomeLink.tsx'
import { useHistory } from '../../../lib/useHistory.ts' import { useHistory } from '../../../lib/useHistory.ts'
import { hrefFor, logoSrc } from '../../../lib/timelineRefs.ts' import { hrefFor, logoSrc } from '../../../lib/timelineRefs.ts'
import { MONTH_LABELS, type TimelineItem } from '../../../lib/timeline.ts' import { MONTH_LABELS, type TimelineItem } from '../../../lib/timeline.ts'
import { accentText } from '../../../lib/color.ts' import { accentText, BRAND } from '../../../lib/color.ts'
import { scrollBehavior } from '../../../lib/motion.ts'; import { scrollBehavior } from '../../../lib/motion.ts';
const TEAL = '#0f7183'
const DRAG_SLOP = 6 const DRAG_SLOP = 6
type RailProps = { id: string; title: string; blurb?: string | null } type RailProps = { id: string; title: string; blurb?: string | null }
@ -76,7 +76,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
} }
return ( return (
<section id={id} className="overflow-hidden py-24" style={{ background: '#f4faf7' }}> <section id={id} className="overflow-hidden py-24" style={{ background: 'var(--color-tint-soft)' }}>
<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-extrabold text-ink md:text-5xl"> <h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
@ -88,16 +88,16 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
{featured.length > 1 && ( {featured.length > 1 && (
<div className="ml-auto flex gap-2"> <div className="ml-auto flex gap-2">
{[ {[
[-1, '‹', 'Earlier'], [-1, <CaretLeft size={22} weight="bold" aria-hidden="true" />, 'Earlier'],
[1, '›', 'Later'], [1, <CaretRight size={22} weight="bold" aria-hidden="true" />, 'Later'],
].map(([direction, glyph, label]) => ( ].map(([direction, glyph, label]) => (
<button <button
key={label} key={label as string}
type="button" type="button"
onClick={() => step(direction as number)} onClick={() => step(direction as number)}
aria-label={label as string} aria-label={label as string}
className="flex h-12 w-12 items-center justify-center rounded-full border text-2xl transition-colors hover:bg-surface" className="flex h-12 w-12 items-center justify-center rounded-full border text-2xl transition-colors hover:bg-surface"
style={{ borderColor: TEAL, color: accentText(TEAL) }} style={{ borderColor: BRAND, color: accentText(BRAND) }}
> >
{glyph} {glyph}
</button> </button>
@ -116,7 +116,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
) : loading ? ( ) : loading ? (
<div className="mx-auto mt-12 flex max-w-6xl gap-6 px-6" aria-hidden="true"> <div className="mx-auto mt-12 flex max-w-6xl gap-6 px-6" aria-hidden="true">
{[0, 1, 2].map((i) => ( {[0, 1, 2].map((i) => (
<div key={i} className="h-72 w-80 shrink-0 animate-pulse rounded-3xl bg-surface" /> <div key={i} className="h-72 w-80 shrink-0 animate-pulse rounded-3xl bg-tint" />
))} ))}
</div> </div>
) : ( ) : (
@ -156,11 +156,11 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
to="/history" to="/history"
draggable={false} draggable={false}
className="flex flex-1 flex-col justify-center rounded-3xl p-8 text-white transition-transform duration-300 hover:-translate-y-1" className="flex flex-1 flex-col justify-center rounded-3xl p-8 text-white transition-transform duration-300 hover:-translate-y-1"
style={{ background: TEAL }} style={{ background: BRAND }}
> >
<span className="font-display text-2xl font-extrabold">The whole story</span> <span className="font-display text-2xl font-extrabold">The whole story</span>
<span className="mt-2 text-white/75">Every year, every milestone.</span> <span className="mt-2 text-white/75">Every year, every milestone.</span>
<span className="mt-6 font-semibold">See the full history →</span> <span className="mt-6 font-semibold">See the full history <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" /></span>
</Link> </Link>
</div> </div>
</li> </li>
@ -194,10 +194,10 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
alt="" alt=""
loading="lazy" loading="lazy"
draggable={false} draggable={false}
className="mb-5 h-14 w-14 object-contain" className="logo-plate mb-5 h-14 w-14 object-contain"
/> />
)} )}
<p className="text-xs font-bold uppercase tracking-[0.2em]" style={{ color: accentText(TEAL) }}> <p className="text-sm font-semibold" style={{ color: accentText(BRAND) }}>
{dateLabel(item)} {dateLabel(item)}
</p> </p>
<p className="mt-2 font-display text-xl font-bold leading-snug text-ink"> <p className="mt-2 font-display text-xl font-bold leading-snug text-ink">
@ -208,8 +208,8 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
<p className="mt-3 line-clamp-4 text-sm leading-relaxed text-muted">{item.blurb}</p> <p className="mt-3 line-clamp-4 text-sm leading-relaxed text-muted">{item.blurb}</p>
)} )}
{href && ( {href && (
<span className="mt-auto pt-5 text-sm font-semibold" style={{ color: accentText(TEAL) }}> <span className="mt-auto pt-5 text-sm font-semibold" style={{ color: accentText(BRAND) }}>
Read more → Read more <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</span> </span>
)} )}
</> </>
@ -225,12 +225,12 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
<div className="absolute inset-x-[-1.5rem] top-1/2 h-px bg-brand/30" /> <div className="absolute inset-x-[-1.5rem] top-1/2 h-px bg-brand/30" />
<span <span
className="absolute left-0 top-1/2 h-3 w-3 -translate-y-1/2 rounded-full border-2 bg-surface" className="absolute left-0 top-1/2 h-3 w-3 -translate-y-1/2 rounded-full border-2 bg-surface"
style={{ borderColor: TEAL }} style={{ borderColor: BRAND }}
/> />
{showYear && ( {showYear && (
<span <span
className="absolute left-5 top-1/2 -translate-y-1/2 rounded-full px-3 py-0.5 font-display text-sm font-bold text-white" className="absolute left-5 top-1/2 -translate-y-1/2 rounded-full px-3 py-0.5 font-display text-sm font-bold text-white"
style={{ background: TEAL }} style={{ background: BRAND }}
> >
{year(item)} {year(item)}
</span> </span>

View file

@ -35,6 +35,7 @@
arrives. The error itself is shown by Home, not here. arrives. The error itself is shown by Home, not here.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowRight, Play, Pause, Star } from '@phosphor-icons/react'
import { useEffect, useState, type CSSProperties } from 'react' import { useEffect, useState, type CSSProperties } from 'react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
@ -48,7 +49,6 @@ import { mediaUrl } from '../../../lib/media.ts'
import { eventHref } from '../../../lib/hrefs.ts' import { eventHref } from '../../../lib/hrefs.ts'
import { seriesLabel } from '../../../lib/eventSeries.ts' import { seriesLabel } from '../../../lib/eventSeries.ts'
import type { Hero, HeroBackdrop, HeroEvent, HeroFeature, HeroSlide } from '../../../lib/useFrontPage.ts' import type { Hero, HeroBackdrop, HeroEvent, HeroFeature, HeroSlide } from '../../../lib/useFrontPage.ts'
import { withAlpha } from '../../../lib/color.ts'
const DEEP = '#04262e' const DEEP = '#04262e'
@ -131,12 +131,12 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
</p> </p>
) : feature === 'event' ? ( ) : feature === 'event' ? (
<p className="mb-6 inline-flex items-center gap-3 rounded-full 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 rounded-full bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<span className="text-[#9fe7d0]" aria-hidden="true">★</span> <Star className="text-[#9fe7d0]" weight="fill" aria-hidden="true" />
Featured event Featured event
</p> </p>
) : feature === 'video' ? ( ) : feature === 'video' ? (
<p className="mb-6 inline-flex items-center gap-3 rounded-full 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 rounded-full bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<span className="text-[#9fe7d0]" aria-hidden="true">▶</span> <Play className="text-[#9fe7d0]" weight="fill" aria-hidden="true" />
Featured video Featured video
{hero.video?.title && ( {hero.video?.title && (
<span className="normal-case tracking-normal text-white/75"> <span className="normal-case tracking-normal text-white/75">
@ -193,7 +193,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
url={hero.secondary.url} url={hero.secondary.url}
className="rounded-full border border-white/35 px-8 py-4 text-lg font-semibold text-white transition-colors duration-300 hover:bg-white/10" className="rounded-full border border-white/35 px-8 py-4 text-lg font-semibold text-white transition-colors duration-300 hover:bg-white/10"
> >
{hero.secondary.label} → {hero.secondary.label} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</HomeLink> </HomeLink>
)} )}
</div> </div>
@ -208,8 +208,8 @@ function BrandBackdrop() {
return ( return (
<div className="absolute inset-0 -z-10" aria-hidden="true"> <div className="absolute inset-0 -z-10" aria-hidden="true">
<div className="hp-aurora hp-aurora--a" style={blob('#138ba0', '48vw', '-10%', '-10%')} /> <div className="hp-aurora hp-aurora--a" style={blob('#138ba0', '48vw', '-10%', '-10%')} />
<div className="hp-aurora hp-aurora--b" style={blob('#10d48a', '38vw', '45%', '20%')} /> <div className="hp-aurora hp-aurora--b" style={blob('#9fe7d0', '38vw', '45%', '20%')} />
<div className="hp-aurora hp-aurora--c" style={blob('#d8b64a', '30vw', '70%', '-5%')} /> <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]"
@ -308,7 +308,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
<p className="max-w-md rounded-xl bg-black/35 px-4 py-2 text-sm text-white/90 backdrop-blur"> <p className="max-w-md rounded-xl bg-black/35 px-4 py-2 text-sm text-white/90 backdrop-blur">
{current.link_url ? ( {current.link_url ? (
<HomeLink url={current.link_url} className="hover:underline"> <HomeLink url={current.link_url} className="hover:underline">
{current.caption} → {current.caption} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</HomeLink> </HomeLink>
) : ( ) : (
current.caption current.caption
@ -344,7 +344,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
aria-label={paused ? 'Play slideshow' : 'Pause slideshow'} aria-label={paused ? 'Play slideshow' : 'Pause slideshow'}
className="flex h-8 w-8 items-center justify-center rounded-full border border-white/40 text-xs text-white hover:bg-white/10" className="flex h-8 w-8 items-center justify-center rounded-full border border-white/40 text-xs text-white hover:bg-white/10"
> >
{paused ? '▶' : '❚❚'} {paused ? <Play size={14} weight="fill" aria-hidden="true" /> : <Pause size={14} weight="fill" aria-hidden="true" />}
</button> </button>
</div> </div>
)} )}
@ -362,7 +362,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
return ( return (
<div <div
className="relative overflow-hidden rounded-3xl border border-white/15 bg-black shadow-2xl" className="relative overflow-hidden rounded-3xl border border-white/15 bg-black shadow-2xl"
style={{ boxShadow: '0 30px 80px -20px rgba(16, 212, 138, 0.35)' }} style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
> >
<div className="aspect-video w-full"> <div className="aspect-video w-full">
{src && watching ? ( {src && watching ? (
@ -419,7 +419,7 @@ function VideoFrame({
return ( return (
<div <div
className="relative overflow-hidden rounded-3xl border border-white/15 bg-black shadow-2xl" className="relative overflow-hidden rounded-3xl border border-white/15 bg-black shadow-2xl"
style={{ boxShadow: '0 30px 80px -20px rgba(92, 231, 255, 0.35)' }} style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
> >
<div className="aspect-video w-full"> <div className="aspect-video w-full">
{source?.kind === 'file' ? ( {source?.kind === 'file' ? (
@ -455,7 +455,7 @@ function VideoFrame({
to its page. The first action link is the filled button, since to its page. The first action link is the filled button, since
it's usually Register. */ it's usually Register. */
function EventPanel({ event }: { event: HeroEvent }) { function EventPanel({ event }: { event: HeroEvent }) {
const color = event.color || '#0f7183' const color = event.color || 'var(--color-action)'
const photo = mediaUrl(event.card_image) const photo = mediaUrl(event.card_image)
const when = seriesLabel(event.series, event.starts_on) ?? event.date_label const when = seriesLabel(event.series, event.starts_on) ?? event.date_label
const where = event.is_online && !event.location_label ? 'Online' : event.location_label const where = event.is_online && !event.location_label ? 'Online' : event.location_label
@ -463,7 +463,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
return ( return (
<div <div
className="overflow-hidden rounded-3xl border border-white/15 bg-white/10 text-white shadow-2xl backdrop-blur" className="overflow-hidden rounded-3xl border border-white/15 bg-white/10 text-white shadow-2xl backdrop-blur"
style={{ boxShadow: `0 30px 80px -20px ${withAlpha(color, 40)}` }} style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 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" />
@ -508,7 +508,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
to={eventHref(event.id)} to={eventHref(event.id)}
className="rounded-full border border-white/35 px-6 py-3 font-semibold text-white transition-colors hover:bg-white/10" className="rounded-full border border-white/35 px-6 py-3 font-semibold text-white transition-colors hover:bg-white/10"
> >
Event details → Event details <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</Link> </Link>
</div> </div>
</div> </div>

View file

@ -18,15 +18,15 @@
blurb from the admin aren't drawn here. blurb from the admin aren't drawn here.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowRight } from '@phosphor-icons/react'
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import { eventHref } from '../../../lib/hrefs.ts' import { eventHref } from '../../../lib/hrefs.ts'
import { upcomingOccurrences } from '../../../lib/eventSeries.ts' import { upcomingOccurrences } from '../../../lib/eventSeries.ts'
import type { CountdownEvent } from '../../../lib/useFrontPage.ts' import type { CountdownEvent } from '../../../lib/useFrontPage.ts'
import { withAlpha, accentText } from '../../../lib/color.ts' import { withAlpha, accentText, BRAND } from '../../../lib/color.ts'
const TEAL = '#0f7183'
/* Local midnight (or HH:MM) on a 'YYYY-MM-DD'. */ /* Local midnight (or HH:MM) on a 'YYYY-MM-DD'. */
function localMoment(date: string, time?: string | null): Date | null { function localMoment(date: string, time?: string | null): Date | null {
@ -65,7 +65,7 @@ export default function NextEventCountdown({
}) { }) {
const now = useNow(1000) const now = useNow(1000)
const when = target(event) const when = target(event)
const accent = event.color || TEAL const accent = event.color || BRAND
const remaining = when ? when.getTime() - now : 0 const remaining = when ? when.getTime() - now : 0
const live = !when || remaining <= 0 const live = !when || remaining <= 0
@ -86,7 +86,7 @@ export default function NextEventCountdown({
> >
<Link <Link
to={eventHref(event.id)} to={eventHref(event.id)}
className="group mx-auto flex max-w-6xl flex-col gap-6 rounded-3xl border bg-white/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 rounded-3xl 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"
style={{ borderColor: `${withAlpha(accent, 33)}` }} style={{ borderColor: `${withAlpha(accent, 33)}` }}
> >
<div className="min-w-0 flex-1"> <div className="min-w-0 flex-1">
@ -126,7 +126,7 @@ export default function NextEventCountdown({
className="self-start text-sm font-semibold transition-transform group-hover:translate-x-1 md:self-center" className="self-start text-sm font-semibold transition-transform group-hover:translate-x-1 md:self-center"
style={{ color: accentText(accent) }} style={{ color: accentText(accent) }}
> >
Details → Details <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</span> </span>
</Link> </Link>
</section> </section>

View file

@ -15,11 +15,12 @@
entrance animation for each choice. entrance animation for each choice.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowRight, ArrowUpRight, BookOpen, CalendarBlank, ChatCircle, Compass, GraduationCap, HandHeart, Heart, House, MapPin, MusicNotes, Sparkle, Star, Tent, UsersThree, type Icon } from '@phosphor-icons/react'
import { useId, useRef, useState, type KeyboardEvent } from 'react' import { useId, useRef, useState, type KeyboardEvent } from 'react'
import HomeLink, { isExternal } from './HomeLink.tsx' import HomeLink, { isExternal } from './HomeLink.tsx'
import type { FrontPagePath } from '../../../lib/useFrontPage.ts' import type { FrontPagePath } from '../../../lib/useFrontPage.ts'
import { withAlpha, accentText } from '../../../lib/color.ts' import { ACCENTS, withAlpha, accentText, readableOn } from '../../../lib/color.ts'
type PathfinderProps = { type PathfinderProps = {
id: string id: string
@ -30,7 +31,34 @@ type PathfinderProps = {
/* One accent per position, cycling. Paths are data; colour is /* One accent per position, cycling. Paths are data; colour is
presentation, so it's assigned here rather than stored. */ presentation, so it's assigned here rather than stored. */
const ACCENTS = ['#0f7183', '#0b7a52', '#8a6516', '#7a5ea8', '#b0502c'] /* A path's icon: a key from src/data/pathIcons.ts, drawn from
Phosphor. A path saved before the list existed may hold an emoji;
that shows as it is. Nothing set is a dot. */
const ICONS: Record<string, Icon> = {
heart: Heart,
hands: HandHeart,
people: UsersThree,
calendar: CalendarBlank,
tent: Tent,
map: MapPin,
home: House,
book: BookOpen,
learn: GraduationCap,
chat: ChatCircle,
music: MusicNotes,
compass: Compass,
sparkle: Sparkle,
star: Star,
}
function PathIcon({ value }: { value?: string | null }) {
const Glyph = value ? ICONS[value] : null
if (Glyph) return <Glyph size={26} weight="bold" />
return <>{value || '•'}</>
}
// The site's accent family, in turn (color.ts).
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.mint, ACCENTS.deep]
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) { export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
const [selected, setSelected] = useState(0) const [selected, setSelected] = useState(0)
@ -40,7 +68,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
if (paths.length === 0) return null if (paths.length === 0) return null
const path = paths[Math.min(selected, paths.length - 1)] const path = paths[Math.min(selected, paths.length - 1)]
const accent = ACCENTS[selected % ACCENTS.length] const accent = PATH_ACCENTS[selected % PATH_ACCENTS.length]
const focus = (index: number) => { const focus = (index: number) => {
const next = (index + paths.length) % paths.length const next = (index + paths.length) % paths.length
@ -67,10 +95,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
<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">
<p className="text-xs font-bold uppercase tracking-[0.3em] text-link"> <h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
I’m looking to…
</p>
<h2 className="mt-3 font-display text-4xl font-extrabold text-ink md:text-5xl">
{title} {title}
</h2> </h2>
{blurb && <p className="mt-4 text-lg text-muted">{blurb}</p>} {blurb && <p className="mt-4 text-lg text-muted">{blurb}</p>}
@ -84,7 +109,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
> >
{paths.map((option, index) => { {paths.map((option, index) => {
const on = index === selected const on = index === selected
const color = ACCENTS[index % ACCENTS.length] const color = PATH_ACCENTS[index % PATH_ACCENTS.length]
return ( return (
<button <button
key={`${option.label}-${index}`} key={`${option.label}-${index}`}
@ -107,10 +132,13 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
> >
<span <span
className="flex h-12 w-12 shrink-0 items-center justify-center rounded-xl text-2xl transition-transform duration-300 group-hover:scale-110" className="flex h-12 w-12 shrink-0 items-center justify-center rounded-xl text-2xl transition-transform duration-300 group-hover:scale-110"
style={{ background: on ? color : `${withAlpha(color, 12)}` }} style={{
background: on ? color : `${withAlpha(color, 12)}`,
color: on ? readableOn(color) : accentText(color),
}}
aria-hidden="true" aria-hidden="true"
> >
{option.icon || '•'} <PathIcon value={option.icon} />
</span> </span>
<span className="font-display text-xl font-bold" style={{ color: on ? accentText(color) : 'var(--color-ink)' }}> <span className="font-display text-xl font-bold" style={{ color: on ? accentText(color) : 'var(--color-ink)' }}>
{option.label} {option.label}
@ -120,7 +148,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
style={{ color, opacity: on ? 1 : 0 }} style={{ color, opacity: on ? 1 : 0 }}
aria-hidden="true" aria-hidden="true"
> >
→ <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</span> </span>
</button> </button>
) )
@ -133,15 +161,9 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
id={`${base}-panel`} id={`${base}-panel`}
role="tabpanel" role="tabpanel"
aria-labelledby={`${base}-tab-${selected}`} aria-labelledby={`${base}-tab-${selected}`}
className="relative overflow-hidden rounded-[2rem] p-8 md:p-10 lg:col-span-7" className="relative overflow-hidden rounded-3xl p-8 md:p-10 lg:col-span-7"
style={{ background: withAlpha(accent, 5) }} style={{ background: withAlpha(accent, 5) }}
> >
<span
className="pointer-events-none absolute -right-6 -top-10 select-none text-[10rem] leading-none opacity-10"
aria-hidden="true"
>
{path.icon}
</span>
{path.blurb && ( {path.blurb && (
<p className="hp-pop relative max-w-md font-display text-2xl font-semibold leading-snug text-ink"> <p className="hp-pop relative max-w-md font-display text-2xl font-semibold leading-snug text-ink">
@ -167,7 +189,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
style={{ color: accentText(accent) }} style={{ color: accentText(accent) }}
aria-hidden="true" aria-hidden="true"
> >
{isExternal(action.url) ? '↗' : '→'} {isExternal(action.url) ? <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" /> : <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />}
</span> </span>
</span> </span>
{action.description && ( {action.description && (

View file

@ -7,12 +7,12 @@
front page's heading and a way through to the full page. front page's heading and a way through to the full page.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
import { ArrowRight } from '@phosphor-icons/react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import EventListCards from '../EventList-Cards.tsx' import EventListCards from '../EventList-Cards.tsx'
import { accentText } from '../../../lib/color.ts' import { accentText, BRAND } from '../../../lib/color.ts'
const TEAL = '#0f7183'
type RetreatsBandProps = { id: string; title: string; blurb?: string | null } type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
@ -29,13 +29,13 @@ export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
<Link <Link
to="/retreats" to="/retreats"
className="ml-auto rounded-full border px-5 py-2 text-sm font-semibold transition-colors hover:bg-surface" className="ml-auto rounded-full border px-5 py-2 text-sm font-semibold transition-colors hover:bg-surface"
style={{ borderColor: TEAL, color: accentText(TEAL) }} style={{ borderColor: BRAND, color: accentText(BRAND) }}
> >
All retreats → All retreats <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</Link> </Link>
</div> </div>
<EventListCards scope="national" type="retreat" view="carousel" accent={TEAL} /> <EventListCards scope="national" type="retreat" view="carousel" accent={BRAND} />
</section> </section>
) )
} }

View file

@ -51,12 +51,12 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
> >
<div <div
className="pointer-events-none absolute -left-40 -top-40 h-[32rem] w-[32rem] rounded-full opacity-25 blur-3xl" className="pointer-events-none absolute -left-40 -top-40 h-[32rem] w-[32rem] rounded-full opacity-25 blur-3xl"
style={{ background: '#10d48a' }} style={{ background: '#9fe7d0' }}
aria-hidden="true" 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-sm font-bold uppercase tracking-[0.3em] text-[#9fe7d0]"> <h2 className="font-display text-3xl font-extrabold text-white md:text-4xl">
{title} {title}
</h2> </h2>
{blurb && <p className="mt-3 max-w-2xl text-white/70">{blurb}</p>} {blurb && <p className="mt-3 max-w-2xl text-white/70">{blurb}</p>}