Codebase audits, privacy, dark mode, palette (v1.9.0 to v1.9.4-audit) #14
61 changed files with 310 additions and 207 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title><!-- site:title --></title>
|
<title><!-- site:title --></title>
|
||||||
<script src="https://js.churchcenter.com/modal/v1"></script>
|
|
||||||
<!-- site:head-end -->
|
<!-- site:head-end -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -206,6 +206,7 @@ const blocksChild = (ownerKind) => ({
|
||||||
text("person_id"),
|
text("person_id"),
|
||||||
text("description"),
|
text("description"),
|
||||||
text("media"),
|
text("media"),
|
||||||
|
text("media_alt"),
|
||||||
text("map"),
|
text("map"),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
@ -840,6 +841,7 @@ const blogPosts = {
|
||||||
text("title", { required: true }),
|
text("title", { required: true }),
|
||||||
text("excerpt"),
|
text("excerpt"),
|
||||||
text("cover_image"),
|
text("cover_image"),
|
||||||
|
text("cover_alt"),
|
||||||
date("published_on"),
|
date("published_on"),
|
||||||
text("tags"),
|
text("tags"),
|
||||||
text("guest_author"),
|
text("guest_author"),
|
||||||
|
|
|
||||||
13
server/src/migrations/038_image_alt_text.sql
Normal file
13
server/src/migrations/038_image_alt_text.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- ═══════════════════════════════════════════════════════════════
|
||||||
|
-- 038 ALT TEXT FOR BLOG COVERS AND SCHEDULE GRAPHICS
|
||||||
|
--
|
||||||
|
-- Both images can carry information (a flyer, a site map, a cover
|
||||||
|
-- photo that sets the scene), so each gets its own description for
|
||||||
|
-- screen readers. Blank means decorative: the image is skipped.
|
||||||
|
--
|
||||||
|
-- blog_posts.cover_alt the cover image's description
|
||||||
|
-- content_block_items.media_alt a schedule entry graphic's
|
||||||
|
-- ═══════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
|
ALTER TABLE blog_posts ADD COLUMN cover_alt TEXT;
|
||||||
|
ALTER TABLE content_block_items ADD COLUMN media_alt TEXT;
|
||||||
|
|
@ -103,6 +103,7 @@ blog.get("/blog/:id", (c) => {
|
||||||
title: row.title,
|
title: row.title,
|
||||||
excerpt: row.excerpt,
|
excerpt: row.excerpt,
|
||||||
cover_image: row.cover_image,
|
cover_image: row.cover_image,
|
||||||
|
cover_alt: row.cover_alt,
|
||||||
published_on: row.published_on,
|
published_on: row.published_on,
|
||||||
tags: splitTags(row.tags),
|
tags: splitTags(row.tags),
|
||||||
authors,
|
authors,
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ export function loadBlocks(db, ownerKind, ids, slot = "body") {
|
||||||
const itemRows = db
|
const itemRows = db
|
||||||
.prepare(
|
.prepare(
|
||||||
`SELECT i.block_id, i.text, i.detail, i.url,
|
`SELECT i.block_id, i.text, i.detail, i.url,
|
||||||
i.day, i.time, i.location, i.description, i.media, i.map,
|
i.day, i.time, i.location, i.description, i.media, i.media_alt, i.map,
|
||||||
p.id AS person_id, p.display_name AS person_name,
|
p.id AS person_id, p.display_name AS person_name,
|
||||||
p.photo AS person_photo, p.tagline AS person_tagline
|
p.photo AS person_photo, p.tagline AS person_tagline
|
||||||
FROM content_block_items i
|
FROM content_block_items i
|
||||||
|
|
@ -122,6 +122,7 @@ export function loadBlocks(db, ownerKind, ids, slot = "body") {
|
||||||
location: row.location,
|
location: row.location,
|
||||||
description: row.description,
|
description: row.description,
|
||||||
media: row.media,
|
media: row.media,
|
||||||
|
media_alt: row.media_alt,
|
||||||
map: row.map,
|
map: row.map,
|
||||||
person: row.person_id
|
person: row.person_id
|
||||||
? {
|
? {
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ const BODY = '#4a6b72'
|
||||||
|
|
||||||
export default function ContentBlocks({
|
export default function ContentBlocks({
|
||||||
blocks,
|
blocks,
|
||||||
accent = '#138ba0',
|
accent = '#0f7183',
|
||||||
className = '',
|
className = '',
|
||||||
}: {
|
}: {
|
||||||
blocks?: ContentBlock[] | null
|
blocks?: ContentBlock[] | null
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ function Card({ card }: { card: FeaturedCard }) {
|
||||||
const text = (
|
const text = (
|
||||||
<div className="flex flex-1 flex-col p-6">
|
<div className="flex flex-1 flex-col p-6">
|
||||||
{card.eyebrow && (
|
{card.eyebrow && (
|
||||||
<p className="text-xs font-bold uppercase tracking-[0.2em] text-[#138ba0]">{card.eyebrow}</p>
|
<p className="text-xs font-bold uppercase tracking-[0.2em] text-[#0f7183]">{card.eyebrow}</p>
|
||||||
)}
|
)}
|
||||||
{card.title && (
|
{card.title && (
|
||||||
<h3 className="mt-2 font-display text-xl font-extrabold leading-snug text-[#073d4a]">
|
<h3 className="mt-2 font-display text-xl font-extrabold leading-snug text-[#073d4a]">
|
||||||
|
|
|
||||||
|
|
@ -40,13 +40,13 @@ const Footer_Links = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const footerLinkClass =
|
const footerLinkClass =
|
||||||
"text-white/40 hover:text-[#aac992] text-sm transition-colors";
|
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
|
||||||
|
|
||||||
const pageLinkClass =
|
const pageLinkClass =
|
||||||
"text-white/80 hover:text-[#aac992] text-sm font-semibold transition-colors";
|
"text-white/80 hover:text-[#aac992] text-sm font-semibold transition-colors";
|
||||||
|
|
||||||
const sectionLinkClass =
|
const sectionLinkClass =
|
||||||
"text-white/45 hover:text-[#aac992] text-sm transition-colors";
|
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
|
||||||
|
|
||||||
const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
||||||
|
|
||||||
|
|
@ -67,7 +67,7 @@ export default function Footer() {
|
||||||
<br />
|
<br />
|
||||||
{Organization_Details.cityLine}
|
{Organization_Details.cityLine}
|
||||||
<br />
|
<br />
|
||||||
<span className="text-white/40">({Organization_Details.addressNote})</span>
|
<span className="text-white/65">({Organization_Details.addressNote})</span>
|
||||||
</address>
|
</address>
|
||||||
<p className="mt-3 max-w-xl text-sm leading-relaxed text-white/60">
|
<p className="mt-3 max-w-xl text-sm leading-relaxed text-white/60">
|
||||||
{Organization_Details.nonprofit} Tax ID: {Organization_Details.taxId}.
|
{Organization_Details.nonprofit} Tax ID: {Organization_Details.taxId}.
|
||||||
|
|
@ -111,7 +111,7 @@ export default function Footer() {
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="inline-block mt-8 px-6 py-2.5 rounded-full text-sm font-bold text-white whitespace-nowrap transition-all duration-200 hover:scale-105"
|
className="inline-block mt-8 px-6 py-2.5 rounded-full text-sm font-bold text-white whitespace-nowrap transition-all duration-200 hover:scale-105"
|
||||||
style={{ background: "linear-gradient(135deg, #008fa8, #88b668)" }}
|
style={{ background: "#0f7183" }}
|
||||||
>
|
>
|
||||||
Support Us
|
Support Us
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -161,7 +161,7 @@ export default function Footer() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="border-t border-white/10 pt-8 flex flex-col md:flex-row items-center justify-between gap-4">
|
<div className="border-t border-white/10 pt-8 flex flex-col md:flex-row items-center justify-between gap-4">
|
||||||
<p className="text-white/40 text-sm">© 2026 Next Generation of Unity. All rights reserved.</p>
|
<p className="text-white/65 text-sm">© 2026 Next Generation of Unity. All rights reserved.</p>
|
||||||
<div className="flex gap-6">
|
<div className="flex gap-6">
|
||||||
{Footer_Links.map((link) => (
|
{Footer_Links.map((link) => (
|
||||||
<Link key={link.label} to={link.to} className={footerLinkClass}>
|
<Link key={link.label} to={link.to} className={footerLinkClass}>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const ACTION_VARIANTS: Record<
|
||||||
},
|
},
|
||||||
fancy: {
|
fancy: {
|
||||||
className: "font-bold text-white hover:scale-105",
|
className: "font-bold text-white hover:scale-105",
|
||||||
style: { background: "linear-gradient(135deg, #008fa8, #88b668)" },
|
style: { background: "#0f7183" },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -73,6 +73,7 @@ export default function Layout() {
|
||||||
const [activeSection, setActiveSection] = useState<string | null>(null);
|
const [activeSection, setActiveSection] = useState<string | null>(null);
|
||||||
const [headerHeight, setHeaderHeight] = useState(72);
|
const [headerHeight, setHeaderHeight] = useState(72);
|
||||||
const headerRef = useRef<HTMLElement>(null);
|
const headerRef = useRef<HTMLElement>(null);
|
||||||
|
const closeMenuRef = useRef<HTMLButtonElement>(null);
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const sections = PAGE_SECTIONS[location.pathname] ?? [];
|
const sections = PAGE_SECTIONS[location.pathname] ?? [];
|
||||||
|
|
@ -84,6 +85,16 @@ export default function Layout() {
|
||||||
setActiveSection(null);
|
setActiveSection(null);
|
||||||
}, [location.pathname]);
|
}, [location.pathname]);
|
||||||
|
|
||||||
|
// The open menu is modal: focus starts on its close button, Escape
|
||||||
|
// shuts it, and everything behind it is inert (below).
|
||||||
|
useEffect(() => {
|
||||||
|
if (!mobileMenuOpen) return;
|
||||||
|
closeMenuRef.current?.focus();
|
||||||
|
const onKey = (e: KeyboardEvent) => e.key === "Escape" && setMobileMenuOpen(false);
|
||||||
|
window.addEventListener("keydown", onKey);
|
||||||
|
return () => window.removeEventListener("keydown", onKey);
|
||||||
|
}, [mobileMenuOpen]);
|
||||||
|
|
||||||
// The header grows and shrinks: the banner can be dismissed and the
|
// The header grows and shrinks: the banner can be dismissed and the
|
||||||
// subnav only exists on some pages. Measure it instead of guessing,
|
// subnav only exists on some pages. Measure it instead of guessing,
|
||||||
// so the spacer below always matches.
|
// so the spacer below always matches.
|
||||||
|
|
@ -140,11 +151,18 @@ export default function Layout() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen overflow-x-hidden">
|
<div className="min-h-screen overflow-x-hidden">
|
||||||
|
<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-white focus:px-4 focus:py-2 focus:font-semibold focus:text-[#073d4a]"
|
||||||
|
>
|
||||||
|
Skip to content
|
||||||
|
</a>
|
||||||
|
|
||||||
{/* ── NAV ─────────────────────────────────────────────── */}
|
{/* ── NAV ─────────────────────────────────────────────── */}
|
||||||
<header
|
<header
|
||||||
ref={headerRef}
|
ref={headerRef}
|
||||||
className="fixed top-0 left-0 right-0 z-50 backdrop-blur-md"
|
className="fixed top-0 left-0 right-0 z-50 backdrop-blur-md"
|
||||||
|
inert={mobileMenuOpen}
|
||||||
>
|
>
|
||||||
|
|
||||||
{/* Tier 0, site-wide announcement */}
|
{/* Tier 0, site-wide announcement */}
|
||||||
|
|
@ -211,7 +229,7 @@ export default function Layout() {
|
||||||
borderBottom: "1px solid rgba(45,200,224,0.15)",
|
borderBottom: "1px solid rgba(45,200,224,0.15)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="text-xs text-white/45">{activePage?.label}</span>
|
<span className="text-xs text-white/65">{activePage?.label}</span>
|
||||||
|
|
||||||
{/* Separates the page label from its sections */}
|
{/* Separates the page label from its sections */}
|
||||||
<span
|
<span
|
||||||
|
|
@ -244,20 +262,26 @@ export default function Layout() {
|
||||||
<div aria-hidden style={{ height: headerHeight }} />
|
<div aria-hidden style={{ height: headerHeight }} />
|
||||||
|
|
||||||
{/* Page content */}
|
{/* Page content */}
|
||||||
<main>
|
<main id="main" tabIndex={-1} className="outline-none" inert={mobileMenuOpen}>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{/*Site Footer applied to every page*/}
|
{/*Site Footer applied to every page*/}
|
||||||
|
<div inert={mobileMenuOpen}>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Mobile menu */}
|
{/* Mobile menu */}
|
||||||
{mobileMenuOpen && (
|
{mobileMenuOpen && (
|
||||||
<div
|
<div
|
||||||
className="fixed inset-0 z-40 flex flex-col items-center justify-center overflow-y-auto py-16"
|
className="fixed inset-0 z-[60] flex flex-col items-center justify-center overflow-y-auto py-16"
|
||||||
style={{ background: "rgba(7,61,74,0.97)" }}
|
style={{ background: "rgba(7,61,74,0.97)" }}
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-label="Menu"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
ref={closeMenuRef}
|
||||||
className="absolute top-5 right-6 text-white text-3xl"
|
className="absolute top-5 right-6 text-white text-3xl"
|
||||||
aria-label="Close menu"
|
aria-label="Close menu"
|
||||||
onClick={() => setMobileMenuOpen(false)}
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
title: "Local Chapters",
|
title: "Local Chapters",
|
||||||
blurb: "Optional line under the section heading.",
|
blurb: "Optional line under the section heading.",
|
||||||
accent: "#138ba0", // heading, banner, rule
|
accent: "#0f7183", // heading, banner, rule
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
actions: <SomeButton />, // optional, right of the heading
|
actions: <SomeButton />, // optional, right of the heading
|
||||||
content: <YourStuff />,
|
content: <YourStuff />,
|
||||||
|
|
@ -33,7 +33,7 @@ import { useEffect, type ReactNode } from "react";
|
||||||
|
|
||||||
import { documentTitle } from "../lib/site.ts";
|
import { documentTitle } from "../lib/site.ts";
|
||||||
|
|
||||||
const TEAL = "#138ba0";
|
const TEAL = "#0f7183";
|
||||||
|
|
||||||
export type ShellSection = {
|
export type ShellSection = {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -75,7 +75,7 @@ export function Section({ section }: { section: ShellSection }) {
|
||||||
<div className="max-w-6xl mx-auto px-6 mb-10">
|
<div className="max-w-6xl mx-auto px-6 mb-10">
|
||||||
<div className="flex flex-wrap items-end justify-between gap-4">
|
<div className="flex flex-wrap items-end justify-between gap-4">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-4xl md:text-5xl font-800" style={{ color: accent }}>
|
<h2 className="text-4xl md:text-5xl font-extrabold" style={{ color: accent }}>
|
||||||
{title}
|
{title}
|
||||||
</h2>
|
</h2>
|
||||||
{blurb && <p className="mt-2 text-[#4a6b72] max-w-xl">{blurb}</p>}
|
{blurb && <p className="mt-2 text-[#4a6b72] max-w-xl">{blurb}</p>}
|
||||||
|
|
@ -103,7 +103,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
|
||||||
{/* Page header */}
|
{/* Page header */}
|
||||||
<div className="pt-24 pb-12 px-6" style={{ background: "#eef9fb" }}>
|
<div className="pt-24 pb-12 px-6" style={{ background: "#eef9fb" }}>
|
||||||
<div className="max-w-6xl mx-auto">
|
<div className="max-w-6xl mx-auto">
|
||||||
<h1 className="text-5xl md:text-6xl font-800" style={{ color: TEAL }}>
|
<h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: TEAL }}>
|
||||||
{title}
|
{title}
|
||||||
</h1>
|
</h1>
|
||||||
{intro && <p className="mt-3 text-lg text-[#4a6b72] max-w-2xl">{intro}</p>}
|
{intro && <p className="mt-3 text-lg text-[#4a6b72] max-w-2xl">{intro}</p>}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import PageShell from './PageShell.tsx'
|
import PageShell from './PageShell.tsx'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
export default function PageState({
|
export default function PageState({
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
--pl-radius: 3px;
|
--pl-radius: 3px;
|
||||||
|
|
||||||
/* color */
|
/* color */
|
||||||
--pl-accent: #138ba0;
|
--pl-accent: #0f7183;
|
||||||
--pl-frame-bg: #fff;
|
--pl-frame-bg: #fff;
|
||||||
--pl-frame-edge: rgba(15, 23, 42, 0.1);
|
--pl-frame-edge: rgba(15, 23, 42, 0.1);
|
||||||
--pl-photo-bg: #e7edef;
|
--pl-photo-bg: #e7edef;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ function Avatar({ person, size }: { person: NonNullable<ContentBlockItem['person
|
||||||
) : (
|
) : (
|
||||||
<span
|
<span
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className={`${size} flex shrink-0 items-center justify-center rounded-full bg-[#eef9fb] text-xs font-bold text-[#138ba0]`}
|
className={`${size} flex shrink-0 items-center justify-center rounded-full bg-[#eef9fb] text-xs font-bold text-[#0f7183]`}
|
||||||
>
|
>
|
||||||
{initials(person.name)}
|
{initials(person.name)}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -165,7 +165,7 @@ function Entry({ entry, accent }: { entry: ContentBlockItem; accent: string }) {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{graphic && <img src={graphic} alt="" loading="lazy" className="w-full rounded-lg" />}
|
{graphic && <img src={graphic} alt={entry.media_alt ?? ""} loading="lazy" className="w-full rounded-lg" />}
|
||||||
|
|
||||||
{place && (
|
{place && (
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import { useState } from 'react'
|
||||||
import HomeLink from '../pages/sections/home/HomeLink.tsx'
|
import HomeLink from '../pages/sections/home/HomeLink.tsx'
|
||||||
import { playingSource, videoSource, videoThumbnail } from '../lib/embeds.ts'
|
import { playingSource, videoSource, videoThumbnail } from '../lib/embeds.ts'
|
||||||
|
|
||||||
const ACCENT = '#138ba0'
|
const ACCENT = '#0f7183'
|
||||||
|
|
||||||
export default function VideoPlayer({
|
export default function VideoPlayer({
|
||||||
url,
|
url,
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ export type MediaItem = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const button =
|
const button =
|
||||||
"rounded-full border border-[#138ba0] px-3 py-1 text-sm font-medium text-[#138ba0] " +
|
"rounded-full border border-[#138ba0] px-3 py-1 text-sm font-medium text-[#0f7183] " +
|
||||||
"transition-colors hover:bg-[#eef9fb] disabled:cursor-default disabled:opacity-50";
|
"transition-colors hover:bg-[#eef9fb] disabled:cursor-default disabled:opacity-50";
|
||||||
|
|
||||||
/* A light checkerboard, so a white logo on a transparent background
|
/* A light checkerboard, so a white logo on a transparent background
|
||||||
|
|
@ -172,7 +172,7 @@ export function UploadButton({
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={keepOriginal}
|
checked={keepOriginal}
|
||||||
onChange={(e) => setKeepOriginal(e.target.checked)}
|
onChange={(e) => setKeepOriginal(e.target.checked)}
|
||||||
className="h-3.5 w-3.5 rounded border-[#4a6b72]/40 text-[#138ba0]"
|
className="h-3.5 w-3.5 rounded border-[#4a6b72]/40 text-[#0f7183]"
|
||||||
/>
|
/>
|
||||||
Keep original
|
Keep original
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -293,7 +293,7 @@ export function MediaPicker({
|
||||||
>
|
>
|
||||||
<div className="flex max-h-[85vh] flex-col">
|
<div className="flex max-h-[85vh] flex-col">
|
||||||
<div className="flex flex-wrap items-center gap-3 border-b border-[#138ba0]/15 px-5 py-4">
|
<div className="flex flex-wrap items-center gap-3 border-b border-[#138ba0]/15 px-5 py-4">
|
||||||
<h2 className="text-lg font-semibold text-[#138ba0]">Choose an image</h2>
|
<h2 className="text-lg font-semibold text-[#0f7183]">Choose an image</h2>
|
||||||
<input
|
<input
|
||||||
type="search"
|
type="search"
|
||||||
value={query}
|
value={query}
|
||||||
|
|
@ -498,7 +498,7 @@ export function LinkPreviewInput({
|
||||||
{busy ? "Fetching…" : "Fetch preview"}
|
{busy ? "Fetching…" : "Fetch preview"}
|
||||||
</button>
|
</button>
|
||||||
{note && (
|
{note && (
|
||||||
<span className={`text-xs ${note.tone === "ok" ? "text-[#138ba0]" : "text-[#b3261e]"}`}>
|
<span className={`text-xs ${note.tone === "ok" ? "text-[#0f7183]" : "text-[#b3261e]"}`}>
|
||||||
{note.text}
|
{note.text}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -101,8 +101,8 @@ export function SectionNav({ sections }: { sections: EditorSection[] }) {
|
||||||
aria-current={lit ? "location" : undefined}
|
aria-current={lit ? "location" : undefined}
|
||||||
className={`-ml-px flex w-full items-center gap-1.5 border-l-2 px-3 py-1.5 text-left text-sm transition-colors ${
|
className={`-ml-px flex w-full items-center gap-1.5 border-l-2 px-3 py-1.5 text-left text-sm transition-colors ${
|
||||||
lit
|
lit
|
||||||
? "border-[#138ba0] font-semibold text-[#138ba0]"
|
? "border-[#138ba0] font-semibold text-[#0f7183]"
|
||||||
: "border-transparent text-[#4a6b72] hover:border-[#138ba0]/40 hover:text-[#138ba0]"
|
: "border-transparent text-[#4a6b72] hover:border-[#138ba0]/40 hover:text-[#0f7183]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<Label section={section} />
|
<Label section={section} />
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ export function Field({ field, value, row, options, error, onChange, onPatch }:
|
||||||
checked={value === 1 || value === true}
|
checked={value === 1 || value === true}
|
||||||
disabled={locked}
|
disabled={locked}
|
||||||
onChange={(e) => onChange(e.target.checked ? 1 : 0)}
|
onChange={(e) => onChange(e.target.checked ? 1 : 0)}
|
||||||
className="h-4 w-4 rounded border-[#4a6b72]/40 text-[#138ba0] focus:ring-[#138ba0]/40 disabled:opacity-50"
|
className="h-4 w-4 rounded border-[#4a6b72]/40 text-[#0f7183] focus:ring-[#138ba0]/40 disabled:opacity-50"
|
||||||
/>
|
/>
|
||||||
{helpText(field, row) ?? "Yes"}
|
{helpText(field, row) ?? "Yes"}
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -478,14 +478,14 @@ export function Repeater({
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => setOpen(new Set(list.map((_, i) => i)))}
|
onClick={() => setOpen(new Set(list.map((_, i) => i)))}
|
||||||
className="hover:text-[#138ba0] hover:underline"
|
className="hover:text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
Expand all
|
Expand all
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => setOpen(new Set())}
|
onClick={() => setOpen(new Set())}
|
||||||
className="hover:text-[#138ba0] hover:underline"
|
className="hover:text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
Collapse all
|
Collapse all
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -494,7 +494,7 @@ export function Repeater({
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={add}
|
onClick={add}
|
||||||
className="ml-auto rounded-full border border-[#138ba0] px-3 py-1 text-sm font-medium text-[#138ba0] transition-colors hover:bg-[#eef9fb]"
|
className="ml-auto rounded-full border border-[#138ba0] px-3 py-1 text-sm font-medium text-[#0f7183] transition-colors hover:bg-[#eef9fb]"
|
||||||
>
|
>
|
||||||
{spec.addLabel ?? "Add"}
|
{spec.addLabel ?? "Add"}
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -565,7 +565,7 @@ export function Repeater({
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => toggle(index)}
|
onClick={() => toggle(index)}
|
||||||
aria-expanded={expanded}
|
aria-expanded={expanded}
|
||||||
className="flex min-w-0 flex-1 items-center gap-2 text-left text-sm font-medium text-[#26454c] hover:text-[#138ba0]"
|
className="flex min-w-0 flex-1 items-center gap-2 text-left text-sm font-medium text-[#26454c] hover:text-[#0f7183]"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
@import '@fontsource/montserrat/400.css';
|
@import '@fontsource/montserrat/400.css';
|
||||||
@import '@fontsource/montserrat/600.css';
|
@import '@fontsource/montserrat/600.css';
|
||||||
|
@import '@fontsource/montserrat/700.css';
|
||||||
@import '@fontsource/poppins/400.css';
|
@import '@fontsource/poppins/400.css';
|
||||||
@import '@fontsource/poppins/600.css';
|
@import '@fontsource/poppins/600.css';
|
||||||
|
@import '@fontsource/poppins/700.css';
|
||||||
|
@import '@fontsource/poppins/800.css';
|
||||||
|
|
||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
|
|
||||||
|
|
@ -18,6 +21,28 @@ html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* One visible focus ring for keyboard users, wherever a component
|
||||||
|
doesn't draw its own. */
|
||||||
|
:focus-visible {
|
||||||
|
outline: 2px solid #0f7183;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Visitors who ask for less motion get no smooth scrolling, slides
|
||||||
|
or hover zooms. */
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
html {
|
||||||
|
scroll-behavior: auto;
|
||||||
|
}
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|
|
||||||
|
|
@ -452,6 +452,13 @@ const blocksChild = {
|
||||||
help: "Optional, in the fold-out: a map of the site, a slide, a poster",
|
help: "Optional, in the fold-out: a map of the site, a slide, a poster",
|
||||||
when: SCHEDULE_ENTRY,
|
when: SCHEDULE_ENTRY,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "media_alt",
|
||||||
|
label: "Graphic description",
|
||||||
|
full: true,
|
||||||
|
help: "For screen readers: what the graphic shows, eg. a map of the camp. Default: skipped as decoration.",
|
||||||
|
when: SCHEDULE_ENTRY,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "map",
|
path: "map",
|
||||||
label: "Map",
|
label: "Map",
|
||||||
|
|
@ -1496,6 +1503,12 @@ const blogPosts = {
|
||||||
help: "A sentence or two for the card. Default: the body's first paragraph.",
|
help: "A sentence or two for the card. Default: the body's first paragraph.",
|
||||||
},
|
},
|
||||||
{ path: "cover_image", label: "Cover image", widget: "image", resolve: blogImage, full: true },
|
{ path: "cover_image", label: "Cover image", widget: "image", resolve: blogImage, full: true },
|
||||||
|
{
|
||||||
|
path: "cover_alt",
|
||||||
|
label: "Cover description",
|
||||||
|
full: true,
|
||||||
|
help: "For screen readers: what the cover shows. Default: skipped as decoration.",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ export type BlogPostRecord = {
|
||||||
title: string
|
title: string
|
||||||
excerpt?: string | null
|
excerpt?: string | null
|
||||||
cover_image?: string | null
|
cover_image?: string | null
|
||||||
|
cover_alt?: string | null
|
||||||
published_on?: string | null
|
published_on?: string | null
|
||||||
tags: string[]
|
tags: string[]
|
||||||
authors: BlogAuthor[]
|
authors: BlogAuthor[]
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@ export type ContentBlockItem = {
|
||||||
location?: string | null
|
location?: string | null
|
||||||
description?: string | null
|
description?: string | null
|
||||||
media?: string | null
|
media?: string | null
|
||||||
|
/** The graphic's alt text; blank means decorative. */
|
||||||
|
media_alt?: string | null
|
||||||
map?: string | null
|
map?: string | null
|
||||||
person?: { id: string; name: string; photo?: string | null; tagline?: string | null } | null
|
person?: { id: string; name: string; photo?: string | null; tagline?: string | null } | null
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import { useAward, type Recipient } from '../lib/useContent.ts'
|
||||||
import { eventHref, orgHref, personHref } from '../lib/hrefs.ts'
|
import { eventHref, orgHref, personHref } from '../lib/hrefs.ts'
|
||||||
import { awardLogo, initials, personPhoto } from '../lib/media.ts'
|
import { awardLogo, initials, personPhoto } from '../lib/media.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
export default function AwardDetail() {
|
export default function AwardDetail() {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import PeopleTiles from '../components/PeopleTiles.tsx'
|
||||||
import { blogImage, personPhoto } from '../lib/media.ts'
|
import { blogImage, personPhoto } from '../lib/media.ts'
|
||||||
import { postDate, useBlogPost } from '../lib/useBlog.ts'
|
import { postDate, useBlogPost } from '../lib/useBlog.ts'
|
||||||
|
|
||||||
const ACCENT = '#138ba0'
|
const ACCENT = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
/* Where "back" goes: the section on the Community page. */
|
/* Where "back" goes: the section on the Community page. */
|
||||||
|
|
@ -87,7 +87,7 @@ export default function BlogPost() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{cover && (
|
{cover && (
|
||||||
<img src={cover} alt="" className="aspect-video w-full rounded-2xl object-cover" />
|
<img src={cover} alt={post.cover_alt ?? ""} className="aspect-video w-full rounded-2xl object-cover" />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<ContentBlocks blocks={post.blocks} accent={ACCENT} />
|
<ContentBlocks blocks={post.blocks} accent={ACCENT} />
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ const SECTIONS = [
|
||||||
title: "Local Chapters",
|
title: "Local Chapters",
|
||||||
blurb:
|
blurb:
|
||||||
"Young adult groups meeting in person and online across the movement.",
|
"Young adult groups meeting in person and online across the movement.",
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
Component: OrgListMap,
|
Component: OrgListMap,
|
||||||
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
|
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
|
||||||
|
|
@ -77,7 +77,7 @@ export default function CommunityPage() {
|
||||||
id: "blog",
|
id: "blog",
|
||||||
title: blog?.title || BLOG_DEFAULT_TITLE,
|
title: blog?.title || BLOG_DEFAULT_TITLE,
|
||||||
blurb: blog?.blurb ?? undefined,
|
blurb: blog?.blurb ?? undefined,
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#ffffff",
|
background: "#ffffff",
|
||||||
Component: CommunityBlog,
|
Component: CommunityBlog,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import { eventTypeLabel } from '../lib/eventTypes.ts'
|
||||||
import { occurrenceLabel, seriesLabel, seriesTimes, upcomingOccurrences } from '../lib/eventSeries.ts'
|
import { occurrenceLabel, seriesLabel, seriesTimes, upcomingOccurrences } from '../lib/eventSeries.ts'
|
||||||
import { capitalize } from '../lib/text.ts'
|
import { capitalize } from '../lib/text.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
/* Billing order. A role missing from here still renders, at the
|
/* Billing order. A role missing from here still renders, at the
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const PAGE = sitePage("/feedback");
|
||||||
This file only decides where it sits on the page.
|
This file only decides where it sits on the page.
|
||||||
═══════════════════════════════════════════════════════════════ */
|
═══════════════════════════════════════════════════════════════ */
|
||||||
|
|
||||||
const ACCENT = "#138ba0";
|
const ACCENT = "#0f7183";
|
||||||
|
|
||||||
const SECTIONS = [
|
const SECTIONS = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const GIVING_URL =
|
||||||
|
|
||||||
const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1";
|
const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1";
|
||||||
|
|
||||||
const ACCENT = "#138ba0";
|
const ACCENT = "#0f7183";
|
||||||
|
|
||||||
function useChurchCenterModal() {
|
function useChurchCenterModal() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ const PAGE = sitePage("/history");
|
||||||
*/
|
*/
|
||||||
const PROGRAM_START_YEAR = 2000;
|
const PROGRAM_START_YEAR = 2000;
|
||||||
|
|
||||||
const ACCENT = "#138ba0";
|
const ACCENT = "#0f7183";
|
||||||
const BACKGROUND = "#ffffff";
|
const BACKGROUND = "#ffffff";
|
||||||
|
|
||||||
export default function History() {
|
export default function History() {
|
||||||
|
|
@ -51,7 +51,7 @@ export default function History() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={reload}
|
onClick={reload}
|
||||||
className="mt-3 rounded-full border border-[#138ba0] px-4 py-1.5 text-sm font-medium text-[#138ba0] transition-colors hover:bg-[#eef9fb]"
|
className="mt-3 rounded-full border border-[#138ba0] px-4 py-1.5 text-sm font-medium text-[#0f7183] transition-colors hover:bg-[#eef9fb]"
|
||||||
>
|
>
|
||||||
Try again
|
Try again
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ export default function Home() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={reload}
|
onClick={reload}
|
||||||
className="mt-4 rounded-full border border-[#138ba0] px-5 py-2 font-semibold text-[#138ba0] hover:bg-[#eef9fb]"
|
className="mt-4 rounded-full border border-[#138ba0] px-5 py-2 font-semibold text-[#0f7183] hover:bg-[#eef9fb]"
|
||||||
>
|
>
|
||||||
Try again
|
Try again
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const SECTIONS = [
|
||||||
id: "board-staff",
|
id: "board-staff",
|
||||||
title: "Board & Staff",
|
title: "Board & Staff",
|
||||||
blurb: "The people guiding Next Generation of Unity day to day.",
|
blurb: "The people guiding Next Generation of Unity day to day.",
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
|
@ -22,7 +22,7 @@ const SECTIONS = [
|
||||||
id: "retreat-team",
|
id: "retreat-team",
|
||||||
title: "Retreat Team",
|
title: "Retreat Team",
|
||||||
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
||||||
accent: "#aac992",
|
accent: "#4a7a2f",
|
||||||
background: "#ffffff",
|
background: "#ffffff",
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
|
@ -52,8 +52,8 @@ const SECTIONS = [
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
<a
|
<a
|
||||||
href="mailto:info@nextgenerationofunity.org"
|
href="mailto:info@nextgenerationofunity.org"
|
||||||
className="inline-block py-2.5 px-6 rounded-xl font-700 transition-all duration-200 hover:scale-105"
|
className="inline-block py-2.5 px-6 rounded-xl font-bold transition-all duration-200 hover:scale-105"
|
||||||
style={{ border: "1px solid #138ba0", color: "#138ba0" }}
|
style={{ border: "1px solid #0f7183", color: "#0f7183" }}
|
||||||
>
|
>
|
||||||
info@nextgenerationofunity.org
|
info@nextgenerationofunity.org
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import {
|
||||||
import { orgHref, orgListHref, teamHref } from '../lib/hrefs.ts'
|
import { orgHref, orgListHref, teamHref } from '../lib/hrefs.ts'
|
||||||
import { orgLogo, personPhoto } from '../lib/media.ts'
|
import { orgLogo, personPhoto } from '../lib/media.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
export default function OrganizationDetail() {
|
export default function OrganizationDetail() {
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import { initials, personPhoto } from '../lib/media.ts'
|
||||||
import { eventTypeLabel } from '../lib/eventTypes.ts'
|
import { eventTypeLabel } from '../lib/eventTypes.ts'
|
||||||
import { capitalize } from '../lib/text.ts'
|
import { capitalize } from '../lib/text.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
const BACKGROUNDS = ['#ffffff', '#eef9fb']
|
const BACKGROUNDS = ['#ffffff', '#eef9fb']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const SECTIONS = [
|
||||||
id: "privacy",
|
id: "privacy",
|
||||||
title: "Privacy Policy",
|
title: "Privacy Policy",
|
||||||
blurb: "Last updated: [date]",
|
blurb: "Last updated: [date]",
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-3xl mx-auto px-6 leading-relaxed text-[#2c4a50]">
|
<div className="max-w-3xl mx-auto px-6 leading-relaxed text-[#2c4a50]">
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const SECTIONS = [
|
||||||
title: 'Make a QR code',
|
title: 'Make a QR code',
|
||||||
blurb:
|
blurb:
|
||||||
'Pick a page from the main navigation, any event, organization, team, award, person or blog post, or type any link. Site pages always point at the live site. Choose what sits in the centre and the colours; a warning shows if the code might not scan.',
|
'Pick a page from the main navigation, any event, organization, team, award, person or blog post, or type any link. Site pages always point at the live site. Choose what sits in the centre and the colours; a warning shows if the code might not scan.',
|
||||||
accent: '#138ba0',
|
accent: '#0f7183',
|
||||||
background: '#eef9fb',
|
background: '#eef9fb',
|
||||||
content: (
|
content: (
|
||||||
<div className="mx-auto max-w-6xl px-6">
|
<div className="mx-auto max-w-6xl px-6">
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const SECTIONS = [
|
||||||
id: "unity",
|
id: "unity",
|
||||||
title: "Unity Teachings",
|
title: "Unity Teachings",
|
||||||
blurb: "Core principles, readings, and study material from the Unity movement.",
|
blurb: "Core principles, readings, and study material from the Unity movement.",
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
|
@ -21,7 +21,7 @@ const SECTIONS = [
|
||||||
id: "branding",
|
id: "branding",
|
||||||
title: "Branding & Marketing",
|
title: "Branding & Marketing",
|
||||||
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
|
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
|
||||||
accent: "#aac992",
|
accent: "#4a7a2f",
|
||||||
background: "#ffffff",
|
background: "#ffffff",
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-6xl mx-auto px-6">
|
<div className="max-w-6xl mx-auto px-6">
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ const SECTIONS = [
|
||||||
id: "national",
|
id: "national",
|
||||||
title: "National Retreats",
|
title: "National Retreats",
|
||||||
blurb: "Our flagship gatherings, open to young adults across the country.",
|
blurb: "Our flagship gatherings, open to young adults across the country.",
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "national", ...RETREATS },
|
props: { scope: "national", ...RETREATS },
|
||||||
|
|
@ -56,7 +56,7 @@ const SECTIONS = [
|
||||||
id: "regional",
|
id: "regional",
|
||||||
title: "Regional Retreats",
|
title: "Regional Retreats",
|
||||||
blurb: "Smaller gatherings hosted by regions throughout the year.",
|
blurb: "Smaller gatherings hosted by regions throughout the year.",
|
||||||
accent: "#aac992",
|
accent: "#4a7a2f",
|
||||||
background: "#ffffff",
|
background: "#ffffff",
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "regional", ...RETREATS },
|
props: { scope: "regional", ...RETREATS },
|
||||||
|
|
@ -81,7 +81,7 @@ const SECTIONS = [
|
||||||
id: "local",
|
id: "local",
|
||||||
title: "Local Events",
|
title: "Local Events",
|
||||||
blurb: "Hosted by individual chapters.",
|
blurb: "Hosted by individual chapters.",
|
||||||
accent: "#d08a3c",
|
accent: "#9a5b17",
|
||||||
background: "#ffffff",
|
background: "#ffffff",
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "local", ...RETREATS_ONLY },
|
props: { scope: "local", ...RETREATS_ONLY },
|
||||||
|
|
@ -91,7 +91,7 @@ const SECTIONS = [
|
||||||
id: "international",
|
id: "international",
|
||||||
title: "International Events",
|
title: "International Events",
|
||||||
blurb: "Gatherings beyond the US.",
|
blurb: "Gatherings beyond the US.",
|
||||||
accent: "#3c7fd0",
|
accent: "#2f6bb5",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "international", ...RETREATS_ONLY },
|
props: { scope: "international", ...RETREATS_ONLY },
|
||||||
|
|
@ -101,7 +101,7 @@ const SECTIONS = [
|
||||||
id: "other",
|
id: "other",
|
||||||
title: "Other Events",
|
title: "Other Events",
|
||||||
blurb: "Everything that doesn't fit the categories above.",
|
blurb: "Everything that doesn't fit the categories above.",
|
||||||
accent: "#7a8a8e",
|
accent: "#5d6c70",
|
||||||
background: "#ffffff",
|
background: "#ffffff",
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "other", ...RETREATS_ONLY },
|
props: { scope: "other", ...RETREATS_ONLY },
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import PeopleTiles from '../components/PeopleTiles.tsx'
|
||||||
import { useTeam } from '../lib/useContent.ts'
|
import { useTeam } from '../lib/useContent.ts'
|
||||||
import { orgHref } from '../lib/hrefs.ts'
|
import { orgHref } from '../lib/hrefs.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
export default function TeamDetail() {
|
export default function TeamDetail() {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const SECTIONS = [
|
||||||
id: "terms",
|
id: "terms",
|
||||||
title: "Terms of Service",
|
title: "Terms of Service",
|
||||||
blurb: "Last updated: [date]",
|
blurb: "Last updated: [date]",
|
||||||
accent: "#138ba0",
|
accent: "#0f7183",
|
||||||
background: "#eef9fb",
|
background: "#eef9fb",
|
||||||
content: (
|
content: (
|
||||||
<div className="max-w-3xl mx-auto px-6 leading-relaxed text-[#2c4a50]">
|
<div className="max-w-3xl mx-auto px-6 leading-relaxed text-[#2c4a50]">
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { ApiError, del, get, post } from "../../lib/api.ts";
|
import { ApiError, del, get, post } from "../../lib/api.ts";
|
||||||
|
|
||||||
const TEAL = "#138ba0";
|
const TEAL = "#0f7183";
|
||||||
const MUTED = "#4a6b72";
|
const MUTED = "#4a6b72";
|
||||||
const POLL_MS = 2000;
|
const POLL_MS = 2000;
|
||||||
|
|
||||||
|
|
@ -81,9 +81,9 @@ function sizeOf(bytes: number | null): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
const button =
|
const button =
|
||||||
"rounded-full border border-[#138ba0] px-4 py-2 text-sm font-semibold text-[#138ba0] transition-colors hover:bg-[#eef9fb] disabled:cursor-default disabled:opacity-50";
|
"rounded-full border border-[#138ba0] px-4 py-2 text-sm font-semibold text-[#0f7183] transition-colors hover:bg-[#eef9fb] disabled:cursor-default disabled:opacity-50";
|
||||||
const primary =
|
const primary =
|
||||||
"rounded-full bg-[#138ba0] px-5 py-2.5 font-semibold text-white transition-colors hover:bg-[#0f7183] disabled:bg-[#4a6b72]/25";
|
"rounded-full bg-[#0f7183] px-5 py-2.5 font-semibold text-white transition-colors hover:bg-[#0b5c6a] disabled:bg-[#4a6b72]/25";
|
||||||
const input =
|
const input =
|
||||||
"rounded-lg border border-[#4a6b72]/25 bg-white px-3 py-2 text-sm text-[#26454c] outline-none focus:border-[#138ba0] focus:ring-2 focus:ring-[#138ba0]/25";
|
"rounded-lg border border-[#4a6b72]/25 bg-white px-3 py-2 text-sm text-[#26454c] outline-none focus:border-[#138ba0] focus:ring-2 focus:ring-[#138ba0]/25";
|
||||||
|
|
||||||
|
|
@ -103,7 +103,7 @@ function Status({ job }: { job: Job }) {
|
||||||
return (
|
return (
|
||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<div className="h-2 overflow-hidden rounded-full bg-[#eef9fb]">
|
<div className="h-2 overflow-hidden rounded-full bg-[#eef9fb]">
|
||||||
<div className="h-full bg-[#138ba0] transition-all" style={{ width: `${job.status === "queued" ? 0 : percent}%` }} />
|
<div className="h-full bg-[#0f7183] transition-all" style={{ width: `${job.status === "queued" ? 0 : percent}%` }} />
|
||||||
</div>
|
</div>
|
||||||
<p className="mt-1 text-xs" style={{ color: MUTED }}>
|
<p className="mt-1 text-xs" style={{ color: MUTED }}>
|
||||||
{job.status === "queued" ? "Waiting its turn…" : `${percent}%`}
|
{job.status === "queued" ? "Waiting its turn…" : `${percent}%`}
|
||||||
|
|
@ -368,7 +368,7 @@ export default function AdminClips() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="flex flex-wrap items-baseline gap-3">
|
<div className="flex flex-wrap items-baseline gap-3">
|
||||||
<h1 className="text-2xl font-bold text-[#138ba0]">Video clips</h1>
|
<h1 className="text-2xl font-bold text-[#0f7183]">Video clips</h1>
|
||||||
<p className="text-sm" style={{ color: MUTED }}>
|
<p className="text-sm" style={{ color: MUTED }}>
|
||||||
Cut clips from our YouTube and Facebook videos, for Reels, Shorts, the site or a podcast.
|
Cut clips from our YouTube and Facebook videos, for Reels, Shorts, the site or a podcast.
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ import { feedbackTypeLabel } from "../../data/feedbackTypes.ts";
|
||||||
const STATUSES = ["new", "read", "actioned", "archived", "spam"];
|
const STATUSES = ["new", "read", "actioned", "archived", "spam"];
|
||||||
|
|
||||||
const STATUS_STYLE = {
|
const STATUS_STYLE = {
|
||||||
new: "bg-[#138ba0] text-white",
|
new: "bg-[#0f7183] text-white",
|
||||||
read: "bg-[#eef9fb] text-[#138ba0]",
|
read: "bg-[#eef9fb] text-[#0f7183]",
|
||||||
actioned: "bg-[#eaf3e2] text-[#4a6b2f]",
|
actioned: "bg-[#eaf3e2] text-[#4a6b2f]",
|
||||||
archived: "bg-[#4a6b72]/10 text-[#4a6b72]",
|
archived: "bg-[#4a6b72]/10 text-[#4a6b72]",
|
||||||
spam: "bg-[#fdf3f2] text-[#b3261e]",
|
spam: "bg-[#fdf3f2] text-[#b3261e]",
|
||||||
|
|
@ -117,7 +117,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
||||||
{row.email && (
|
{row.email && (
|
||||||
<a
|
<a
|
||||||
href={`mailto:${row.email}?subject=Your%20NGU%20site%20feedback`}
|
href={`mailto:${row.email}?subject=Your%20NGU%20site%20feedback`}
|
||||||
className="text-[#138ba0] underline underline-offset-2"
|
className="text-[#0f7183] underline underline-offset-2"
|
||||||
>
|
>
|
||||||
{row.email}
|
{row.email}
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -165,7 +165,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
||||||
type="button"
|
type="button"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
onClick={() => save({ admin_note: note })}
|
onClick={() => save({ admin_note: note })}
|
||||||
className="mt-2 rounded-full bg-[#138ba0] px-4 py-1.5 text-sm font-semibold text-white transition-colors hover:bg-[#0f7183] disabled:bg-[#4a6b72]/25"
|
className="mt-2 rounded-full bg-[#0f7183] px-4 py-1.5 text-sm font-semibold text-white transition-colors hover:bg-[#0b5c6a] disabled:bg-[#4a6b72]/25"
|
||||||
>
|
>
|
||||||
{busy ? "Saving…" : "Save note"}
|
{busy ? "Saving…" : "Save note"}
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -305,7 +305,7 @@ export default function AdminFeedback() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-3xl font-bold text-[#138ba0]">Feedback</h1>
|
<h1 className="text-3xl font-bold text-[#0f7183]">Feedback</h1>
|
||||||
<p className="mt-2 text-sm text-[#4a6b72]">
|
<p className="mt-2 text-sm text-[#4a6b72]">
|
||||||
{canWrite
|
{canWrite
|
||||||
? "Everything submitted through the site form."
|
? "Everything submitted through the site form."
|
||||||
|
|
@ -322,7 +322,7 @@ export default function AdminFeedback() {
|
||||||
className={
|
className={
|
||||||
"rounded-full px-4 py-1.5 text-sm transition-colors " +
|
"rounded-full px-4 py-1.5 text-sm transition-colors " +
|
||||||
(status === tab.id
|
(status === tab.id
|
||||||
? "bg-[#138ba0] font-semibold text-white"
|
? "bg-[#0f7183] font-semibold text-white"
|
||||||
: "border border-[#4a6b72]/25 text-[#4a6b72] hover:border-[#138ba0]/50")
|
: "border border-[#4a6b72]/25 text-[#4a6b72] hover:border-[#138ba0]/50")
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
@ -387,7 +387,7 @@ export default function AdminFeedback() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => load(cursor)}
|
onClick={() => load(cursor)}
|
||||||
className="mt-6 rounded-full border border-[#138ba0] px-5 py-2 font-semibold text-[#138ba0] transition-colors hover:bg-[#eef9fb]"
|
className="mt-6 rounded-full border border-[#138ba0] px-5 py-2 font-semibold text-[#0f7183] transition-colors hover:bg-[#eef9fb]"
|
||||||
>
|
>
|
||||||
Load older
|
Load older
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ function NavCard({ item }) {
|
||||||
return (
|
return (
|
||||||
<div className="group relative flex flex-col rounded-2xl border border-[#138ba0]/20 bg-white p-5 transition-all hover:border-[#138ba0]/60 hover:shadow-sm">
|
<div className="group relative flex flex-col rounded-2xl border border-[#138ba0]/20 bg-white p-5 transition-all hover:border-[#138ba0]/60 hover:shadow-sm">
|
||||||
<div className="flex items-baseline gap-3">
|
<div className="flex items-baseline gap-3">
|
||||||
<h3 className="text-base font-semibold text-[#138ba0]">
|
<h3 className="text-base font-semibold text-[#0f7183]">
|
||||||
<Link
|
<Link
|
||||||
to={to}
|
to={to}
|
||||||
className="after:absolute after:inset-0 after:rounded-2xl after:content-['']"
|
className="after:absolute after:inset-0 after:rounded-2xl after:content-['']"
|
||||||
|
|
@ -46,7 +46,7 @@ function NavCard({ item }) {
|
||||||
</h3>
|
</h3>
|
||||||
<span
|
<span
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className="ml-auto text-[#138ba0] opacity-0 transition-opacity group-hover:opacity-100"
|
className="ml-auto text-[#0f7183] opacity-0 transition-opacity group-hover:opacity-100"
|
||||||
>
|
>
|
||||||
→
|
→
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -62,7 +62,7 @@ function NavCard({ item }) {
|
||||||
<Link
|
<Link
|
||||||
key={child.to}
|
key={child.to}
|
||||||
to={child.to}
|
to={child.to}
|
||||||
className="text-[#4a6b72] underline-offset-4 transition-colors hover:text-[#138ba0] hover:underline"
|
className="text-[#4a6b72] underline-offset-4 transition-colors hover:text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
{child.label}
|
{child.label}
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -77,7 +77,7 @@ function CardBlock({ title, blurb, children }) {
|
||||||
return (
|
return (
|
||||||
<div className="mt-10">
|
<div className="mt-10">
|
||||||
<div className="flex items-baseline gap-3">
|
<div className="flex items-baseline gap-3">
|
||||||
<h2 className="text-lg font-semibold text-[#138ba0]">{title}</h2>
|
<h2 className="text-lg font-semibold text-[#0f7183]">{title}</h2>
|
||||||
{blurb && <p className="text-sm text-[#4a6b72]">{blurb}</p>}
|
{blurb && <p className="text-sm text-[#4a6b72]">{blurb}</p>}
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-4 grid gap-4 sm:grid-cols-2">{children}</div>
|
<div className="mt-4 grid gap-4 sm:grid-cols-2">{children}</div>
|
||||||
|
|
@ -114,7 +114,7 @@ export default function AdminHome() {
|
||||||
return (
|
return (
|
||||||
<div className="grid gap-8 lg:grid-cols-[1fr_17rem] lg:items-start">
|
<div className="grid gap-8 lg:grid-cols-[1fr_17rem] lg:items-start">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-bold text-[#138ba0]">
|
<h1 className="text-2xl font-bold text-[#0f7183]">
|
||||||
{user?.name ? `Welcome back, ${user.name.split(" ")[0]}.` : "Welcome back."}
|
{user?.name ? `Welcome back, ${user.name.split(" ")[0]}.` : "Welcome back."}
|
||||||
</h1>
|
</h1>
|
||||||
<p className="mt-1 text-[#4a6b72]">Pick a section to work in.</p>
|
<p className="mt-1 text-[#4a6b72]">Pick a section to work in.</p>
|
||||||
|
|
@ -144,7 +144,7 @@ export default function AdminHome() {
|
||||||
<p className="mt-0.5 break-all text-xs text-[#4a6b72]/80">{user.email}</p>
|
<p className="mt-0.5 break-all text-xs text-[#4a6b72]/80">{user.email}</p>
|
||||||
)}
|
)}
|
||||||
{role && (
|
{role && (
|
||||||
<span className="mt-2 inline-block rounded-full bg-[#eef9fb] px-2.5 py-0.5 text-xs font-medium text-[#138ba0]">
|
<span className="mt-2 inline-block rounded-full bg-[#eef9fb] px-2.5 py-0.5 text-xs font-medium text-[#0f7183]">
|
||||||
{role}
|
{role}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
@ -156,7 +156,7 @@ export default function AdminHome() {
|
||||||
<li key={link.to}>
|
<li key={link.to}>
|
||||||
<Link
|
<Link
|
||||||
to={link.to}
|
to={link.to}
|
||||||
className="underline-offset-4 transition-colors hover:text-[#138ba0] hover:underline"
|
className="underline-offset-4 transition-colors hover:text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
{link.label}
|
{link.label}
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -171,7 +171,7 @@ export default function AdminHome() {
|
||||||
href="/"
|
href="/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
className="mt-2 inline-block underline-offset-4 transition-colors hover:text-[#138ba0] hover:underline"
|
className="mt-2 inline-block underline-offset-4 transition-colors hover:text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
View the public site ↗
|
View the public site ↗
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ import {
|
||||||
function GroupMenu({ item, lit, pathname }) {
|
function GroupMenu({ item, lit, pathname }) {
|
||||||
const children = item.children ?? [];
|
const children = item.children ?? [];
|
||||||
const link = lit
|
const link = lit
|
||||||
? "font-semibold text-[#138ba0]"
|
? "font-semibold text-[#0f7183]"
|
||||||
: "text-[#4a6b72] transition-colors hover:text-[#138ba0]";
|
: "text-[#4a6b72] transition-colors hover:text-[#0f7183]";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="group relative">
|
<div className="group relative">
|
||||||
|
|
@ -68,7 +68,7 @@ function GroupMenu({ item, lit, pathname }) {
|
||||||
to={child.to}
|
to={child.to}
|
||||||
className={`block rounded-lg px-3 py-2 text-sm transition-colors hover:bg-[#eef9fb] ${
|
className={`block rounded-lg px-3 py-2 text-sm transition-colors hover:bg-[#eef9fb] ${
|
||||||
matches(pathname, child.to)
|
matches(pathname, child.to)
|
||||||
? "font-semibold text-[#138ba0]"
|
? "font-semibold text-[#0f7183]"
|
||||||
: "text-[#26454c]"
|
: "text-[#26454c]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|
@ -130,7 +130,7 @@ export default function AdminLayout() {
|
||||||
|
|
||||||
const subnav = active?.children ?? [];
|
const subnav = active?.children ?? [];
|
||||||
|
|
||||||
const wordmark = <span className="text-lg font-bold text-[#138ba0]">{areaTitle}</span>;
|
const wordmark = <span className="text-lg font-bold text-[#0f7183]">{areaTitle}</span>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-screen flex-col bg-[#f6fbfc]">
|
<div className="flex min-h-screen flex-col bg-[#f6fbfc]">
|
||||||
|
|
@ -172,7 +172,7 @@ export default function AdminLayout() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={handleLogout}
|
onClick={handleLogout}
|
||||||
className="rounded-full border border-[#4a6b72]/30 px-4 py-1.5 font-medium transition-colors hover:bg-[#eef9fb] hover:text-[#138ba0]"
|
className="rounded-full border border-[#4a6b72]/30 px-4 py-1.5 font-medium transition-colors hover:bg-[#eef9fb] hover:text-[#0f7183]"
|
||||||
>
|
>
|
||||||
Sign out
|
Sign out
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -190,8 +190,8 @@ export default function AdminLayout() {
|
||||||
to={child.to}
|
to={child.to}
|
||||||
className={
|
className={
|
||||||
child === activeChild
|
child === activeChild
|
||||||
? "font-semibold text-[#138ba0]"
|
? "font-semibold text-[#0f7183]"
|
||||||
: "text-[#4a6b72] transition-colors hover:text-[#138ba0]"
|
: "text-[#4a6b72] transition-colors hover:text-[#0f7183]"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{child.label}
|
{child.label}
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ export default function AdminLogin() {
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-screen items-center justify-center bg-[#eef9fb] px-6 py-16">
|
<div className="flex min-h-screen items-center justify-center bg-[#eef9fb] px-6 py-16">
|
||||||
<div className="w-full max-w-sm">
|
<div className="w-full max-w-sm">
|
||||||
<h1 className="text-3xl font-bold text-[#138ba0]">NGU admin</h1>
|
<h1 className="text-3xl font-bold text-[#0f7183]">NGU admin</h1>
|
||||||
<p className="mt-2 text-sm text-[#4a6b72]">
|
<p className="mt-2 text-sm text-[#4a6b72]">
|
||||||
Sign in to edit the site.
|
Sign in to edit the site.
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -162,7 +162,7 @@ export default function AdminLogin() {
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={busy || !email || !password}
|
disabled={busy || !email || !password}
|
||||||
className="mt-6 w-full rounded-full bg-[#138ba0] px-6 py-3 font-semibold text-white transition-colors hover:bg-[#0f7183] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40 disabled:cursor-not-allowed disabled:bg-[#4a6b72]/25"
|
className="mt-6 w-full rounded-full bg-[#0f7183] px-6 py-3 font-semibold text-white transition-colors hover:bg-[#0b5c6a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40 disabled:cursor-not-allowed disabled:bg-[#4a6b72]/25"
|
||||||
>
|
>
|
||||||
{busy ? "Signing in…" : "Sign in"}
|
{busy ? "Signing in…" : "Sign in"}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ function CopyPath({ url }: { url: string }) {
|
||||||
setTimeout(() => setCopied(false), 1500);
|
setTimeout(() => setCopied(false), 1500);
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
className="text-xs text-[#138ba0] hover:underline"
|
className="text-xs text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
{copied ? "Copied" : "Copy path"}
|
{copied ? "Copied" : "Copy path"}
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -128,7 +128,7 @@ export default function AdminMedia() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="flex flex-wrap items-baseline gap-3">
|
<div className="flex flex-wrap items-baseline gap-3">
|
||||||
<h1 className="text-2xl font-bold text-[#138ba0]">Media</h1>
|
<h1 className="text-2xl font-bold text-[#0f7183]">Media</h1>
|
||||||
<p className="text-sm text-[#4a6b72]">
|
<p className="text-sm text-[#4a6b72]">
|
||||||
Uploaded images. Image fields in every editor pick from here.
|
Uploaded images. Image fields in every editor pick from here.
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -169,7 +169,7 @@ export default function AdminMedia() {
|
||||||
href={item.url}
|
href={item.url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
className="text-xs text-[#138ba0] hover:underline"
|
className="text-xs text-[#0f7183] hover:underline"
|
||||||
>
|
>
|
||||||
Open
|
Open
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ function Block({ title, note, children }: any) {
|
||||||
return (
|
return (
|
||||||
<section className="mt-8 first:mt-0">
|
<section className="mt-8 first:mt-0">
|
||||||
<div className="flex items-baseline gap-3">
|
<div className="flex items-baseline gap-3">
|
||||||
<h2 className="text-lg font-semibold text-[#138ba0]">{title}</h2>
|
<h2 className="text-lg font-semibold text-[#0f7183]">{title}</h2>
|
||||||
{note && <p className="text-sm text-[#4a6b72]">{note}</p>}
|
{note && <p className="text-sm text-[#4a6b72]">{note}</p>}
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-3">{children}</div>
|
<div className="mt-3">{children}</div>
|
||||||
|
|
@ -156,7 +156,7 @@ export default function AdminPanel() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={load}
|
onClick={load}
|
||||||
className="mt-3 rounded-full border border-[#138ba0] px-4 py-1.5 text-sm font-medium text-[#138ba0] transition-colors hover:bg-[#eef9fb]"
|
className="mt-3 rounded-full border border-[#138ba0] px-4 py-1.5 text-sm font-medium text-[#0f7183] transition-colors hover:bg-[#eef9fb]"
|
||||||
>
|
>
|
||||||
Try again
|
Try again
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -171,7 +171,7 @@ export default function AdminPanel() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-bold text-[#138ba0]">Panel</h1>
|
<h1 className="text-2xl font-bold text-[#0f7183]">Panel</h1>
|
||||||
<p className="mt-1 text-[#4a6b72]">
|
<p className="mt-1 text-[#4a6b72]">
|
||||||
Accounts and server state. Everything here is superadmin-only.
|
Accounts and server state. Everything here is superadmin-only.
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -281,7 +281,7 @@ export default function AdminPanel() {
|
||||||
type="button"
|
type="button"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
onClick={() => revoke(row)}
|
onClick={() => revoke(row)}
|
||||||
className="ml-3 text-xs font-medium text-[#138ba0] underline-offset-4 hover:underline disabled:opacity-50"
|
className="ml-3 text-xs font-medium text-[#0f7183] underline-offset-4 hover:underline disabled:opacity-50"
|
||||||
>
|
>
|
||||||
Sign out
|
Sign out
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -296,7 +296,7 @@ export default function AdminPanel() {
|
||||||
className={`rounded-full border px-3 py-1 text-xs font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
|
className={`rounded-full border px-3 py-1 text-xs font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
|
||||||
row.is_active
|
row.is_active
|
||||||
? "border-[#4a6b72]/30 text-[#4a6b72] hover:border-[#b3261e]/50 hover:text-[#b3261e]"
|
? "border-[#4a6b72]/30 text-[#4a6b72] hover:border-[#b3261e]/50 hover:text-[#b3261e]"
|
||||||
: "border-[#138ba0]/40 text-[#138ba0] hover:bg-[#eef9fb]"
|
: "border-[#138ba0]/40 text-[#0f7183] hover:bg-[#eef9fb]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{row.is_active ? "Disable" : "Enable"}
|
{row.is_active ? "Disable" : "Enable"}
|
||||||
|
|
|
||||||
|
|
@ -356,13 +356,13 @@ export default function EntityEdit() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => leave(`/admin/${manifest.key}`)}
|
onClick={() => leave(`/admin/${manifest.key}`)}
|
||||||
className="text-sm text-[#4a6b72] hover:text-[#138ba0]"
|
className="text-sm text-[#4a6b72] hover:text-[#0f7183]"
|
||||||
>
|
>
|
||||||
← {manifest.label}
|
← {manifest.label}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<h1 className="mt-2 text-3xl font-bold text-[#138ba0]">
|
<h1 className="mt-2 text-3xl font-bold text-[#0f7183]">
|
||||||
{isNew ? `New ${manifest.singular}` : heading}
|
{isNew ? `New ${manifest.singular}` : heading}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|
@ -478,7 +478,7 @@ export default function EntityEdit() {
|
||||||
type="button"
|
type="button"
|
||||||
onClick={save}
|
onClick={save}
|
||||||
disabled={saving || !dirty}
|
disabled={saving || !dirty}
|
||||||
className="rounded-full bg-[#138ba0] px-6 py-2 font-semibold text-white transition-colors hover:bg-[#0f7183] disabled:bg-[#4a6b72]/25"
|
className="rounded-full bg-[#0f7183] px-6 py-2 font-semibold text-white transition-colors hover:bg-[#0b5c6a] disabled:bg-[#4a6b72]/25"
|
||||||
>
|
>
|
||||||
{saving ? "Saving…" : isNew ? "Create" : "Save changes"}
|
{saving ? "Saving…" : isNew ? "Create" : "Save changes"}
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -506,7 +506,7 @@ export default function EntityEdit() {
|
||||||
<span
|
<span
|
||||||
role="status"
|
role="status"
|
||||||
className={`flex items-center gap-2 text-sm ${
|
className={`flex items-center gap-2 text-sm ${
|
||||||
message.tone === "ok" ? "text-[#138ba0]" : "text-[#b3261e]"
|
message.tone === "ok" ? "text-[#0f7183]" : "text-[#b3261e]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{message.text}
|
{message.text}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,9 @@ export default function EntityList() {
|
||||||
// well as editors, which is the failure mode an == against a
|
// well as editors, which is the failure mode an == against a
|
||||||
// ladder always produces once a rank is added above it.
|
// ladder always produces once a rank is added above it.
|
||||||
const canWrite = atLeast(user, manifest?.writeRole ?? "editor");
|
const canWrite = atLeast(user, manifest?.writeRole ?? "editor");
|
||||||
|
// The cell that carries the row's link: the primary column, else the first.
|
||||||
|
const columns = manifest?.list.columns ?? [];
|
||||||
|
const linkKey = (columns.find((c) => c.primary) ?? columns[0])?.key;
|
||||||
|
|
||||||
const load = useCallback(async () => {
|
const load = useCallback(async () => {
|
||||||
if (!manifest || manifest.singleton) return;
|
if (!manifest || manifest.singleton) return;
|
||||||
|
|
@ -89,11 +92,11 @@ export default function EntityList() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="flex flex-wrap items-center gap-4">
|
<div className="flex flex-wrap items-center gap-4">
|
||||||
<h1 className="text-3xl font-bold text-[#138ba0]">{manifest.label}</h1>
|
<h1 className="text-3xl font-bold text-[#0f7183]">{manifest.label}</h1>
|
||||||
{canWrite && (
|
{canWrite && (
|
||||||
<Link
|
<Link
|
||||||
to={`/admin/${manifest.key}/new`}
|
to={`/admin/${manifest.key}/new`}
|
||||||
className="ml-auto rounded-full bg-[#138ba0] px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-[#0f7183]"
|
className="ml-auto rounded-full bg-[#0f7183] px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-[#0b5c6a]"
|
||||||
>
|
>
|
||||||
New {manifest.singular}
|
New {manifest.singular}
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -162,6 +165,8 @@ export default function EntityList() {
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{/* The row click is for the mouse; the link in the primary
|
||||||
|
cell is what a keyboard or screen reader uses. */}
|
||||||
{rows.map((row) => (
|
{rows.map((row) => (
|
||||||
<tr
|
<tr
|
||||||
key={row.id}
|
key={row.id}
|
||||||
|
|
@ -175,11 +180,23 @@ export default function EntityList() {
|
||||||
column.primary ? "font-medium text-[#26454c]" : "text-[#4a6b72]"
|
column.primary ? "font-medium text-[#26454c]" : "text-[#4a6b72]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{column.widget === "bool"
|
{column.key === linkKey ? (
|
||||||
? row[column.key]
|
<Link
|
||||||
? "Yes"
|
to={`/admin/${manifest.key}/${row.id}`}
|
||||||
: "-"
|
onClick={(e) => e.stopPropagation()}
|
||||||
: row[column.key] || "-"}
|
className="hover:underline"
|
||||||
|
>
|
||||||
|
{row[column.key] || row.id}
|
||||||
|
</Link>
|
||||||
|
) : column.widget === "bool" ? (
|
||||||
|
row[column.key] ? (
|
||||||
|
"Yes"
|
||||||
|
) : (
|
||||||
|
"-"
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
row[column.key] || "-"
|
||||||
|
)}
|
||||||
</td>
|
</td>
|
||||||
))}
|
))}
|
||||||
<td className="px-4 py-3 font-mono text-xs text-[#4a6b72]">{row.id}</td>
|
<td className="px-4 py-3 font-mono text-xs text-[#4a6b72]">{row.id}</td>
|
||||||
|
|
|
||||||
|
|
@ -71,13 +71,13 @@ function PostCard({ post, accent }: { post: BlogPostSummary; accent: string }) {
|
||||||
|
|
||||||
function Subheading({ children, accent }: { children: string; accent: string }) {
|
function Subheading({ children, accent }: { children: string; accent: string }) {
|
||||||
return (
|
return (
|
||||||
<h3 className="text-2xl font-800" style={{ color: accent }}>
|
<h3 className="text-2xl font-extrabold" style={{ color: accent }}>
|
||||||
{children}
|
{children}
|
||||||
</h3>
|
</h3>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function CommunityBlog({ accent = '#138ba0' }: { accent?: string }) {
|
export default function CommunityBlog({ accent = '#0f7183' }: { accent?: string }) {
|
||||||
const { data: blog, loading, error, reload } = useCommunityBlog()
|
const { data: blog, loading, error, reload } = useCommunityBlog()
|
||||||
|
|
||||||
if (!blog) {
|
if (!blog) {
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ const ALL_CONTROLS: CalendarControl[] = ['scope', 'type', 'online', 'search']
|
||||||
/* Bar rows drawn per week before a day collapses to "+N more". */
|
/* Bar rows drawn per week before a day collapses to "+N more". */
|
||||||
const MAX_LANES = 3
|
const MAX_LANES = 3
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const INK = '#073d4a'
|
const INK = '#073d4a'
|
||||||
const BODY = '#4a6b72'
|
const BODY = '#4a6b72'
|
||||||
|
|
||||||
|
|
@ -398,7 +398,7 @@ export default function EventCalendar({
|
||||||
onChange={(e) => setQuery(e.target.value)}
|
onChange={(e) => setQuery(e.target.value)}
|
||||||
placeholder="Search events"
|
placeholder="Search events"
|
||||||
aria-label="Search events"
|
aria-label="Search events"
|
||||||
className="min-w-[12rem] flex-1 rounded-full border border-[#138ba0]/25 bg-white px-4 py-2 text-sm outline-none focus:border-[#138ba0] md:max-w-xs"
|
className="min-w-[12rem] flex-1 rounded-full border border-[#138ba0]/25 bg-white px-4 py-2 text-sm outline-none focus:border-[#0f7183] focus:ring-2 focus:ring-[#0f7183]/40 md:max-w-xs"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{filtering && (
|
{filtering && (
|
||||||
|
|
@ -781,7 +781,7 @@ function FilterSelect({
|
||||||
value={value}
|
value={value}
|
||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
aria-label={label}
|
aria-label={label}
|
||||||
className="rounded-full border border-[#138ba0]/25 bg-white px-4 py-2 text-sm outline-none focus:border-[#138ba0]"
|
className="rounded-full border border-[#138ba0]/25 bg-white px-4 py-2 text-sm outline-none focus:border-[#0f7183] focus:ring-2 focus:ring-[#0f7183]/40"
|
||||||
>
|
>
|
||||||
<option value="">{all}</option>
|
<option value="">{all}</option>
|
||||||
{options.map(([id, name]) => (
|
{options.map(([id, name]) => (
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,8 @@ function Logo({ src, alt = "", className }) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const TEAL = "#138ba0"; // last-resort card color
|
const TEAL = "#0f7183"; // last-resort card color
|
||||||
|
const INK = "#073d4a"; // button text: the card colour is only a border
|
||||||
const CARD_BG = "#ffffff"; // sits under every card, gradient or not
|
const CARD_BG = "#ffffff"; // sits under every card, gradient or not
|
||||||
|
|
||||||
/* Laid over a card's background image so black text reads on any
|
/* Laid over a card's background image so black text reads on any
|
||||||
|
|
@ -169,8 +170,8 @@ export function Card({
|
||||||
const typeBadge =
|
const typeBadge =
|
||||||
showType && ev.event_type ? (
|
showType && ev.event_type ? (
|
||||||
<span
|
<span
|
||||||
className="inline-block rounded-full px-3 py-0.5 mb-2 text-xs font-700 uppercase tracking-wide"
|
className="inline-block rounded-full px-3 py-0.5 mb-2 text-xs font-bold uppercase tracking-wide"
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color: INK }}
|
||||||
>
|
>
|
||||||
{eventTypeLabel(ev.event_type)}
|
{eventTypeLabel(ev.event_type)}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -200,6 +201,9 @@ export function Card({
|
||||||
filter: past ? "saturate(0.75)" : "none",
|
filter: past ? "saturate(0.75)" : "none",
|
||||||
pointerEvents: interactive ? "auto" : "none",
|
pointerEvents: interactive ? "auto" : "none",
|
||||||
}}
|
}}
|
||||||
|
// A card shown but not in play (a carousel neighbour, a collapsed
|
||||||
|
// past event) keeps its links out of the tab order too.
|
||||||
|
inert={!interactive}
|
||||||
>
|
>
|
||||||
<div className={`flex-1 flex flex-col ${compact ? "p-8" : "p-10"}`}>
|
<div className={`flex-1 flex flex-col ${compact ? "p-8" : "p-10"}`}>
|
||||||
{compact ? (
|
{compact ? (
|
||||||
|
|
@ -208,13 +212,13 @@ export function Card({
|
||||||
<Logo src={orgLogo} className="ev-ngu h-11 w-auto mb-4" />
|
<Logo src={orgLogo} className="ev-ngu h-11 w-auto mb-4" />
|
||||||
<div className="ev-info">
|
<div className="ev-info">
|
||||||
{typeBadge}
|
{typeBadge}
|
||||||
<h3 className="text-3xl font-900 leading-tight">
|
<h3 className="text-3xl font-extrabold leading-tight">
|
||||||
<TitleLink ev={ev} linked={linked}>
|
<TitleLink ev={ev} linked={linked}>
|
||||||
{ev.title}
|
{ev.title}
|
||||||
</TitleLink>
|
</TitleLink>
|
||||||
</h3>
|
</h3>
|
||||||
{ev.theme && (
|
{ev.theme && (
|
||||||
<p className="text-xl font-300 font-bold">"{ev.theme}"</p>
|
<p className="text-xl font-normal font-bold">"{ev.theme}"</p>
|
||||||
)}
|
)}
|
||||||
{ev.date_label && <p className="text-xl">{ev.date_label}</p>}
|
{ev.date_label && <p className="text-xl">{ev.date_label}</p>}
|
||||||
{schedule && <p className="text-xl">{schedule}</p>}
|
{schedule && <p className="text-xl">{schedule}</p>}
|
||||||
|
|
@ -224,7 +228,7 @@ export function Card({
|
||||||
</div>
|
</div>
|
||||||
<Logo
|
<Logo
|
||||||
src={eventLogo}
|
src={eventLogo}
|
||||||
alt={ev.title}
|
alt=""
|
||||||
className="ev-image w-full h-auto object-contain"
|
className="ev-image w-full h-auto object-contain"
|
||||||
/>
|
/>
|
||||||
<div className="ev-desc">{descriptions}</div>
|
<div className="ev-desc">{descriptions}</div>
|
||||||
|
|
@ -236,13 +240,13 @@ export function Card({
|
||||||
<div className="md:col-span-2">
|
<div className="md:col-span-2">
|
||||||
<Logo src={orgLogo} className="h-15 w-auto mb-6" />
|
<Logo src={orgLogo} className="h-15 w-auto mb-6" />
|
||||||
{typeBadge}
|
{typeBadge}
|
||||||
<h3 className="text-4xl font-900">
|
<h3 className="text-4xl font-extrabold">
|
||||||
<TitleLink ev={ev} linked={linked}>
|
<TitleLink ev={ev} linked={linked}>
|
||||||
{ev.title}
|
{ev.title}
|
||||||
</TitleLink>
|
</TitleLink>
|
||||||
</h3>
|
</h3>
|
||||||
{ev.theme && (
|
{ev.theme && (
|
||||||
<p className="text-2xl font-300 font-bold">"{ev.theme}"</p>
|
<p className="text-2xl font-normal font-bold">"{ev.theme}"</p>
|
||||||
)}
|
)}
|
||||||
{ev.date_label && <p className="text-2xl">{ev.date_label}</p>}
|
{ev.date_label && <p className="text-2xl">{ev.date_label}</p>}
|
||||||
{schedule && <p className="text-2xl">{schedule}</p>}
|
{schedule && <p className="text-2xl">{schedule}</p>}
|
||||||
|
|
@ -253,7 +257,7 @@ export function Card({
|
||||||
<div className="md:col-span-1 flex items-center justify-end">
|
<div className="md:col-span-1 flex items-center justify-end">
|
||||||
<Logo
|
<Logo
|
||||||
src={eventLogo}
|
src={eventLogo}
|
||||||
alt={ev.title}
|
alt=""
|
||||||
className="w-full h-auto max-h-72 object-contain"
|
className="w-full h-auto max-h-72 object-contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -274,7 +278,7 @@ export function Card({
|
||||||
doesn't. */}
|
doesn't. */}
|
||||||
<div className={`mt-auto ${compact ? "pt-6" : "pt-8"}`}>
|
<div className={`mt-auto ${compact ? "pt-6" : "pt-8"}`}>
|
||||||
{links.length === 0 && (
|
{links.length === 0 && (
|
||||||
<p className="text-center font-600" style={{ color: accent }}>
|
<p className="text-center font-semibold" style={{ color: accent }}>
|
||||||
{past
|
{past
|
||||||
? "This event has concluded. Thank you to everyone who joined us!"
|
? "This event has concluded. Thank you to everyone who joined us!"
|
||||||
: igHandle
|
: igHandle
|
||||||
|
|
@ -295,10 +299,10 @@ export function Card({
|
||||||
<a
|
<a
|
||||||
key={item.label}
|
key={item.label}
|
||||||
href={item.url}
|
href={item.url}
|
||||||
className={`inline-flex items-center justify-center gap-2 rounded-xl font-700 transition-all duration-200 hover:scale-105 text-center ${
|
className={`inline-flex items-center justify-center gap-2 rounded-xl font-bold transition-all duration-200 hover:scale-105 text-center ${
|
||||||
compact ? "py-2.5 px-5" : "py-2.5 px-6"
|
compact ? "py-2.5 px-5" : "py-2.5 px-6"
|
||||||
}`}
|
}`}
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color: INK }}
|
||||||
>
|
>
|
||||||
<PlatformIcon platform={item.platform} />
|
<PlatformIcon platform={item.platform} />
|
||||||
{item.label}
|
{item.label}
|
||||||
|
|
@ -313,7 +317,7 @@ export function Card({
|
||||||
href={igUrl}
|
href={igUrl}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className={`ig-link flex items-center justify-center rounded-xl font-700 transition-all duration-200 hover:scale-[1.02] gap-3 ${
|
className={`ig-link flex items-center justify-center rounded-xl font-bold transition-all duration-200 hover:scale-[1.02] gap-3 ${
|
||||||
compact ? "py-2.5 px-5" : "py-3 px-6"
|
compact ? "py-2.5 px-5" : "py-3 px-6"
|
||||||
}`}
|
}`}
|
||||||
style={{ border: `1px solid ${accent}`, color: accent }}
|
style={{ border: `1px solid ${accent}`, color: accent }}
|
||||||
|
|
@ -327,10 +331,10 @@ export function Card({
|
||||||
{linked && (
|
{linked && (
|
||||||
<Link
|
<Link
|
||||||
to={eventHref(ev.id)}
|
to={eventHref(ev.id)}
|
||||||
className={`rounded-xl font-700 transition-all duration-200 hover:scale-105 text-center ${
|
className={`rounded-xl font-bold transition-all duration-200 hover:scale-105 text-center ${
|
||||||
compact ? "py-2.5 px-5" : "py-2.5 px-6"
|
compact ? "py-2.5 px-5" : "py-2.5 px-6"
|
||||||
}`}
|
}`}
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color: INK }}
|
||||||
>
|
>
|
||||||
Event details
|
Event details
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -366,7 +370,7 @@ export function TypeFilter({ types, active, setActive, accent }) {
|
||||||
key={id}
|
key={id}
|
||||||
onClick={() => setActive(id)}
|
onClick={() => setActive(id)}
|
||||||
aria-pressed={active === id}
|
aria-pressed={active === id}
|
||||||
className="rounded-full py-1.5 px-4 text-sm font-700 transition-colors duration-200"
|
className="rounded-full py-1.5 px-4 text-sm font-bold transition-colors duration-200"
|
||||||
style={chip(active === id)}
|
style={chip(active === id)}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
|
|
@ -405,7 +409,7 @@ export function EventCardsToggle({ view, setView, accent }) {
|
||||||
<button
|
<button
|
||||||
onClick={() => setView("carousel")}
|
onClick={() => setView("carousel")}
|
||||||
aria-pressed={view === "carousel"}
|
aria-pressed={view === "carousel"}
|
||||||
className="flex items-center gap-2 py-2 px-4 font-700 text-sm transition-colors duration-200"
|
className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200"
|
||||||
style={btn(view === "carousel")}
|
style={btn(view === "carousel")}
|
||||||
>
|
>
|
||||||
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||||
|
|
@ -417,7 +421,7 @@ export function EventCardsToggle({ view, setView, accent }) {
|
||||||
<button
|
<button
|
||||||
onClick={() => setView("grid")}
|
onClick={() => setView("grid")}
|
||||||
aria-pressed={view === "grid"}
|
aria-pressed={view === "grid"}
|
||||||
className="flex items-center gap-2 py-2 px-4 font-700 text-sm transition-colors duration-200"
|
className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200"
|
||||||
style={btn(view === "grid")}
|
style={btn(view === "grid")}
|
||||||
>
|
>
|
||||||
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||||
|
|
@ -525,7 +529,7 @@ export default function EventListCards({
|
||||||
});
|
});
|
||||||
|
|
||||||
const notice = text => (
|
const notice = text => (
|
||||||
<p className="max-w-6xl mx-auto px-6 font-600" style={{ color: accent }}>
|
<p className="max-w-6xl mx-auto px-6 font-semibold" style={{ color: accent }}>
|
||||||
{text}
|
{text}
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
@ -595,7 +599,7 @@ export default function EventListCards({
|
||||||
{pastEvents.length > 0 && (
|
{pastEvents.length > 0 && (
|
||||||
<div className="mt-12">
|
<div className="mt-12">
|
||||||
<h3
|
<h3
|
||||||
className="text-2xl font-800 mb-6"
|
className="text-2xl font-extrabold mb-6"
|
||||||
style={{ color: accent, opacity: 0.85 }}
|
style={{ color: accent, opacity: 0.85 }}
|
||||||
>
|
>
|
||||||
Past Events
|
Past Events
|
||||||
|
|
@ -635,7 +639,7 @@ export default function EventListCards({
|
||||||
<button
|
<button
|
||||||
onClick={() => setShowPast(v => !v)}
|
onClick={() => setShowPast(v => !v)}
|
||||||
aria-expanded={showPast}
|
aria-expanded={showPast}
|
||||||
className="flex items-center gap-2 py-2.5 px-6 rounded-xl font-700 transition-all duration-200 hover:scale-105"
|
className="flex items-center gap-2 py-2.5 px-6 rounded-xl font-bold transition-all duration-200 hover:scale-105"
|
||||||
style={{ border: `1px solid ${accent}`, color: accent }}
|
style={{ border: `1px solid ${accent}`, color: accent }}
|
||||||
>
|
>
|
||||||
{showPast
|
{showPast
|
||||||
|
|
@ -704,7 +708,7 @@ export default function EventListCards({
|
||||||
onClick={prev}
|
onClick={prev}
|
||||||
disabled={index === 0}
|
disabled={index === 0}
|
||||||
aria-label="Previous event"
|
aria-label="Previous event"
|
||||||
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-700 shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
|
className="absolute left-2 md:left-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
|
||||||
style={arrowStyle(index > 0)}
|
style={arrowStyle(index > 0)}
|
||||||
>
|
>
|
||||||
‹
|
‹
|
||||||
|
|
@ -713,7 +717,7 @@ export default function EventListCards({
|
||||||
onClick={next}
|
onClick={next}
|
||||||
disabled={index === events.length - 1}
|
disabled={index === events.length - 1}
|
||||||
aria-label="Next event"
|
aria-label="Next event"
|
||||||
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-700 shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
|
className="absolute right-2 md:right-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
|
||||||
style={arrowStyle(index < events.length - 1)}
|
style={arrowStyle(index < events.length - 1)}
|
||||||
>
|
>
|
||||||
›
|
›
|
||||||
|
|
@ -729,6 +733,7 @@ export default function EventListCards({
|
||||||
key={e.id}
|
key={e.id}
|
||||||
onClick={() => setIndex(i)}
|
onClick={() => setIndex(i)}
|
||||||
aria-label={`Go to ${e.title}`}
|
aria-label={`Go to ${e.title}`}
|
||||||
|
aria-current={i === index ? "true" : undefined}
|
||||||
className="h-2.5 rounded-full transition-all duration-200"
|
className="h-2.5 rounded-full transition-all duration-200"
|
||||||
style={{
|
style={{
|
||||||
width: i === index ? "1.5rem" : "0.625rem",
|
width: i === index ? "1.5rem" : "0.625rem",
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import { post, ApiError } from "../../lib/api.ts";
|
||||||
import { PAGE_LINKS, PAGE_SECTIONS } from "../../navConfig.ts";
|
import { PAGE_LINKS, PAGE_SECTIONS } from "../../navConfig.ts";
|
||||||
import { FEEDBACK_TYPES } from "../../data/feedbackTypes.ts";
|
import { FEEDBACK_TYPES } from "../../data/feedbackTypes.ts";
|
||||||
|
|
||||||
const ACCENT = "#138ba0";
|
const ACCENT = "#0f7183";
|
||||||
const MUTED = "#4a6b72";
|
const MUTED = "#4a6b72";
|
||||||
const MAX_CHARS = 1500;
|
const MAX_CHARS = 1500;
|
||||||
const MIN_MESSAGE = 10; // matches the server
|
const MIN_MESSAGE = 10; // matches the server
|
||||||
|
|
@ -40,7 +40,7 @@ const selectClass = `${fieldClass} appearance-none pr-10`;
|
||||||
|
|
||||||
function OptionalTag() {
|
function OptionalTag() {
|
||||||
return (
|
return (
|
||||||
<span className="ml-2 rounded-full bg-[#eef9fb] px-2 py-0.5 text-xs font-medium text-[#138ba0]">
|
<span className="ml-2 rounded-full bg-[#eef9fb] px-2 py-0.5 text-xs font-medium text-[#0f7183]">
|
||||||
Optional
|
Optional
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
@ -132,7 +132,7 @@ function TypePicker({ value, onChange }) {
|
||||||
className={
|
className={
|
||||||
"mt-0.5 h-4 w-4 shrink-0 rounded-full border-2 transition-colors " +
|
"mt-0.5 h-4 w-4 shrink-0 rounded-full border-2 transition-colors " +
|
||||||
(selected
|
(selected
|
||||||
? "border-[#138ba0] bg-[#138ba0] ring-2 ring-inset ring-white"
|
? "border-[#138ba0] bg-[#0f7183] ring-2 ring-inset ring-white"
|
||||||
: "border-[#4a6b72]/30")
|
: "border-[#4a6b72]/30")
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
@ -306,7 +306,7 @@ export default function FeedbackForm() {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={reset}
|
onClick={reset}
|
||||||
className="mt-6 rounded-full border border-[#138ba0] px-5 py-2.5 font-semibold text-[#138ba0] transition-colors hover:bg-[#eef9fb] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40"
|
className="mt-6 rounded-full border border-[#138ba0] px-5 py-2.5 font-semibold text-[#0f7183] transition-colors hover:bg-[#eef9fb] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40"
|
||||||
>
|
>
|
||||||
Send more feedback
|
Send more feedback
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -447,7 +447,7 @@ export default function FeedbackForm() {
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={!ready || sending}
|
disabled={!ready || sending}
|
||||||
className="rounded-full bg-[#138ba0] px-7 py-3 font-semibold text-white transition-colors hover:bg-[#0f7183] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40 disabled:cursor-not-allowed disabled:bg-[#4a6b72]/25 disabled:text-white/80"
|
className="rounded-full bg-[#0f7183] px-7 py-3 font-semibold text-white transition-colors hover:bg-[#0b5c6a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40 disabled:cursor-not-allowed disabled:bg-[#4a6b72]/25 disabled:text-white/80"
|
||||||
>
|
>
|
||||||
{sending ? "Sending…" : "Send feedback"}
|
{sending ? "Sending…" : "Send feedback"}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ function OrgMark({ org, color }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className="h-14 w-14 rounded-xl shrink-0 flex items-center justify-center font-800"
|
className="h-14 w-14 rounded-xl shrink-0 flex items-center justify-center font-extrabold"
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color }}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
|
|
@ -76,7 +76,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
|
||||||
<OrgMark org={org} color={color} />
|
<OrgMark org={org} color={color} />
|
||||||
|
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
<h3 className="text-xl font-800 leading-tight" style={{ color }}>
|
<h3 className="text-xl font-extrabold leading-tight" style={{ color }}>
|
||||||
{org.name}
|
{org.name}
|
||||||
</h3>
|
</h3>
|
||||||
{subtitle && (
|
{subtitle && (
|
||||||
|
|
@ -115,7 +115,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
|
||||||
href={org.website}
|
href={org.website}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="py-2 px-4 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
|
className="py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color }}
|
||||||
>
|
>
|
||||||
{siteLabel} ↗
|
{siteLabel} ↗
|
||||||
|
|
@ -125,7 +125,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
|
||||||
{org.email && (
|
{org.email && (
|
||||||
<a
|
<a
|
||||||
href={`mailto:${org.email}`}
|
href={`mailto:${org.email}`}
|
||||||
className="py-2 px-4 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
|
className="py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color }}
|
||||||
>
|
>
|
||||||
Contact
|
Contact
|
||||||
|
|
@ -142,7 +142,7 @@ function Block({ title, orgs, accent, pageLabel, siteLabel }) {
|
||||||
return (
|
return (
|
||||||
<section className="mb-12">
|
<section className="mb-12">
|
||||||
{title && (
|
{title && (
|
||||||
<h3 className="text-xl font-800 mb-5" style={{ color: FALLBACK_COLOR }}>
|
<h3 className="text-xl font-extrabold mb-5" style={{ color: FALLBACK_COLOR }}>
|
||||||
{title}
|
{title}
|
||||||
</h3>
|
</h3>
|
||||||
)}
|
)}
|
||||||
|
|
@ -195,7 +195,7 @@ export default function OrgListCards({
|
||||||
|
|
||||||
if (error && organizations.length === 0) {
|
if (error && organizations.length === 0) {
|
||||||
return shell(
|
return shell(
|
||||||
<p className="font-600" style={{ color: accent }}>
|
<p className="font-semibold" style={{ color: accent }}>
|
||||||
· This list couldn't be loaded just now, please try again shortly ·
|
· This list couldn't be loaded just now, please try again shortly ·
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
@ -203,7 +203,7 @@ export default function OrgListCards({
|
||||||
|
|
||||||
if (organizations.length === 0) {
|
if (organizations.length === 0) {
|
||||||
return shell(
|
return shell(
|
||||||
<p className="font-600" style={{ color: accent }}>
|
<p className="font-semibold" style={{ color: accent }}>
|
||||||
{empty}
|
{empty}
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -67,13 +67,13 @@ function Blocks({ blocks = [] as any[], color }) {
|
||||||
switch (block.type) {
|
switch (block.type) {
|
||||||
case "heading":
|
case "heading":
|
||||||
return (
|
return (
|
||||||
<h4 key={i} className="text-lg font-800" style={{ color }}>
|
<h4 key={i} className="text-lg font-extrabold">
|
||||||
{block.text}
|
{block.text}
|
||||||
</h4>
|
</h4>
|
||||||
);
|
);
|
||||||
case "subheading":
|
case "subheading":
|
||||||
return (
|
return (
|
||||||
<h5 key={i} className="font-700">
|
<h5 key={i} className="font-bold">
|
||||||
{block.text}
|
{block.text}
|
||||||
</h5>
|
</h5>
|
||||||
);
|
);
|
||||||
|
|
@ -98,8 +98,8 @@ function Blocks({ blocks = [] as any[], color }) {
|
||||||
href={item.url}
|
href={item.url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="font-700 underline"
|
className="font-bold underline"
|
||||||
style={{ color }}
|
style={{ textDecorationColor: color }}
|
||||||
>
|
>
|
||||||
{item.text}
|
{item.text}
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -288,11 +288,11 @@ function LegendButton({ region, selected, setSelected, hovered, setHovered }) {
|
||||||
onFocus={() => setHovered(region.id)}
|
onFocus={() => setHovered(region.id)}
|
||||||
onBlur={() => setHovered(null)}
|
onBlur={() => setHovered(null)}
|
||||||
aria-pressed={selected === region.id}
|
aria-pressed={selected === region.id}
|
||||||
className="flex items-center gap-2 py-1.5 px-3 rounded-lg text-sm font-700 transition-all duration-200"
|
className="flex items-center gap-2 py-1.5 px-3 rounded-lg text-sm font-bold transition-all duration-200"
|
||||||
style={{
|
style={{
|
||||||
border: `1px solid ${colorOf(region)}`,
|
border: `1px solid ${colorOf(region)}`,
|
||||||
background: on ? colorOf(region) : "transparent",
|
background: on ? colorOf(region) : "transparent",
|
||||||
color: on ? "#ffffff" : colorOf(region),
|
color: on ? "#ffffff" : INK,
|
||||||
opacity: selected && selected !== region.id ? 0.45 : 1,
|
opacity: selected && selected !== region.id ? 0.45 : 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -339,7 +339,7 @@ function Legend({ domestic, international, onMapIds, ...props }: any) {
|
||||||
{selected && (
|
{selected && (
|
||||||
<button
|
<button
|
||||||
onClick={() => setSelected(null)}
|
onClick={() => setSelected(null)}
|
||||||
className="py-1.5 px-3 rounded-lg text-sm font-700 underline"
|
className="py-1.5 px-3 rounded-lg text-sm font-bold underline"
|
||||||
style={{ color: FALLBACK_COLOR }}
|
style={{ color: FALLBACK_COLOR }}
|
||||||
>
|
>
|
||||||
Show all
|
Show all
|
||||||
|
|
@ -369,26 +369,26 @@ function RegionBlock({
|
||||||
className="transition-opacity duration-200"
|
className="transition-opacity duration-200"
|
||||||
style={{ opacity: selected && !on ? 0.35 : 1, marginLeft: indent ? "0.75rem" : 0 }}
|
style={{ opacity: selected && !on ? 0.35 : 1, marginLeft: indent ? "0.75rem" : 0 }}
|
||||||
>
|
>
|
||||||
|
{/* The heading holds the button, not the other way round: a
|
||||||
|
heading inside a button stops being a heading. */}
|
||||||
|
<h4 className={`font-extrabold ${indent ? "text-lg" : "text-xl"}`} style={{ color: INK }}>
|
||||||
<button
|
<button
|
||||||
onClick={() => setSelected(on ? null : region.id)}
|
onClick={() => setSelected(on ? null : region.id)}
|
||||||
onMouseEnter={() => setHovered(region.id)}
|
onMouseEnter={() => setHovered(region.id)}
|
||||||
onMouseLeave={() => setHovered(null)}
|
onMouseLeave={() => setHovered(null)}
|
||||||
|
aria-expanded={on}
|
||||||
className="w-full flex items-baseline gap-2 text-left py-2"
|
className="w-full flex items-baseline gap-2 text-left py-2"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="h-3 w-3 rounded-full shrink-0"
|
className="h-3 w-3 rounded-full shrink-0"
|
||||||
style={{ background: colorOf(region) }}
|
style={{ background: colorOf(region) }}
|
||||||
/>
|
/>
|
||||||
<h4
|
|
||||||
className={`font-800 ${indent ? "text-lg" : "text-xl"}`}
|
|
||||||
style={{ color: colorOf(region) }}
|
|
||||||
>
|
|
||||||
{region.name}
|
{region.name}
|
||||||
</h4>
|
<span className="text-sm font-normal ml-auto" style={{ color: MUTED }}>
|
||||||
<span className="text-sm ml-auto" style={{ color: MUTED }}>
|
|
||||||
{chapters.length || "-"}
|
{chapters.length || "-"}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
</h4>
|
||||||
|
|
||||||
{subtext && (
|
{subtext && (
|
||||||
<p className="text-sm mb-2 ml-5 leading-snug" style={{ color: MUTED }}>
|
<p className="text-sm mb-2 ml-5 leading-snug" style={{ color: MUTED }}>
|
||||||
|
|
@ -410,7 +410,7 @@ function RegionBlock({
|
||||||
style={{ borderLeft: `2px solid ${colorOf(region)}` }}
|
style={{ borderLeft: `2px solid ${colorOf(region)}` }}
|
||||||
>
|
>
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
<p className="font-700">{c.name}</p>
|
<p className="font-bold">{c.name}</p>
|
||||||
<p className="text-sm" style={{ color: FALLBACK_COLOR }}>
|
<p className="text-sm" style={{ color: FALLBACK_COLOR }}>
|
||||||
{c.location_label}
|
{c.location_label}
|
||||||
{c.meets ? ` · ${c.meets}` : ""}
|
{c.meets ? ` · ${c.meets}` : ""}
|
||||||
|
|
@ -422,7 +422,7 @@ function RegionBlock({
|
||||||
href={c.website}
|
href={c.website}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="font-700 underline"
|
className="font-bold underline"
|
||||||
style={{ color: colorOf(region) }}
|
style={{ color: colorOf(region) }}
|
||||||
>
|
>
|
||||||
Details
|
Details
|
||||||
|
|
@ -431,7 +431,7 @@ function RegionBlock({
|
||||||
{c.email && (
|
{c.email && (
|
||||||
<a
|
<a
|
||||||
href={`mailto:${c.email}`}
|
href={`mailto:${c.email}`}
|
||||||
className="font-700 underline"
|
className="font-bold underline"
|
||||||
style={{ color: colorOf(region) }}
|
style={{ color: colorOf(region) }}
|
||||||
>
|
>
|
||||||
Contact
|
Contact
|
||||||
|
|
@ -481,7 +481,7 @@ function OrgLogo({ org, color, size = "h-14 w-14" }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${size} rounded-xl shrink-0 flex items-center justify-center font-800`}
|
className={`${size} rounded-xl shrink-0 flex items-center justify-center font-extrabold`}
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color }}
|
||||||
aria-label={org.name}
|
aria-label={org.name}
|
||||||
>
|
>
|
||||||
|
|
@ -502,7 +502,7 @@ function ChapterCard({ chapter, color, open, onOpen }) {
|
||||||
<OrgLogo org={chapter} color={color} />
|
<OrgLogo org={chapter} color={color} />
|
||||||
|
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
<p className="font-700 leading-tight">{chapter.name}</p>
|
<p className="font-bold leading-tight">{chapter.name}</p>
|
||||||
<p className="text-sm" style={{ color: FALLBACK_COLOR }}>
|
<p className="text-sm" style={{ color: FALLBACK_COLOR }}>
|
||||||
{chapter.location_label}
|
{chapter.location_label}
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -580,14 +580,14 @@ function ChapterDetail({ chapter, region, onClose }) {
|
||||||
<OrgLogo org={chapter} color={colorOf(region)} size="h-20 w-20" />
|
<OrgLogo org={chapter} color={colorOf(region)} size="h-20 w-20" />
|
||||||
|
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
<p className="text-2xl font-900 leading-tight">{chapter.name}</p>
|
<p className="text-2xl font-extrabold leading-tight">{chapter.name}</p>
|
||||||
<p style={{ color: FALLBACK_COLOR }}>{chapter.location_label}</p>
|
<p style={{ color: FALLBACK_COLOR }}>{chapter.location_label}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
aria-label="Close details"
|
aria-label="Close details"
|
||||||
className="shrink-0 h-8 w-8 rounded-full flex items-center justify-center text-lg font-700 transition-transform duration-200 hover:scale-110"
|
className="shrink-0 h-8 w-8 rounded-full flex items-center justify-center text-lg font-bold transition-transform duration-200 hover:scale-110"
|
||||||
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
||||||
>
|
>
|
||||||
×
|
×
|
||||||
|
|
@ -603,7 +603,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
||||||
<dt className="shrink-0" style={{ color: MUTED }}>
|
<dt className="shrink-0" style={{ color: MUTED }}>
|
||||||
{label}
|
{label}
|
||||||
</dt>
|
</dt>
|
||||||
<dd className="font-700" style={{ color: INK }}>
|
<dd className="font-bold" style={{ color: INK }}>
|
||||||
{value}
|
{value}
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -615,7 +615,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
||||||
{orgPath(chapter) && (
|
{orgPath(chapter) && (
|
||||||
<Link
|
<Link
|
||||||
to={orgPath(chapter)!}
|
to={orgPath(chapter)!}
|
||||||
className="py-2 px-5 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
|
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
|
||||||
style={{ background: colorOf(region), color: "#ffffff" }}
|
style={{ background: colorOf(region), color: "#ffffff" }}
|
||||||
>
|
>
|
||||||
Chapter page
|
Chapter page
|
||||||
|
|
@ -626,7 +626,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
||||||
href={chapter.website}
|
href={chapter.website}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="py-2 px-5 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
|
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
|
||||||
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
||||||
>
|
>
|
||||||
Visit site
|
Visit site
|
||||||
|
|
@ -636,7 +636,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
||||||
{chapter.email && (
|
{chapter.email && (
|
||||||
<a
|
<a
|
||||||
href={`mailto:${chapter.email}`}
|
href={`mailto:${chapter.email}`}
|
||||||
className="py-2 px-5 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
|
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
|
||||||
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
||||||
>
|
>
|
||||||
Get in touch
|
Get in touch
|
||||||
|
|
@ -666,7 +666,7 @@ function ChapterGrid({ regions, chapters, chaptersIn, subtextFor, openId, setOpe
|
||||||
className="h-3 w-3 rounded-full shrink-0"
|
className="h-3 w-3 rounded-full shrink-0"
|
||||||
style={{ background: colorOf(region) }}
|
style={{ background: colorOf(region) }}
|
||||||
/>
|
/>
|
||||||
<h3 className="text-2xl font-800" style={{ color: colorOf(region) }}>
|
<h3 className="text-2xl font-extrabold" style={{ color: colorOf(region) }}>
|
||||||
{region.name}
|
{region.name}
|
||||||
</h3>
|
</h3>
|
||||||
<span className="text-sm" style={{ color: MUTED }}>
|
<span className="text-sm" style={{ color: MUTED }}>
|
||||||
|
|
@ -741,7 +741,7 @@ export function OrgMapToggle({ view, setView, accent }) {
|
||||||
key={id}
|
key={id}
|
||||||
onClick={() => setView(id)}
|
onClick={() => setView(id)}
|
||||||
aria-pressed={view === id}
|
aria-pressed={view === id}
|
||||||
className="py-2 px-4 font-700 text-sm transition-colors duration-200"
|
className="py-2 px-4 font-bold text-sm transition-colors duration-200"
|
||||||
style={btn(view === id)}
|
style={btn(view === id)}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
|
|
@ -834,7 +834,7 @@ export default function OrgListMap({ view = "map", accent = FALLBACK_COLOR }) {
|
||||||
|
|
||||||
if (error && regions.length === 0) {
|
if (error && regions.length === 0) {
|
||||||
return shell(
|
return shell(
|
||||||
<p className="font-600" style={{ color: accent }}>
|
<p className="font-semibold" style={{ color: accent }}>
|
||||||
· Chapters couldn't be loaded just now, please try again shortly ·
|
· Chapters couldn't be loaded just now, please try again shortly ·
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
@ -904,13 +904,13 @@ export default function OrgListMap({ view = "map", accent = FALLBACK_COLOR }) {
|
||||||
ref={listRef}
|
ref={listRef}
|
||||||
className="relative lg:h-0 lg:min-h-full overflow-y-auto pr-2"
|
className="relative lg:h-0 lg:min-h-full overflow-y-auto pr-2"
|
||||||
>
|
>
|
||||||
<h3 className="text-xl font-800 mb-1" style={{ color: FALLBACK_COLOR }}>
|
<h3 className="text-xl font-extrabold mb-1" style={{ color: FALLBACK_COLOR }}>
|
||||||
{US_TITLE}
|
{US_TITLE}
|
||||||
</h3>
|
</h3>
|
||||||
{domestic.map(r => block(r, true))}
|
{domestic.map(r => block(r, true))}
|
||||||
|
|
||||||
<h3
|
<h3
|
||||||
className="text-xl font-800 mt-6 mb-1 pt-4"
|
className="text-xl font-extrabold mt-6 mb-1 pt-4"
|
||||||
style={{ color: FALLBACK_COLOR, borderTop: `1px solid ${RULE}` }}
|
style={{ color: FALLBACK_COLOR, borderTop: `1px solid ${RULE}` }}
|
||||||
>
|
>
|
||||||
{INTL_TITLE}
|
{INTL_TITLE}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ const FALLBACK_COLOR = "#4a6b72";
|
||||||
function RowButton({ as: As = "button", color, children, ...rest }: any) {
|
function RowButton({ as: As = "button", color, children, ...rest }: any) {
|
||||||
return (
|
return (
|
||||||
<As
|
<As
|
||||||
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap py-2 px-4 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
|
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color }}
|
||||||
{...rest}
|
{...rest}
|
||||||
>
|
>
|
||||||
|
|
@ -86,7 +86,7 @@ function OrgMark({ org, color }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className="h-8 w-8 rounded-lg shrink-0 flex items-center justify-center text-xs font-800"
|
className="h-8 w-8 rounded-lg shrink-0 flex items-center justify-center text-xs font-extrabold"
|
||||||
style={{ border: `1px solid ${color}`, color }}
|
style={{ border: `1px solid ${color}`, color }}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
|
|
@ -143,7 +143,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
|
||||||
<OrgMark org={org} color={color} />
|
<OrgMark org={org} color={color} />
|
||||||
|
|
||||||
<span className="min-w-0">
|
<span className="min-w-0">
|
||||||
<span className="block font-800 text-lg leading-tight" style={{ color }}>
|
<span className="block font-extrabold text-lg leading-tight" style={{ color }}>
|
||||||
{org.name}
|
{org.name}
|
||||||
</span>
|
</span>
|
||||||
{summary && (
|
{summary && (
|
||||||
|
|
@ -207,7 +207,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
|
||||||
|
|
||||||
{areas && (
|
{areas && (
|
||||||
<p className="text-sm" style={{ color: MUTED }}>
|
<p className="text-sm" style={{ color: MUTED }}>
|
||||||
<span className="font-700">Covers</span> {areas}
|
<span className="font-bold">Covers</span> {areas}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -253,7 +253,7 @@ function Block({ title, orgs, pageLabel, siteLabel }) {
|
||||||
return (
|
return (
|
||||||
<section className="mb-10">
|
<section className="mb-10">
|
||||||
{title && (
|
{title && (
|
||||||
<h3 className="text-xl font-800 mb-1" style={{ color: FALLBACK_COLOR }}>
|
<h3 className="text-xl font-extrabold mb-1" style={{ color: FALLBACK_COLOR }}>
|
||||||
{title}
|
{title}
|
||||||
</h3>
|
</h3>
|
||||||
)}
|
)}
|
||||||
|
|
@ -290,7 +290,7 @@ export default function OrgListVertical({
|
||||||
|
|
||||||
if (error && organizations.length === 0) {
|
if (error && organizations.length === 0) {
|
||||||
return shell(
|
return shell(
|
||||||
<p className="font-600" style={{ color: accent }}>
|
<p className="font-semibold" style={{ color: accent }}>
|
||||||
· This list couldn't be loaded just now, please try again shortly ·
|
· This list couldn't be loaded just now, please try again shortly ·
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
@ -298,7 +298,7 @@ export default function OrgListVertical({
|
||||||
|
|
||||||
if (organizations.length === 0) {
|
if (organizations.length === 0) {
|
||||||
return shell(
|
return shell(
|
||||||
<p className="font-600" style={{ color: accent }}>
|
<p className="font-semibold" style={{ color: accent }}>
|
||||||
{empty}
|
{empty}
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ import { awardHref, blogHref, eventHref, orgHref, personHref, teamHref } from '.
|
||||||
import { siteUrl } from '../../lib/site.ts'
|
import { siteUrl } from '../../lib/site.ts'
|
||||||
import { useDirectory, type Directory } from '../../lib/useContent.ts'
|
import { useDirectory, type Directory } from '../../lib/useContent.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const MUTED = '#4a6b72'
|
const MUTED = '#4a6b72'
|
||||||
|
|
||||||
/* PNG download size in pixels. Plenty for print at a few inches;
|
/* PNG download size in pixels. Plenty for print at a few inches;
|
||||||
|
|
@ -479,7 +479,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className="rounded-full bg-[#138ba0] px-6 py-3 font-semibold text-white transition-colors hover:bg-[#0f7183] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40"
|
className="rounded-full bg-[#0f7183] px-6 py-3 font-semibold text-white transition-colors hover:bg-[#0b5c6a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#138ba0]/40"
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
--tl-faint: #8aa7ad;
|
--tl-faint: #8aa7ad;
|
||||||
--tl-rail: #cfe4e8;
|
--tl-rail: #cfe4e8;
|
||||||
--tl-surface: #ffffff;
|
--tl-surface: #ffffff;
|
||||||
--tl-accent: #138ba0;
|
--tl-accent: #0f7183;
|
||||||
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
|
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
|
||||||
|
|
||||||
--tl-gutter: 5rem;
|
--tl-gutter: 5rem;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import { useHistory } from '../../../lib/useHistory.ts'
|
||||||
import { hrefFor, logoSrc } from '../../../lib/timelineRefs.ts'
|
import { hrefFor, logoSrc } from '../../../lib/timelineRefs.ts'
|
||||||
import { MONTH_LABELS, type TimelineItem } from '../../../lib/timeline.ts'
|
import { MONTH_LABELS, type TimelineItem } from '../../../lib/timeline.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
const DRAG_SLOP = 6
|
const DRAG_SLOP = 6
|
||||||
|
|
||||||
type RailProps = { id: string; title: string; blurb?: string | null }
|
type RailProps = { id: string; title: string; blurb?: string | null }
|
||||||
|
|
|
||||||
|
|
@ -443,7 +443,7 @@ function VideoFrame({
|
||||||
to its page. The first action link is the filled button, since
|
to its page. The first action link is the filled button, since
|
||||||
it's usually Register. */
|
it's usually Register. */
|
||||||
function EventPanel({ event }: { event: HeroEvent }) {
|
function EventPanel({ event }: { event: HeroEvent }) {
|
||||||
const color = event.color || '#138ba0'
|
const color = event.color || '#0f7183'
|
||||||
const photo = eventBackground(event.card_image)
|
const photo = eventBackground(event.card_image)
|
||||||
const when = seriesLabel(event.series, event.starts_on) ?? event.date_label
|
const when = seriesLabel(event.series, event.starts_on) ?? event.date_label
|
||||||
const where = event.is_online && !event.location_label ? 'Online' : event.location_label
|
const where = event.is_online && !event.location_label ? 'Online' : event.location_label
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import { eventHref } from '../../../lib/hrefs.ts'
|
||||||
import { upcomingOccurrences } from '../../../lib/eventSeries.ts'
|
import { upcomingOccurrences } from '../../../lib/eventSeries.ts'
|
||||||
import type { CountdownEvent } from '../../../lib/useFrontPage.ts'
|
import type { CountdownEvent } from '../../../lib/useFrontPage.ts'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
|
|
||||||
/* Local midnight (or HH:MM) on a 'YYYY-MM-DD'. */
|
/* Local midnight (or HH:MM) on a 'YYYY-MM-DD'. */
|
||||||
function localMoment(date: string, time?: string | null): Date | null {
|
function localMoment(date: string, time?: string | null): Date | null {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ type PathfinderProps = {
|
||||||
|
|
||||||
/* One accent per position, cycling. Paths are data; colour is
|
/* One accent per position, cycling. Paths are data; colour is
|
||||||
presentation, so it's assigned here rather than stored. */
|
presentation, so it's assigned here rather than stored. */
|
||||||
const ACCENTS = ['#138ba0', '#10a36e', '#c7972b', '#7a5ea8', '#d0643c']
|
const ACCENTS = ['#0f7183', '#0b7a52', '#8a6516', '#7a5ea8', '#b0502c']
|
||||||
|
|
||||||
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
|
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
|
||||||
const [selected, setSelected] = useState(0)
|
const [selected, setSelected] = useState(0)
|
||||||
|
|
@ -66,7 +66,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
|
||||||
<div className="mx-auto max-w-6xl px-6">
|
<div className="mx-auto max-w-6xl px-6">
|
||||||
<div className="grid gap-12 lg:grid-cols-12">
|
<div className="grid gap-12 lg:grid-cols-12">
|
||||||
<div className="lg:col-span-5">
|
<div className="lg:col-span-5">
|
||||||
<p className="text-xs font-bold uppercase tracking-[0.3em] text-[#138ba0]">
|
<p className="text-xs font-bold uppercase tracking-[0.3em] text-[#0f7183]">
|
||||||
I’m looking to…
|
I’m looking to…
|
||||||
</p>
|
</p>
|
||||||
<h2 className="mt-3 font-display text-4xl font-extrabold text-[#073d4a] md:text-5xl">
|
<h2 className="mt-3 font-display text-4xl font-extrabold text-[#073d4a] md:text-5xl">
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import { Link } from 'react-router-dom'
|
||||||
|
|
||||||
import EventListCards from '../EventList-Cards.tsx'
|
import EventListCards from '../EventList-Cards.tsx'
|
||||||
|
|
||||||
const TEAL = '#138ba0'
|
const TEAL = '#0f7183'
|
||||||
|
|
||||||
type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
|
type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue