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:
parent
f72a9604d2
commit
048c7599ce
59 changed files with 416 additions and 350 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { ArrowRight } from "@phosphor-icons/react";
|
||||
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`}
|
||||
style={{ border: `1px solid ${color}`, color }}
|
||||
>
|
||||
<svg
|
||||
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>
|
||||
<ArrowRight className="h-4 w-4" weight="bold" aria-hidden="true" />
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { X } from "@phosphor-icons/react";
|
||||
import { useState, useEffect } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { SITE_BANNER } from "../data/bannerConfig.ts";
|
||||
|
|
@ -54,9 +55,7 @@ export default function Banner() {
|
|||
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"
|
||||
>
|
||||
<svg className="w-4 h-4" viewBox="0 0 20 20" fill="currentColor">
|
||||
<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>
|
||||
<X className="w-4 h-4" weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
24
src/components/ComingSoon.tsx
Normal file
24
src/components/ComingSoon.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
|
|
@ -38,13 +38,13 @@ import type { ContentBlock } from '../lib/useContent.ts'
|
|||
import { Anchor, Inline, Paragraphs } from './InlineText.tsx'
|
||||
import VideoPlayer from './VideoPlayer.tsx'
|
||||
import ScheduleBlock from './ScheduleBlock.tsx'
|
||||
import { accentText } from '../lib/color.ts'
|
||||
import { accentText, BRAND } from '../lib/color.ts'
|
||||
|
||||
const BODY = 'var(--color-muted)'
|
||||
|
||||
export default function ContentBlocks({
|
||||
blocks,
|
||||
accent = '#0f7183',
|
||||
accent = BRAND,
|
||||
className = '',
|
||||
}: {
|
||||
blocks?: ContentBlock[] | null
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ function Picture({ card }: { card: FeaturedCard }) {
|
|||
alt=""
|
||||
loading="lazy"
|
||||
onError={img.onError}
|
||||
className="max-h-full max-w-full object-contain"
|
||||
className="logo-plate max-h-full max-w-full object-contain"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
|
@ -77,7 +77,7 @@ function Card({ card }: { card: FeaturedCard }) {
|
|||
const text = (
|
||||
<div className="flex flex-1 flex-col p-6">
|
||||
{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 && (
|
||||
<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[] }) {
|
||||
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) => (
|
||||
<Card key={`${card.kind}-${card.ref?.id ?? card.url}-${index}`} card={card} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -111,9 +111,9 @@ export default function Footer() {
|
|||
target="_blank"
|
||||
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"
|
||||
style={{ background: "#0f7183" }}
|
||||
style={{ background: "var(--color-action)" }}
|
||||
>
|
||||
Support Us
|
||||
{giveAction.label}
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { X, List } from "@phosphor-icons/react";
|
||||
import { Suspense, useState, useEffect, useRef } from "react";
|
||||
import { NavLink, Link, Outlet, useLocation } from "react-router-dom";
|
||||
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
||||
|
|
@ -28,7 +29,7 @@ const ACTION_VARIANTS: Record<
|
|||
},
|
||||
fancy: {
|
||||
className: "font-bold text-white hover:scale-105",
|
||||
style: { background: "#0f7183" },
|
||||
style: { background: "var(--color-action)" },
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -47,7 +48,7 @@ function NavAction({
|
|||
onClick?: () => void;
|
||||
}) {
|
||||
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 ? (
|
||||
<a
|
||||
|
|
@ -74,7 +75,11 @@ const navActions = NAV_ACTIONS as NavActionItem[];
|
|||
export default function Layout() {
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
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 closeMenuRef = useRef<HTMLButtonElement>(null);
|
||||
const location = useLocation();
|
||||
|
|
@ -153,7 +158,10 @@ export default function Layout() {
|
|||
}, [location.pathname, headerHeight]);
|
||||
|
||||
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
|
||||
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"
|
||||
|
|
@ -182,7 +190,7 @@ export default function Layout() {
|
|||
<img src={nguLogo} alt="Next Generation of Unity" className="h-10 w-auto" />
|
||||
</Link>
|
||||
|
||||
<div className="hidden md:flex items-center gap-6">
|
||||
<div className="hidden lg:flex items-center gap-6">
|
||||
{PAGE_LINKS.map((page) => (
|
||||
<NavLink
|
||||
key={page.path}
|
||||
|
|
@ -203,7 +211,7 @@ export default function Layout() {
|
|||
</div>
|
||||
|
||||
<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) => (
|
||||
<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" />
|
||||
|
||||
<button
|
||||
className="md:hidden text-white p-2"
|
||||
className="lg:hidden text-white p-2"
|
||||
aria-label="Open menu"
|
||||
aria-expanded={mobileMenuOpen}
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
>
|
||||
<div className="w-6 h-0.5 bg-white mb-1.5 transition-all" />
|
||||
<div className="w-6 h-0.5 bg-white mb-1.5" />
|
||||
<div className="w-6 h-0.5 bg-white" />
|
||||
<List size={26} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
@ -294,7 +300,7 @@ export default function Layout() {
|
|||
aria-label="Close menu"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
×
|
||||
<X size={28} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
|
||||
<div className="w-64">
|
||||
|
|
@ -309,7 +315,7 @@ export default function Layout() {
|
|||
end={page.path === "/"}
|
||||
className={({ isActive }) =>
|
||||
`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
|
||||
key={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)}
|
||||
>
|
||||
{section.label}
|
||||
|
|
|
|||
|
|
@ -25,5 +25,6 @@ export default function Logo({
|
|||
}) {
|
||||
const img = useSmallImage(src)
|
||||
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} />
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
title: "Local Chapters",
|
||||
blurb: "Optional line under the section heading.",
|
||||
accent: "#0f7183", // heading, banner, rule
|
||||
accent: BRAND, // heading, banner, rule
|
||||
background: "var(--color-tint)",
|
||||
actions: <SomeButton />, // optional, right of the heading
|
||||
content: <YourStuff />,
|
||||
|
|
@ -32,9 +32,8 @@
|
|||
import { useEffect, type ReactNode } from "react";
|
||||
|
||||
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 = {
|
||||
id: string;
|
||||
|
|
@ -70,20 +69,21 @@ export function Section({ section }: { section: ShellSection }) {
|
|||
<section
|
||||
id={id}
|
||||
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 */}
|
||||
<div className="max-w-6xl mx-auto px-6 mb-10">
|
||||
<div className="flex flex-wrap items-end justify-between gap-4">
|
||||
<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}
|
||||
</h2>
|
||||
{blurb && <p className="mt-2 text-muted max-w-xl">{blurb}</p>}
|
||||
</div>
|
||||
{actions}
|
||||
</div>
|
||||
<div className="mt-6 h-px w-full" style={{ background: accent, opacity: 0.35 }} />
|
||||
</div>
|
||||
|
||||
{content}
|
||||
|
|
@ -104,7 +104,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
|
|||
{/* Page header */}
|
||||
<div className="pt-24 pb-12 px-6" style={{ background: "var(--color-tint)" }}>
|
||||
<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}
|
||||
</h1>
|
||||
{intro && <p className="mt-3 text-lg text-muted max-w-2xl">{intro}</p>}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,8 @@
|
|||
|
||||
import { Link } from 'react-router-dom'
|
||||
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)'
|
||||
|
||||
export default function PageState({
|
||||
|
|
@ -53,7 +52,7 @@ export default function PageState({
|
|||
<Link
|
||||
to={backTo}
|
||||
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}
|
||||
</Link>
|
||||
|
|
@ -63,12 +62,12 @@ export default function PageState({
|
|||
title = 'Something went wrong'
|
||||
content = (
|
||||
<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
|
||||
type="button"
|
||||
onClick={onRetry}
|
||||
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
|
||||
</button>
|
||||
|
|
@ -77,16 +76,22 @@ export default function PageState({
|
|||
} else {
|
||||
title = 'Loading…'
|
||||
content = (
|
||||
<p className="max-w-6xl mx-auto px-6" style={{ color: BODY }} role="status">
|
||||
Loading this {noun}…
|
||||
</p>
|
||||
<div className="max-w-6xl mx-auto px-6" role="status">
|
||||
<span className="sr-only">Loading this {noun}…</span>
|
||||
<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 (
|
||||
<PageShell
|
||||
title={title}
|
||||
sections={[{ id: 'status', title: '', accent: TEAL, background: 'var(--color-surface)', content }]}
|
||||
sections={[{ id: 'status', title: '', accent: BRAND, background: 'var(--color-surface)', content }]}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
/* color */
|
||||
--pl-accent: #0f7183;
|
||||
--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-ink: var(--color-ink);
|
||||
--pl-muted: var(--color-muted);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { ArrowRight, CaretDown, X } from "@phosphor-icons/react";
|
||||
import {
|
||||
useEffect,
|
||||
useId,
|
||||
|
|
@ -643,7 +644,7 @@ function DetailPanel({
|
|||
</div>
|
||||
<button type="button" className="pl__close" onClick={onClose}>
|
||||
<span className="pl__sr">Close details</span>
|
||||
<span aria-hidden="true">×</span>
|
||||
<X size={18} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -692,7 +693,7 @@ function DetailPanel({
|
|||
|
||||
{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>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -701,16 +702,7 @@ function DetailPanel({
|
|||
|
||||
function Chevron() {
|
||||
return (
|
||||
<svg viewBox="0 0 16 16" width="12" height="12" focusable="false">
|
||||
<path
|
||||
d="M4 6.5 8 10.5 12 6.5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
<CaretDown size={12} weight="bold" aria-hidden="true" />
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
index.css.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { Sun, Moon } from '@phosphor-icons/react'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
type Theme = 'light' | 'dark'
|
||||
|
|
@ -62,18 +63,7 @@ export default function ThemeToggle({ className = '' }: { className?: string })
|
|||
title={dark ? 'Light mode' : 'Dark mode'}
|
||||
className={`flex h-9 w-9 items-center justify-center rounded-full transition-colors ${className}`}
|
||||
>
|
||||
{dark ? (
|
||||
// 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>
|
||||
)}
|
||||
{dark ? <Sun size={20} weight="bold" aria-hidden="true" /> : <Moon size={20} weight="bold" aria-hidden="true" />}
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,12 +11,13 @@
|
|||
goes somewhere: the still becomes a link to it.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { Play } from '@phosphor-icons/react'
|
||||
import { useState } from 'react'
|
||||
|
||||
import HomeLink from '../pages/sections/home/HomeLink.tsx'
|
||||
import { playingSource, videoSource, videoThumbnail } from '../lib/embeds.ts'
|
||||
import { BRAND } from '../lib/color.ts'
|
||||
|
||||
const ACCENT = '#0f7183'
|
||||
|
||||
export default function VideoPlayer({
|
||||
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"
|
||||
>
|
||||
<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}>
|
||||
<path d="M8 5v14l11-7z" />
|
||||
</svg>
|
||||
<Play className="ml-1 h-7 w-7" weight="fill" style={{ color: BRAND }} aria-hidden="true" />
|
||||
</span>
|
||||
</span>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@
|
|||
able to read and copy.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { ArrowUp, ArrowDown, CaretRight } from "@phosphor-icons/react";
|
||||
import { useRef, useState } from "react";
|
||||
|
||||
import ContentBlocks from "../ContentBlocks.tsx";
|
||||
|
|
@ -581,7 +582,7 @@ export function Repeater({
|
|||
expanded ? "rotate-90" : ""
|
||||
}`}
|
||||
>
|
||||
▶
|
||||
<CaretRight size={14} weight="bold" aria-hidden="true" />
|
||||
</span>
|
||||
<span className="truncate">
|
||||
{spec.title ? spec.title(row, options) : `#${index + 1}`}
|
||||
|
|
@ -597,14 +598,14 @@ export function Repeater({
|
|||
onClick={() => move(index, -1)}
|
||||
disabled={index === 0}
|
||||
>
|
||||
↑
|
||||
<ArrowUp size={14} weight="bold" aria-hidden="true" />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
label="Move down"
|
||||
onClick={() => move(index, 1)}
|
||||
disabled={index === list.length - 1}
|
||||
>
|
||||
↓
|
||||
<ArrowDown size={14} weight="bold" aria-hidden="true" />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
label="Insert a new one below"
|
||||
|
|
|
|||
28
src/data/pathIcons.ts
Normal file
28
src/data/pathIcons.ts
Normal 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'],
|
||||
]
|
||||
|
|
@ -35,6 +35,16 @@
|
|||
--color-tint-soft: #f6fbfc; /* hover rows, faint panels */
|
||||
--color-danger: #b3261e;
|
||||
--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,
|
||||
|
|
@ -123,6 +133,28 @@ h1, h2, h3, h4, h5, h6 {
|
|||
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 */
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
|
|
@ -201,9 +233,9 @@ h1, h2, h3, h4, h5, h6 {
|
|||
min-height: 22rem;
|
||||
background: linear-gradient(
|
||||
100deg,
|
||||
rgba(0, 0, 0, 0.04) 30%,
|
||||
rgba(0, 0, 0, 0.08) 50%,
|
||||
rgba(0, 0, 0, 0.04) 70%
|
||||
color-mix(in srgb, var(--color-muted) 8%, transparent) 30%,
|
||||
color-mix(in srgb, var(--color-muted) 16%, transparent) 50%,
|
||||
color-mix(in srgb, var(--color-muted) 8%, transparent) 70%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { mediaUrl } from "../media.ts";
|
||||
import { featuredCardsChild } from "./shared.ts";
|
||||
import { PATH_ICONS } from "../../data/pathIcons.ts";
|
||||
|
||||
/* ── Front page ──────────────────────────────────────────────────
|
||||
|
||||
|
|
@ -218,11 +219,17 @@ export const frontPage = {
|
|||
label: "Connect Nav",
|
||||
note: "Each path is a choice a visitor can pick; its actions appear when they do.",
|
||||
addLabel: "Add path",
|
||||
title: (row) => [row.icon, row.label].filter(Boolean).join(" ") || "New path",
|
||||
title: (row) => row.label || "New path",
|
||||
blank: { label: "", icon: "", blurb: "" },
|
||||
fields: [
|
||||
{ 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 },
|
||||
],
|
||||
children: [
|
||||
|
|
|
|||
|
|
@ -37,3 +37,18 @@ export function readableOn(color: string): string {
|
|||
const onInk = (lum + 0.05) / (INK_LUM + 0.05)
|
||||
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',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,8 @@ import PageState from '../components/PageState.tsx'
|
|||
import { useAward, type Recipient } from '../lib/useContent.ts'
|
||||
import { eventHref, orgHref, personHref } from '../lib/hrefs.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)'
|
||||
|
||||
export default function AwardDetail() {
|
||||
|
|
@ -46,7 +45,7 @@ export default function AwardDetail() {
|
|||
)
|
||||
}
|
||||
|
||||
const accent = TEAL
|
||||
const accent = BRAND
|
||||
const logo = mediaUrl(award.logo)
|
||||
|
||||
return (
|
||||
|
|
@ -67,7 +66,7 @@ export default function AwardDetail() {
|
|||
<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">
|
||||
{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 && (
|
||||
|
|
|
|||
|
|
@ -18,9 +18,8 @@ import ContentBlocks from '../components/ContentBlocks.tsx'
|
|||
import PeopleTiles from '../components/PeopleTiles.tsx'
|
||||
import { mediaUrl } from '../lib/media.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)'
|
||||
|
||||
/* Where "back" goes: the section on the Community page. */
|
||||
|
|
@ -66,7 +65,7 @@ export default function BlogPost() {
|
|||
{
|
||||
id: 'post',
|
||||
title: 'Post',
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: 'var(--color-surface)',
|
||||
content: (
|
||||
<article className="mx-auto max-w-3xl space-y-8 px-6">
|
||||
|
|
@ -77,12 +76,12 @@ export default function BlogPost() {
|
|||
<span
|
||||
key={tag}
|
||||
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}
|
||||
</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}
|
||||
</Link>
|
||||
</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" />
|
||||
)}
|
||||
|
||||
<ContentBlocks blocks={post.blocks} accent={ACCENT} />
|
||||
<ContentBlocks blocks={post.blocks} accent={BRAND} />
|
||||
</article>
|
||||
),
|
||||
},
|
||||
|
|
@ -101,11 +100,11 @@ export default function BlogPost() {
|
|||
sections.push({
|
||||
id: 'authors',
|
||||
title: authors.length === 1 ? 'About the author' : 'About the authors',
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: 'var(--color-tint)',
|
||||
content: (
|
||||
<div className="mx-auto max-w-6xl px-6">
|
||||
<PeopleTiles size="md" accent={ACCENT} people={authors} />
|
||||
<PeopleTiles size="md" accent={BRAND} people={authors} />
|
||||
</div>
|
||||
),
|
||||
})
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import OrgListVertical from "./sections/OrgList-Vertical.tsx";
|
|||
import OrgListCards from "./sections/OrgList-Card.tsx";
|
||||
import CommunityBlog from "./sections/CommunityBlog.tsx";
|
||||
import { useCommunityBlog } from "../lib/useBlog.ts";
|
||||
import { ACCENTS, BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/community");
|
||||
|
|
@ -30,7 +31,7 @@ const SECTIONS = [
|
|||
title: "Local Chapters",
|
||||
blurb:
|
||||
"Young adult groups meeting in person and online across the movement.",
|
||||
accent: "#0f7183",
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
Component: OrgListMap,
|
||||
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
|
||||
|
|
@ -58,7 +59,7 @@ const SECTIONS = [
|
|||
title: "Partner Organizations",
|
||||
blurb:
|
||||
"Organizations we collaborate with across the Unity movement and beyond.",
|
||||
accent: "#7a5ea8",
|
||||
accent: ACCENTS.mint,
|
||||
background: "var(--color-tint)",
|
||||
Component: OrgListCards,
|
||||
props: {
|
||||
|
|
@ -77,7 +78,7 @@ export default function CommunityPage() {
|
|||
id: "blog",
|
||||
title: blog?.title || BLOG_DEFAULT_TITLE,
|
||||
blurb: blog?.blurb ?? undefined,
|
||||
accent: "#0f7183",
|
||||
accent: BRAND,
|
||||
background: "var(--color-surface)",
|
||||
Component: CommunityBlog,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,9 +34,8 @@ import { mediaUrl } from '../lib/media.ts'
|
|||
import { eventTypeLabel } from '../lib/eventTypes.ts'
|
||||
import { occurrenceLabel, seriesLabel, seriesTimes, upcomingOccurrences } from '../lib/eventSeries.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)'
|
||||
|
||||
/* 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 sections: ShellSection[] = [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import PageShell from "../components/PageShell.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import FeedbackForm from "./sections/FeedbackForm.tsx";
|
||||
import { BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/feedback");
|
||||
|
|
@ -17,7 +18,6 @@ const PAGE = sitePage("/feedback");
|
|||
This file only decides where it sits on the page.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
const ACCENT = "#0f7183";
|
||||
|
||||
const SECTIONS = [
|
||||
{
|
||||
|
|
@ -25,7 +25,7 @@ const SECTIONS = [
|
|||
title: "Website Feedback",
|
||||
blurb:
|
||||
"Found a broken link, spotted something out of date, or want the site to do something it doesn't? This form goes straight to the people who maintain it.",
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
// Narrower than the usual max-w-6xl: full-width form fields
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { useEffect } from "react";
|
||||
import PageShell from "../components/PageShell.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import { BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/give");
|
||||
|
|
@ -10,7 +11,6 @@ const GIVING_URL =
|
|||
|
||||
const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1";
|
||||
|
||||
const ACCENT = "#0f7183";
|
||||
|
||||
function useChurchCenterModal() {
|
||||
useEffect(() => {
|
||||
|
|
@ -34,7 +34,7 @@ function useChurchCenterModal() {
|
|||
function GivingPanel() {
|
||||
return (
|
||||
<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
|
||||
right here on the page and you can give once or set up a recurring
|
||||
gift, and you don’t need an account to do either.
|
||||
|
|
@ -52,12 +52,12 @@ function GivingPanel() {
|
|||
focus-visible:ring-offset-2
|
||||
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>
|
||||
|
||||
<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.
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -74,10 +74,10 @@ export default function GivingPage() {
|
|||
const sections = [
|
||||
{
|
||||
id: "give",
|
||||
title: "Donate to NGU",
|
||||
title: "Give to NGU",
|
||||
blurb:
|
||||
"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)",
|
||||
content: <GivingPanel />,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { sitePage } from "../lib/site.ts";
|
|||
import HistoryTimeline from "./sections/history/HistoryTimeline.tsx";
|
||||
import { HISTORY_DECADES } from "../data/historyDecades.ts";
|
||||
import { useHistory } from "../lib/useHistory.ts";
|
||||
import { BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/history");
|
||||
|
|
@ -14,7 +15,6 @@ const PAGE = sitePage("/history");
|
|||
*/
|
||||
const PROGRAM_START_YEAR = 2000;
|
||||
|
||||
const ACCENT = "#0f7183";
|
||||
const BACKGROUND = "var(--color-surface)";
|
||||
|
||||
export default function History() {
|
||||
|
|
@ -27,7 +27,7 @@ export default function History() {
|
|||
const wrap = (children: React.ReactNode) => (
|
||||
<div
|
||||
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}
|
||||
</div>
|
||||
|
|
@ -78,7 +78,7 @@ export default function History() {
|
|||
title: "NGU Timeline",
|
||||
blurb:
|
||||
"Open a year to see what happened.",
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: BACKGROUND,
|
||||
content,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import PageShell from "../components/PageShell.tsx";
|
||||
import ComingSoon from "../components/ComingSoon.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import PeopleTiles from "../components/PeopleTiles.tsx";
|
||||
import { ACCENTS, BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/leadership");
|
||||
|
|
@ -10,7 +12,7 @@ const SECTIONS = [
|
|||
id: "board-staff",
|
||||
title: "Board & Staff",
|
||||
blurb: "The people guiding Next Generation of Unity day to day.",
|
||||
accent: "#0f7183",
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
|
|
@ -22,7 +24,7 @@ const SECTIONS = [
|
|||
id: "retreat-team",
|
||||
title: "Retreat Team",
|
||||
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
||||
accent: "#4a7a2f",
|
||||
accent: ACCENTS.green,
|
||||
background: "var(--color-surface)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
|
|
@ -34,26 +36,21 @@ const SECTIONS = [
|
|||
id: "committees",
|
||||
title: "Committees & Volunteers",
|
||||
blurb: "Additional roles and contributors.",
|
||||
accent: "#7a5ea8",
|
||||
accent: ACCENTS.mint,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
{/* Other roles content */}
|
||||
</div>
|
||||
),
|
||||
content: <ComingSoon what="this list of committees and volunteers" />,
|
||||
},
|
||||
{
|
||||
id: "contact",
|
||||
title: "Contact Us",
|
||||
blurb: "Reach out to our staff",
|
||||
accent: "#004c52",
|
||||
accent: ACCENTS.deep,
|
||||
background: "var(--color-surface)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
<a
|
||||
href="mailto:info@nextgenerationofunity.org"
|
||||
className="inline-block py-2.5 px-6 rounded-xl font-bold transition-all duration-200 hover:scale-105"
|
||||
style={{ border: "1px solid #0f7183", color: "#0f7183" }}
|
||||
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]"
|
||||
>
|
||||
info@nextgenerationofunity.org
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -32,9 +32,8 @@ import {
|
|||
import { orgHref, orgListHref, teamHref } from '../lib/hrefs.ts'
|
||||
import { initials, mediaUrl } from '../lib/media.ts'
|
||||
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)'
|
||||
|
||||
export default function OrganizationDetail() {
|
||||
|
|
@ -72,7 +71,7 @@ export default function OrganizationDetail() {
|
|||
return <Navigate to={canonical} replace />
|
||||
}
|
||||
|
||||
const accent = org.color || TEAL
|
||||
const accent = org.color || BRAND
|
||||
const back = orgListHref(org.kind)
|
||||
|
||||
const sections: any[] = [
|
||||
|
|
|
|||
|
|
@ -34,9 +34,8 @@ import { awardHref, eventHref, orgHref, teamHref } from '../lib/hrefs.ts'
|
|||
import { mediaUrl, initials } from '../lib/media.ts'
|
||||
import { eventTypeLabel } from '../lib/eventTypes.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 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 previous = person.roles.filter((role) => role.ended_on)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import PageShell from "../components/PageShell.tsx";
|
|||
import { DATA_REQUEST } from "../data/feedbackTypes.ts";
|
||||
import { PRIVACY_EMAIL, sitePage } from "../lib/site.ts";
|
||||
import FeedbackForm from "./sections/FeedbackForm.tsx";
|
||||
import { BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/privacy");
|
||||
|
|
@ -24,7 +25,6 @@ const PAGE = sitePage("/privacy");
|
|||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
const LAST_UPDATED = "September 28, 2026";
|
||||
const ACCENT = "#0f7183";
|
||||
|
||||
const link = "underline underline-offset-2 text-link";
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ const SECTIONS = [
|
|||
id: "privacy",
|
||||
title: "Privacy Policy",
|
||||
blurb: `Last updated: ${LAST_UPDATED}`,
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: "var(--color-surface)",
|
||||
content: <LegalText parts={PARTS} />,
|
||||
},
|
||||
|
|
@ -176,7 +176,7 @@ const SECTIONS = [
|
|||
id: "requests",
|
||||
title: "Data requests",
|
||||
blurb: "Ask to see, correct or delete the information we hold about you.",
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="mx-auto max-w-3xl px-6">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import PageShell from '../components/PageShell.tsx'
|
||||
import { sitePage } from '../lib/site.ts'
|
||||
import QrCodeMaker from './sections/QrCodeMaker.tsx'
|
||||
import { BRAND } from '../lib/color.ts'
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage('/qr')
|
||||
|
|
@ -20,7 +21,7 @@ const SECTIONS = [
|
|||
title: 'Make a QR code',
|
||||
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.',
|
||||
accent: '#0f7183',
|
||||
accent: BRAND,
|
||||
background: 'var(--color-tint)',
|
||||
content: (
|
||||
<div className="mx-auto max-w-6xl px-6">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
import PageShell from "../components/PageShell.tsx";
|
||||
import ComingSoon from "../components/ComingSoon.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import { ACCENTS, BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/resources");
|
||||
|
|
@ -9,37 +11,25 @@ const SECTIONS = [
|
|||
id: "unity",
|
||||
title: "Unity Teachings",
|
||||
blurb: "Core principles, readings, and study material from the Unity movement.",
|
||||
accent: "#0f7183",
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
{/* Unity teachings content */}
|
||||
</div>
|
||||
),
|
||||
content: <ComingSoon what="our Unity teachings" />,
|
||||
},
|
||||
{
|
||||
id: "branding",
|
||||
title: "Branding & Marketing",
|
||||
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
|
||||
accent: "#4a7a2f",
|
||||
accent: ACCENTS.green,
|
||||
background: "var(--color-surface)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
{/* Branding & marketing content */}
|
||||
</div>
|
||||
),
|
||||
content: <ComingSoon what="our branding and marketing kit" />,
|
||||
},
|
||||
{
|
||||
id: "partner",
|
||||
title: "Partner Resources",
|
||||
blurb: "Material for the organizations we collaborate with.",
|
||||
accent: "#7a5ea8",
|
||||
accent: ACCENTS.mint,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
{/* Partner resources content */}
|
||||
</div>
|
||||
),
|
||||
content: <ComingSoon what="resources for partners" />,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import PageShell from "../components/PageShell.tsx";
|
|||
import { sitePage } from "../lib/site.ts";
|
||||
import { useSectionManifest } from "../lib/sections.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. */
|
||||
const PAGE = sitePage("/retreats");
|
||||
|
|
@ -46,7 +47,7 @@ const SECTIONS = [
|
|||
id: "national",
|
||||
title: "National Retreats",
|
||||
blurb: "Our flagship gatherings, open to young adults across the country.",
|
||||
accent: "#0f7183",
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
Component: EventListCards,
|
||||
props: { scope: "national", ...RETREATS },
|
||||
|
|
@ -56,7 +57,7 @@ const SECTIONS = [
|
|||
id: "regional",
|
||||
title: "Regional Retreats",
|
||||
blurb: "Smaller gatherings hosted by regions throughout the year.",
|
||||
accent: "#4a7a2f",
|
||||
accent: ACCENTS.green,
|
||||
background: "var(--color-surface)",
|
||||
Component: EventListCards,
|
||||
props: { scope: "regional", ...RETREATS },
|
||||
|
|
@ -66,7 +67,7 @@ const SECTIONS = [
|
|||
id: "partner",
|
||||
title: "Partner Events",
|
||||
blurb: "Retreats hosted by organizations we collaborate with.",
|
||||
accent: "#7a5ea8",
|
||||
accent: ACCENTS.mint,
|
||||
background: "var(--color-tint)",
|
||||
Component: EventListCards,
|
||||
props: { scope: "partner", ...RETREATS },
|
||||
|
|
@ -81,7 +82,7 @@ const SECTIONS = [
|
|||
id: "local",
|
||||
title: "Local Events",
|
||||
blurb: "Hosted by individual chapters.",
|
||||
accent: "#9a5b17",
|
||||
accent: ACCENTS.green,
|
||||
background: "var(--color-surface)",
|
||||
Component: EventListCards,
|
||||
props: { scope: "local", ...RETREATS_ONLY },
|
||||
|
|
@ -91,7 +92,7 @@ const SECTIONS = [
|
|||
id: "international",
|
||||
title: "International Events",
|
||||
blurb: "Gatherings beyond the US.",
|
||||
accent: "#2f6bb5",
|
||||
accent: ACCENTS.deep,
|
||||
background: "var(--color-tint)",
|
||||
Component: EventListCards,
|
||||
props: { scope: "international", ...RETREATS_ONLY },
|
||||
|
|
@ -101,7 +102,7 @@ const SECTIONS = [
|
|||
id: "other",
|
||||
title: "Other Events",
|
||||
blurb: "Everything that doesn't fit the categories above.",
|
||||
accent: "#5d6c70",
|
||||
accent: ACCENTS.mint,
|
||||
background: "var(--color-surface)",
|
||||
Component: EventListCards,
|
||||
props: { scope: "other", ...RETREATS_ONLY },
|
||||
|
|
|
|||
|
|
@ -20,9 +20,8 @@ import ContentBlocks from '../components/ContentBlocks.tsx'
|
|||
import PeopleTiles from '../components/PeopleTiles.tsx'
|
||||
import { useTeam } from '../lib/useContent.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)'
|
||||
|
||||
export default function TeamDetail() {
|
||||
|
|
@ -43,7 +42,7 @@ export default function TeamDetail() {
|
|||
)
|
||||
}
|
||||
|
||||
const accent = team.color || TEAL
|
||||
const accent = team.color || BRAND
|
||||
const hasAbout =
|
||||
team.description.length > 0 || team.blocks.length > 0 || team.links.length > 0
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { Link } from "react-router-dom";
|
|||
import LegalText, { type LegalPart } from "../components/LegalText.tsx";
|
||||
import PageShell from "../components/PageShell.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import { BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/terms");
|
||||
|
|
@ -82,7 +83,7 @@ const SECTIONS = [
|
|||
id: "terms",
|
||||
title: "Terms of Service",
|
||||
blurb: `Last updated: ${LAST_UPDATED}`,
|
||||
accent: "#0f7183",
|
||||
accent: BRAND,
|
||||
background: "var(--color-surface)",
|
||||
content: <LegalText parts={PARTS} />,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,9 +18,8 @@ import { useCallback, useEffect, useRef, useState, type ReactNode } from "react"
|
|||
import { Link } from "react-router-dom";
|
||||
|
||||
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 POLL_MS = 2000;
|
||||
|
||||
|
|
@ -234,7 +233,7 @@ function Editor({ source, onMade }: { source: Job; onMade: () => void }) {
|
|||
<button
|
||||
type="button"
|
||||
className="text-sm underline"
|
||||
style={{ color: accentText(TEAL) }}
|
||||
style={{ color: accentText(BRAND) }}
|
||||
onClick={() => {
|
||||
if (videoRef.current) videoRef.current.currentTime = value;
|
||||
}}
|
||||
|
|
@ -245,7 +244,7 @@ function Editor({ source, onMade }: { source: Job; onMade: () => void }) {
|
|||
</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."}
|
||||
</p>
|
||||
|
||||
|
|
@ -359,7 +358,7 @@ export default function AdminClips() {
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
@ -481,7 +480,7 @@ export default function AdminClips() {
|
|||
</>
|
||||
)}
|
||||
{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
|
||||
</Link>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
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 { useAuth } from "../../lib/auth.tsx";
|
||||
import { SITE_VERSION } from "../../lib/version.ts";
|
||||
|
|
@ -48,7 +49,7 @@ function NavCard({ item }) {
|
|||
aria-hidden="true"
|
||||
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>
|
||||
</div>
|
||||
|
||||
|
|
@ -139,7 +140,7 @@ export default function AdminHome() {
|
|||
{/* 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">
|
||||
<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 && (
|
||||
<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"
|
||||
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>
|
||||
</PanelSection>
|
||||
</aside>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ const GOOGLE_ERRORS: Record<string, string> = {
|
|||
};
|
||||
|
||||
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";
|
||||
|
||||
export default function AdminLogin() {
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ function Stat({ label, value }) {
|
|||
<div className="text-xs font-medium uppercase tracking-wider text-muted/70">
|
||||
{label}
|
||||
</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>
|
||||
);
|
||||
}
|
||||
|
|
@ -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"
|
||||
>
|
||||
{row.label}{" "}
|
||||
<strong className="font-semibold text-[#0f2f36]">
|
||||
<strong className="font-semibold text-ink">
|
||||
{row.count ?? "-"}
|
||||
</strong>
|
||||
</span>
|
||||
|
|
@ -232,7 +232,7 @@ export default function AdminPanel() {
|
|||
return (
|
||||
<tr key={row.id} className={row.is_active ? "" : "bg-tint-soft"}>
|
||||
<td className="px-4 py-3">
|
||||
<div className="font-medium text-[#0f2f36]">
|
||||
<div className="font-medium text-ink">
|
||||
{row.name || row.email}
|
||||
{isMe && (
|
||||
<span className="ml-2 text-xs font-normal text-muted/70">
|
||||
|
|
@ -255,7 +255,7 @@ export default function AdminPanel() {
|
|||
value={row.role}
|
||||
disabled={locked || busy}
|
||||
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={
|
||||
isMe
|
||||
? "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">
|
||||
{ROLES.map((role) => (
|
||||
<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]}
|
||||
</dt>
|
||||
<dd className="text-muted">{ROLE_NOTES[role]}</dd>
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
why the array form exists and teams uses it.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { ArrowLeft } from "@phosphor-icons/react";
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useNavigate, useParams } from "react-router-dom";
|
||||
|
||||
|
|
@ -358,7 +359,7 @@ export default function EntityEdit() {
|
|||
onClick={() => leave(`/admin/${manifest.key}`)}
|
||||
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>
|
||||
)}
|
||||
|
||||
|
|
@ -470,7 +471,7 @@ export default function EntityEdit() {
|
|||
</div>
|
||||
|
||||
{/* 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">
|
||||
{canWrite ? (
|
||||
<>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import { mediaUrl } from '../../lib/media.ts'
|
|||
import { preview } from '../../lib/text.ts'
|
||||
import { postDate, useCommunityBlog, type BlogPostSummary } from '../../lib/useBlog.ts'
|
||||
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'
|
||||
|
||||
/* 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">
|
||||
{(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(' · ')}
|
||||
</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()
|
||||
|
||||
if (!blog) {
|
||||
|
|
@ -112,7 +112,7 @@ export default function CommunityBlog({ accent = '#0f7183' }: { accent?: string
|
|||
{hasInternal && (
|
||||
<div>
|
||||
<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) => (
|
||||
<PostCard key={post.id} post={post} accent={accent} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@
|
|||
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 { 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 { eventHref } from '../../lib/hrefs.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 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". */
|
||||
const MAX_LANES = 3
|
||||
|
||||
const TEAL = '#0f7183'
|
||||
const INK = 'var(--color-ink)'
|
||||
const BODY = 'var(--color-muted)'
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ export default function EventCalendar({
|
|||
host,
|
||||
status,
|
||||
type,
|
||||
accent = TEAL,
|
||||
accent = BRAND,
|
||||
controls = ALL_CONTROLS,
|
||||
defaultView = 'month',
|
||||
}: EventCalendarProps) {
|
||||
|
|
@ -312,10 +312,10 @@ export default function EventCalendar({
|
|||
<div className="flex flex-wrap items-center gap-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<NavButton label="Previous month" onClick={() => go(shiftMonth(month, -1))} accent={accent}>
|
||||
‹
|
||||
<CaretLeft size={20} weight="bold" aria-hidden="true" />
|
||||
</NavButton>
|
||||
<NavButton label="Next month" onClick={() => go(shiftMonth(month, 1))} accent={accent}>
|
||||
›
|
||||
<CaretRight size={20} weight="bold" aria-hidden="true" />
|
||||
</NavButton>
|
||||
</div>
|
||||
|
||||
|
|
@ -381,7 +381,7 @@ export default function EventCalendar({
|
|||
/>
|
||||
)}
|
||||
{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
|
||||
type="checkbox"
|
||||
checked={onlineOnly}
|
||||
|
|
@ -399,7 +399,7 @@ export default function EventCalendar({
|
|||
onChange={(e) => setQuery(e.target.value)}
|
||||
placeholder="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 && (
|
||||
|
|
@ -422,7 +422,7 @@ export default function EventCalendar({
|
|||
Couldn’t load events. {error.message}
|
||||
</p>
|
||||
) : 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' && (
|
||||
|
|
@ -460,7 +460,7 @@ export default function EventCalendar({
|
|||
className="font-semibold hover:underline"
|
||||
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>
|
||||
) : filtering ? (
|
||||
'Nothing matches these filters.'
|
||||
|
|
@ -593,14 +593,14 @@ function Bar({ seg, accent }: { seg: Segment; accent: string }) {
|
|||
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">
|
||||
{seg.time && seg.span === 1 && <span className="font-normal opacity-85">{seg.time.split(' – ')[0]} </span>}
|
||||
{seg.event.title}
|
||||
</span>
|
||||
{seg.continuesAfter && (
|
||||
<span className="ml-auto" aria-hidden="true">
|
||||
→
|
||||
<ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
||||
</span>
|
||||
)}
|
||||
</Link>
|
||||
|
|
@ -749,7 +749,7 @@ function NavButton({
|
|||
label: string
|
||||
onClick: () => void
|
||||
accent: string
|
||||
children: string
|
||||
children: ReactNode
|
||||
}) {
|
||||
return (
|
||||
<button
|
||||
|
|
@ -782,7 +782,7 @@ function FilterSelect({
|
|||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
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>
|
||||
{options.map(([id, name]) => (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { CaretDown, CaretRight, CaretLeft, Cards, SquaresFour } from '@phosphor-icons/react';
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
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 { mediaUrl } from "../../lib/media.ts";
|
||||
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
|
||||
|
|
@ -35,7 +36,6 @@ import { accentText, withAlpha, readableOn } from '../../lib/color.ts'
|
|||
fires only for an event with no host at all. */
|
||||
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 CARD_BG = "var(--color-surface)"; // sits under every card, photo or not
|
||||
|
||||
|
|
@ -131,8 +131,8 @@ function TitleLink({ ev, linked, children }) {
|
|||
═══════════════════════════════════════════════════════════════ */
|
||||
export function Card({
|
||||
ev,
|
||||
defaultColor = TEAL,
|
||||
accent = TEAL,
|
||||
defaultColor = BRAND,
|
||||
accent = BRAND,
|
||||
compact = false,
|
||||
interactive = 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"
|
||||
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">
|
||||
<rect x="7" y="5" width="10" height="14" rx="2" />
|
||||
<path d="M3.5 8v8M20.5 8v8" />
|
||||
</svg>
|
||||
<Cards className="h-4 w-4" weight="bold" aria-hidden="true" />
|
||||
Carousel
|
||||
</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"
|
||||
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">
|
||||
<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>
|
||||
<SquaresFour className="h-4 w-4" weight="bold" aria-hidden="true" />
|
||||
Grid
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -437,7 +429,7 @@ export default function EventListCards({
|
|||
status,
|
||||
type,
|
||||
view = "carousel",
|
||||
accent = TEAL,
|
||||
accent = BRAND,
|
||||
defaultColor,
|
||||
empty = "· Events coming soon, stay connected for announcements ·",
|
||||
}: any) {
|
||||
|
|
@ -630,19 +622,7 @@ export default function EventListCards({
|
|||
{showPast
|
||||
? "Hide past events"
|
||||
: `See past events (${pastEvents.length})`}
|
||||
<svg
|
||||
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>
|
||||
<CaretDown className="h-4 w-4 transition-transform duration-300" style={{ transform: showPast ? "rotate(180deg)" : "none" }} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</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"
|
||||
style={arrowStyle(index > 0)}
|
||||
>
|
||||
‹
|
||||
<CaretLeft size={20} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
<button
|
||||
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"
|
||||
style={arrowStyle(index < events.length - 1)}
|
||||
>
|
||||
›
|
||||
<CaretRight size={20} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@
|
|||
need an email, since the answer has to go somewhere.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { CaretDown } from '@phosphor-icons/react';
|
||||
import { useState } from "react";
|
||||
import { post, ApiError } from "../../lib/api.ts";
|
||||
import { PAGE_LINKS, PAGE_SECTIONS } from "../../navConfig.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 MAX_CHARS = 1500;
|
||||
const MIN_MESSAGE = 10; // matches the server
|
||||
|
|
@ -35,8 +35,8 @@ const WHOLE_PAGE = "";
|
|||
/* ── Shared field chrome ─────────────────────────────────────── */
|
||||
|
||||
const fieldClass =
|
||||
"w-full rounded-xl border border-muted/25 bg-surface px-4 py-3 text-body " +
|
||||
"placeholder:text-muted/50 outline-none transition-colors " +
|
||||
"w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
|
||||
"placeholder:text-muted outline-none transition-colors " +
|
||||
"focus:border-brand focus:ring-2 focus:ring-brand/25";
|
||||
|
||||
const errorFieldClass = "border-danger focus:border-danger focus:ring-danger/20";
|
||||
|
|
@ -76,21 +76,7 @@ function Select({ id, label, value, onChange, children }) {
|
|||
>
|
||||
{children}
|
||||
</select>
|
||||
<svg
|
||||
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>
|
||||
<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 }} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
@ -297,7 +283,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
|
|||
aria-live="polite"
|
||||
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
|
||||
</h3>
|
||||
{where && (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { ArrowUpRight } from '@phosphor-icons/react';
|
||||
import ArrowLink from "../../components/ArrowLink.tsx";
|
||||
import { mediaUrl } from "../../lib/media.ts";
|
||||
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"
|
||||
style={{ border: `1px solid ${color}`, color }}
|
||||
>
|
||||
{siteLabel} ↗
|
||||
{siteLabel} <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
||||
</a>
|
||||
)}
|
||||
|
||||
|
|
@ -171,7 +172,7 @@ export default function OrgListCards({
|
|||
pageLabel = "Learn more",
|
||||
siteLabel = "Visit site",
|
||||
sort = byName,
|
||||
empty = "· Nothing to show here just yet ·",
|
||||
empty = "Nothing to show here yet.",
|
||||
}) {
|
||||
const { organizations, loading, error } = useOrganizations(kind);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { CaretRight, X } from '@phosphor-icons/react';
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { useCommunity } from "../../lib/chapters.ts";
|
||||
import { Link } from "react-router-dom";
|
||||
|
|
@ -526,17 +527,7 @@ function ChapterCard({ chapter, color, open, onOpen }) {
|
|||
transform: open ? "rotate(90deg)" : "none",
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
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>
|
||||
<CaretRight className="h-4 w-4" weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
|
||||
{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"
|
||||
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
||||
>
|
||||
×
|
||||
<X size={20} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { ArrowUpRight, CaretRight } from '@phosphor-icons/react';
|
||||
import { useId, useState } from "react";
|
||||
import ArrowLink from "../../components/ArrowLink.tsx";
|
||||
import { mediaUrl } from "../../lib/media.ts";
|
||||
|
|
@ -108,19 +109,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
|
|||
aria-controls={panelId}
|
||||
className="flex-1 min-w-0 flex items-center gap-3 text-left py-1"
|
||||
>
|
||||
<svg
|
||||
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>
|
||||
<CaretRight className="ol-chevron h-4 w-4 shrink-0" style={{ color, transform: open ? "rotate(90deg)" : "none" }} weight="bold" aria-hidden="true" />
|
||||
|
||||
<OrgMark org={org} color={color} />
|
||||
|
||||
|
|
@ -155,7 +144,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
|
|||
rel="noopener noreferrer"
|
||||
color={color}
|
||||
>
|
||||
{siteLabel} ↗
|
||||
{siteLabel} <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
||||
</RowButton>
|
||||
)}
|
||||
|
||||
|
|
@ -256,7 +245,7 @@ export default function OrgListVertical({
|
|||
pageLabel = "Region page",
|
||||
siteLabel = "Visit site",
|
||||
sort = byName,
|
||||
empty = "· Nothing to show here just yet ·",
|
||||
empty = "Nothing to show here yet.",
|
||||
}) {
|
||||
const { organizations, loading, error } = useOrganizations(kind);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 { siteUrl } from '../../lib/site.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)'
|
||||
|
||||
/* PNG download size in pixels. Plenty for print at a few inches;
|
||||
|
|
@ -329,7 +328,7 @@ export default function QrCodeMaker() {
|
|||
placeholder="https://… or /retreats"
|
||||
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
|
||||
? '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).'}
|
||||
|
|
@ -407,7 +406,7 @@ export default function QrCodeMaker() {
|
|||
setDoveColor(QR_DOVE)
|
||||
}}
|
||||
className="pb-2 text-sm underline"
|
||||
style={{ color: accentText(TEAL) }}
|
||||
style={{ color: accentText(BRAND) }}
|
||||
>
|
||||
Reset colours
|
||||
</button>
|
||||
|
|
@ -431,7 +430,7 @@ export default function QrCodeMaker() {
|
|||
type="button"
|
||||
onClick={copy}
|
||||
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'}
|
||||
</button>
|
||||
|
|
@ -488,7 +487,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
|
|||
}
|
||||
|
||||
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'
|
||||
|
||||
/* A colour well with its hex beside it, both editable. */
|
||||
|
|
@ -526,7 +525,7 @@ function ColourInput({
|
|||
setText(e.target.value)
|
||||
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>
|
||||
|
|
@ -534,7 +533,7 @@ function ColourInput({
|
|||
}
|
||||
|
||||
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'
|
||||
|
||||
function Select({
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
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 { Link } from 'react-router-dom'
|
||||
|
||||
|
|
@ -26,10 +27,9 @@ import HomeLink from './HomeLink.tsx'
|
|||
import { useHistory } from '../../../lib/useHistory.ts'
|
||||
import { hrefFor, logoSrc } from '../../../lib/timelineRefs.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';
|
||||
|
||||
const TEAL = '#0f7183'
|
||||
const DRAG_SLOP = 6
|
||||
|
||||
type RailProps = { id: string; title: string; blurb?: string | null }
|
||||
|
|
@ -76,7 +76,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
|
|||
}
|
||||
|
||||
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>
|
||||
<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 && (
|
||||
<div className="ml-auto flex gap-2">
|
||||
{[
|
||||
[-1, '‹', 'Earlier'],
|
||||
[1, '›', 'Later'],
|
||||
[-1, <CaretLeft size={22} weight="bold" aria-hidden="true" />, 'Earlier'],
|
||||
[1, <CaretRight size={22} weight="bold" aria-hidden="true" />, 'Later'],
|
||||
].map(([direction, glyph, label]) => (
|
||||
<button
|
||||
key={label}
|
||||
key={label as string}
|
||||
type="button"
|
||||
onClick={() => step(direction as number)}
|
||||
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"
|
||||
style={{ borderColor: TEAL, color: accentText(TEAL) }}
|
||||
style={{ borderColor: BRAND, color: accentText(BRAND) }}
|
||||
>
|
||||
{glyph}
|
||||
</button>
|
||||
|
|
@ -116,7 +116,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
|
|||
) : loading ? (
|
||||
<div className="mx-auto mt-12 flex max-w-6xl gap-6 px-6" aria-hidden="true">
|
||||
{[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>
|
||||
) : (
|
||||
|
|
@ -156,11 +156,11 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
|
|||
to="/history"
|
||||
draggable={false}
|
||||
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="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>
|
||||
</div>
|
||||
</li>
|
||||
|
|
@ -194,10 +194,10 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
|
|||
alt=""
|
||||
loading="lazy"
|
||||
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)}
|
||||
</p>
|
||||
<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>
|
||||
)}
|
||||
{href && (
|
||||
<span className="mt-auto pt-5 text-sm font-semibold" style={{ color: accentText(TEAL) }}>
|
||||
Read more →
|
||||
<span className="mt-auto pt-5 text-sm font-semibold" style={{ color: accentText(BRAND) }}>
|
||||
Read more <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
||||
</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" />
|
||||
<span
|
||||
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 && (
|
||||
<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"
|
||||
style={{ background: TEAL }}
|
||||
style={{ background: BRAND }}
|
||||
>
|
||||
{year(item)}
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
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 { Link } from 'react-router-dom'
|
||||
|
|
@ -48,7 +49,6 @@ import { mediaUrl } from '../../../lib/media.ts'
|
|||
import { eventHref } from '../../../lib/hrefs.ts'
|
||||
import { seriesLabel } from '../../../lib/eventSeries.ts'
|
||||
import type { Hero, HeroBackdrop, HeroEvent, HeroFeature, HeroSlide } from '../../../lib/useFrontPage.ts'
|
||||
import { withAlpha } from '../../../lib/color.ts'
|
||||
|
||||
const DEEP = '#04262e'
|
||||
|
||||
|
|
@ -131,12 +131,12 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
|
|||
</p>
|
||||
) : 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">
|
||||
<span className="text-[#9fe7d0]" aria-hidden="true">★</span>
|
||||
<Star className="text-[#9fe7d0]" weight="fill" aria-hidden="true" />
|
||||
Featured event
|
||||
</p>
|
||||
) : 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">
|
||||
<span className="text-[#9fe7d0]" aria-hidden="true">▶</span>
|
||||
<Play className="text-[#9fe7d0]" weight="fill" aria-hidden="true" />
|
||||
Featured video
|
||||
{hero.video?.title && (
|
||||
<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}
|
||||
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>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -208,8 +208,8 @@ function BrandBackdrop() {
|
|||
return (
|
||||
<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--b" style={blob('#10d48a', '38vw', '45%', '20%')} />
|
||||
<div className="hp-aurora hp-aurora--c" style={blob('#d8b64a', '30vw', '70%', '-5%')} />
|
||||
<div className="hp-aurora hp-aurora--b" style={blob('#9fe7d0', '38vw', '45%', '20%')} />
|
||||
<div className="hp-aurora hp-aurora--c" style={blob('#aac992', '30vw', '70%', '-5%')} />
|
||||
|
||||
<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]"
|
||||
|
|
@ -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">
|
||||
{current.link_url ? (
|
||||
<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>
|
||||
) : (
|
||||
current.caption
|
||||
|
|
@ -344,7 +344,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
|
|||
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"
|
||||
>
|
||||
{paused ? '▶' : '❚❚'}
|
||||
{paused ? <Play size={14} weight="fill" aria-hidden="true" /> : <Pause size={14} weight="fill" aria-hidden="true" />}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -362,7 +362,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
|
|||
return (
|
||||
<div
|
||||
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">
|
||||
{src && watching ? (
|
||||
|
|
@ -419,7 +419,7 @@ function VideoFrame({
|
|||
return (
|
||||
<div
|
||||
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">
|
||||
{source?.kind === 'file' ? (
|
||||
|
|
@ -455,7 +455,7 @@ function VideoFrame({
|
|||
to its page. The first action link is the filled button, since
|
||||
it's usually Register. */
|
||||
function EventPanel({ event }: { event: HeroEvent }) {
|
||||
const color = event.color || '#0f7183'
|
||||
const color = event.color || 'var(--color-action)'
|
||||
const photo = mediaUrl(event.card_image)
|
||||
const when = seriesLabel(event.series, event.starts_on) ?? event.date_label
|
||||
const where = event.is_online && !event.location_label ? 'Online' : event.location_label
|
||||
|
|
@ -463,7 +463,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
|
|||
return (
|
||||
<div
|
||||
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 ? (
|
||||
<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)}
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@
|
|||
blurb from the admin aren't drawn here.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { ArrowRight } from '@phosphor-icons/react'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
import { eventHref } from '../../../lib/hrefs.ts'
|
||||
import { upcomingOccurrences } from '../../../lib/eventSeries.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'. */
|
||||
function localMoment(date: string, time?: string | null): Date | null {
|
||||
|
|
@ -65,7 +65,7 @@ export default function NextEventCountdown({
|
|||
}) {
|
||||
const now = useNow(1000)
|
||||
const when = target(event)
|
||||
const accent = event.color || TEAL
|
||||
const accent = event.color || BRAND
|
||||
|
||||
const remaining = when ? when.getTime() - now : 0
|
||||
const live = !when || remaining <= 0
|
||||
|
|
@ -86,7 +86,7 @@ export default function NextEventCountdown({
|
|||
>
|
||||
<Link
|
||||
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)}` }}
|
||||
>
|
||||
<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"
|
||||
style={{ color: accentText(accent) }}
|
||||
>
|
||||
Details →
|
||||
Details <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
||||
</span>
|
||||
</Link>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -15,11 +15,12 @@
|
|||
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 HomeLink, { isExternal } from './HomeLink.tsx'
|
||||
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 = {
|
||||
id: string
|
||||
|
|
@ -30,7 +31,34 @@ type PathfinderProps = {
|
|||
|
||||
/* One accent per position, cycling. Paths are data; colour is
|
||||
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) {
|
||||
const [selected, setSelected] = useState(0)
|
||||
|
|
@ -40,7 +68,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
if (paths.length === 0) return null
|
||||
|
||||
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 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="grid gap-12 lg:grid-cols-12">
|
||||
<div className="lg:col-span-5">
|
||||
<p className="text-xs font-bold uppercase tracking-[0.3em] text-link">
|
||||
I’m looking to…
|
||||
</p>
|
||||
<h2 className="mt-3 font-display text-4xl font-extrabold text-ink md:text-5xl">
|
||||
<h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
|
||||
{title}
|
||||
</h2>
|
||||
{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) => {
|
||||
const on = index === selected
|
||||
const color = ACCENTS[index % ACCENTS.length]
|
||||
const color = PATH_ACCENTS[index % PATH_ACCENTS.length]
|
||||
return (
|
||||
<button
|
||||
key={`${option.label}-${index}`}
|
||||
|
|
@ -107,10 +132,13 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
>
|
||||
<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"
|
||||
style={{ background: on ? color : `${withAlpha(color, 12)}` }}
|
||||
style={{
|
||||
background: on ? color : `${withAlpha(color, 12)}`,
|
||||
color: on ? readableOn(color) : accentText(color),
|
||||
}}
|
||||
aria-hidden="true"
|
||||
>
|
||||
{option.icon || '•'}
|
||||
<PathIcon value={option.icon} />
|
||||
</span>
|
||||
<span className="font-display text-xl font-bold" style={{ color: on ? accentText(color) : 'var(--color-ink)' }}>
|
||||
{option.label}
|
||||
|
|
@ -120,7 +148,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
style={{ color, opacity: on ? 1 : 0 }}
|
||||
aria-hidden="true"
|
||||
>
|
||||
→
|
||||
<ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
|
||||
</span>
|
||||
</button>
|
||||
)
|
||||
|
|
@ -133,15 +161,9 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
|||
id={`${base}-panel`}
|
||||
role="tabpanel"
|
||||
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) }}
|
||||
>
|
||||
<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 && (
|
||||
<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) }}
|
||||
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>
|
||||
{action.description && (
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@
|
|||
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 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 }
|
||||
|
||||
|
|
@ -29,13 +29,13 @@ export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
|
|||
<Link
|
||||
to="/retreats"
|
||||
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>
|
||||
</div>
|
||||
|
||||
<EventListCards scope="national" type="retreat" view="carousel" accent={TEAL} />
|
||||
<EventListCards scope="national" type="retreat" view="carousel" accent={BRAND} />
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,12 +51,12 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
|
|||
>
|
||||
<div
|
||||
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"
|
||||
/>
|
||||
|
||||
<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}
|
||||
</h2>
|
||||
{blurb && <p className="mt-3 max-w-2xl text-white/70">{blurb}</p>}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue