Fix accessibility found in the audit
- Text contrast: teal text and button fills use #0f7183 (5.7:1), section accents darkened to pass on white, solid CTA buttons instead of the gradient, footer and subnav text raised to white/65, event and region colours kept on borders and swatches with ink text - Hidden carousel slides and collapsed past events are inert - Admin list rows carry a real link for keyboard use - Mobile menu is a modal dialog: focus, Escape, inert background, above the header - Skip to content link, one focus-visible ring, reduced-motion rule, focus rings on the calendar inputs - Region headings hold their button instead of sitting inside it - font-700 style classes (not Tailwind v4 utilities) replaced with named weights, and the 700/800 font files loaded - Migration 038: alt text for blog covers and schedule graphics; event logos next to their title are decorative - Drop the Church Center script from index.html; Giving loads it itself Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5274e09571
commit
185f9831e2
61 changed files with 310 additions and 207 deletions
|
|
@ -24,7 +24,7 @@ import { useAward, type Recipient } from '../lib/useContent.ts'
|
|||
import { eventHref, orgHref, personHref } from '../lib/hrefs.ts'
|
||||
import { awardLogo, initials, personPhoto } from '../lib/media.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const BODY = '#4a6b72'
|
||||
|
||||
export default function AwardDetail() {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import PeopleTiles from '../components/PeopleTiles.tsx'
|
|||
import { blogImage, personPhoto } from '../lib/media.ts'
|
||||
import { postDate, useBlogPost } from '../lib/useBlog.ts'
|
||||
|
||||
const ACCENT = '#138ba0'
|
||||
const ACCENT = '#0f7183'
|
||||
const BODY = '#4a6b72'
|
||||
|
||||
/* Where "back" goes: the section on the Community page. */
|
||||
|
|
@ -87,7 +87,7 @@ export default function BlogPost() {
|
|||
</div>
|
||||
|
||||
{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} />
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const SECTIONS = [
|
|||
title: "Local Chapters",
|
||||
blurb:
|
||||
"Young adult groups meeting in person and online across the movement.",
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
Component: OrgListMap,
|
||||
views: { options: ["map", "grid"], default: "map", Toggle: OrgMapToggle },
|
||||
|
|
@ -77,7 +77,7 @@ export default function CommunityPage() {
|
|||
id: "blog",
|
||||
title: blog?.title || BLOG_DEFAULT_TITLE,
|
||||
blurb: blog?.blurb ?? undefined,
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#ffffff",
|
||||
Component: CommunityBlog,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import { eventTypeLabel } from '../lib/eventTypes.ts'
|
|||
import { occurrenceLabel, seriesLabel, seriesTimes, upcomingOccurrences } from '../lib/eventSeries.ts'
|
||||
import { capitalize } from '../lib/text.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const BODY = '#4a6b72'
|
||||
|
||||
/* 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.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
const ACCENT = "#138ba0";
|
||||
const ACCENT = "#0f7183";
|
||||
|
||||
const SECTIONS = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const GIVING_URL =
|
|||
|
||||
const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1";
|
||||
|
||||
const ACCENT = "#138ba0";
|
||||
const ACCENT = "#0f7183";
|
||||
|
||||
function useChurchCenterModal() {
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const PAGE = sitePage("/history");
|
|||
*/
|
||||
const PROGRAM_START_YEAR = 2000;
|
||||
|
||||
const ACCENT = "#138ba0";
|
||||
const ACCENT = "#0f7183";
|
||||
const BACKGROUND = "#ffffff";
|
||||
|
||||
export default function History() {
|
||||
|
|
@ -51,7 +51,7 @@ export default function History() {
|
|||
<button
|
||||
type="button"
|
||||
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
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ export default function Home() {
|
|||
<button
|
||||
type="button"
|
||||
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
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const SECTIONS = [
|
|||
id: "board-staff",
|
||||
title: "Board & Staff",
|
||||
blurb: "The people guiding Next Generation of Unity day to day.",
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
|
|
@ -22,7 +22,7 @@ const SECTIONS = [
|
|||
id: "retreat-team",
|
||||
title: "Retreat Team",
|
||||
blurb: "Volunteers who plan and lead our gatherings throughout the year.",
|
||||
accent: "#aac992",
|
||||
accent: "#4a7a2f",
|
||||
background: "#ffffff",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
|
|
@ -52,8 +52,8 @@ const SECTIONS = [
|
|||
<div className="max-w-6xl mx-auto px-6">
|
||||
<a
|
||||
href="mailto:info@nextgenerationofunity.org"
|
||||
className="inline-block py-2.5 px-6 rounded-xl font-700 transition-all duration-200 hover:scale-105"
|
||||
style={{ border: "1px solid #138ba0", color: "#138ba0" }}
|
||||
className="inline-block py-2.5 px-6 rounded-xl font-bold transition-all duration-200 hover:scale-105"
|
||||
style={{ border: "1px solid #0f7183", color: "#0f7183" }}
|
||||
>
|
||||
info@nextgenerationofunity.org
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import {
|
|||
import { orgHref, orgListHref, teamHref } from '../lib/hrefs.ts'
|
||||
import { orgLogo, personPhoto } from '../lib/media.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const BODY = '#4a6b72'
|
||||
|
||||
export default function OrganizationDetail() {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import { initials, personPhoto } from '../lib/media.ts'
|
|||
import { eventTypeLabel } from '../lib/eventTypes.ts'
|
||||
import { capitalize } from '../lib/text.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const BODY = '#4a6b72'
|
||||
const BACKGROUNDS = ['#ffffff', '#eef9fb']
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const SECTIONS = [
|
|||
id: "privacy",
|
||||
title: "Privacy Policy",
|
||||
blurb: "Last updated: [date]",
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
content: (
|
||||
<div className="max-w-3xl mx-auto px-6 leading-relaxed text-[#2c4a50]">
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ const SECTIONS = [
|
|||
title: 'Make a QR code',
|
||||
blurb:
|
||||
'Pick a page from the main navigation, any event, organization, team, award, person or blog post, or type any link. Site pages always point at the live site. Choose what sits in the centre and the colours; a warning shows if the code might not scan.',
|
||||
accent: '#138ba0',
|
||||
accent: '#0f7183',
|
||||
background: '#eef9fb',
|
||||
content: (
|
||||
<div className="mx-auto max-w-6xl px-6">
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const SECTIONS = [
|
|||
id: "unity",
|
||||
title: "Unity Teachings",
|
||||
blurb: "Core principles, readings, and study material from the Unity movement.",
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
|
|
@ -21,7 +21,7 @@ const SECTIONS = [
|
|||
id: "branding",
|
||||
title: "Branding & Marketing",
|
||||
blurb: "Logos, colors, templates, and guidelines for representing NGU.",
|
||||
accent: "#aac992",
|
||||
accent: "#4a7a2f",
|
||||
background: "#ffffff",
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6">
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ const SECTIONS = [
|
|||
id: "national",
|
||||
title: "National Retreats",
|
||||
blurb: "Our flagship gatherings, open to young adults across the country.",
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
Component: EventListCards,
|
||||
props: { scope: "national", ...RETREATS },
|
||||
|
|
@ -56,7 +56,7 @@ const SECTIONS = [
|
|||
id: "regional",
|
||||
title: "Regional Retreats",
|
||||
blurb: "Smaller gatherings hosted by regions throughout the year.",
|
||||
accent: "#aac992",
|
||||
accent: "#4a7a2f",
|
||||
background: "#ffffff",
|
||||
Component: EventListCards,
|
||||
props: { scope: "regional", ...RETREATS },
|
||||
|
|
@ -81,7 +81,7 @@ const SECTIONS = [
|
|||
id: "local",
|
||||
title: "Local Events",
|
||||
blurb: "Hosted by individual chapters.",
|
||||
accent: "#d08a3c",
|
||||
accent: "#9a5b17",
|
||||
background: "#ffffff",
|
||||
Component: EventListCards,
|
||||
props: { scope: "local", ...RETREATS_ONLY },
|
||||
|
|
@ -91,7 +91,7 @@ const SECTIONS = [
|
|||
id: "international",
|
||||
title: "International Events",
|
||||
blurb: "Gatherings beyond the US.",
|
||||
accent: "#3c7fd0",
|
||||
accent: "#2f6bb5",
|
||||
background: "#eef9fb",
|
||||
Component: EventListCards,
|
||||
props: { scope: "international", ...RETREATS_ONLY },
|
||||
|
|
@ -101,7 +101,7 @@ const SECTIONS = [
|
|||
id: "other",
|
||||
title: "Other Events",
|
||||
blurb: "Everything that doesn't fit the categories above.",
|
||||
accent: "#7a8a8e",
|
||||
accent: "#5d6c70",
|
||||
background: "#ffffff",
|
||||
Component: EventListCards,
|
||||
props: { scope: "other", ...RETREATS_ONLY },
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import PeopleTiles from '../components/PeopleTiles.tsx'
|
|||
import { useTeam } from '../lib/useContent.ts'
|
||||
import { orgHref } from '../lib/hrefs.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const BODY = '#4a6b72'
|
||||
|
||||
export default function TeamDetail() {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const SECTIONS = [
|
|||
id: "terms",
|
||||
title: "Terms of Service",
|
||||
blurb: "Last updated: [date]",
|
||||
accent: "#138ba0",
|
||||
accent: "#0f7183",
|
||||
background: "#eef9fb",
|
||||
content: (
|
||||
<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";
|
||||
|
||||
const TEAL = "#138ba0";
|
||||
const TEAL = "#0f7183";
|
||||
const MUTED = "#4a6b72";
|
||||
const POLL_MS = 2000;
|
||||
|
||||
|
|
@ -81,9 +81,9 @@ function sizeOf(bytes: number | null): string {
|
|||
}
|
||||
|
||||
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 =
|
||||
"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 =
|
||||
"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 (
|
||||
<div className="mt-2">
|
||||
<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>
|
||||
<p className="mt-1 text-xs" style={{ color: MUTED }}>
|
||||
{job.status === "queued" ? "Waiting its turn…" : `${percent}%`}
|
||||
|
|
@ -368,7 +368,7 @@ export default function AdminClips() {
|
|||
return (
|
||||
<div>
|
||||
<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 }}>
|
||||
Cut clips from our YouTube and Facebook videos, for Reels, Shorts, the site or a podcast.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ import { feedbackTypeLabel } from "../../data/feedbackTypes.ts";
|
|||
const STATUSES = ["new", "read", "actioned", "archived", "spam"];
|
||||
|
||||
const STATUS_STYLE = {
|
||||
new: "bg-[#138ba0] text-white",
|
||||
read: "bg-[#eef9fb] text-[#138ba0]",
|
||||
new: "bg-[#0f7183] text-white",
|
||||
read: "bg-[#eef9fb] text-[#0f7183]",
|
||||
actioned: "bg-[#eaf3e2] text-[#4a6b2f]",
|
||||
archived: "bg-[#4a6b72]/10 text-[#4a6b72]",
|
||||
spam: "bg-[#fdf3f2] text-[#b3261e]",
|
||||
|
|
@ -117,7 +117,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
{row.email && (
|
||||
<a
|
||||
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}
|
||||
</a>
|
||||
|
|
@ -165,7 +165,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
|
|||
type="button"
|
||||
disabled={busy}
|
||||
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"}
|
||||
</button>
|
||||
|
|
@ -305,7 +305,7 @@ export default function AdminFeedback() {
|
|||
|
||||
return (
|
||||
<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]">
|
||||
{canWrite
|
||||
? "Everything submitted through the site form."
|
||||
|
|
@ -322,7 +322,7 @@ export default function AdminFeedback() {
|
|||
className={
|
||||
"rounded-full px-4 py-1.5 text-sm transition-colors " +
|
||||
(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")
|
||||
}
|
||||
>
|
||||
|
|
@ -387,7 +387,7 @@ export default function AdminFeedback() {
|
|||
<button
|
||||
type="button"
|
||||
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
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ function NavCard({ item }) {
|
|||
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="flex items-baseline gap-3">
|
||||
<h3 className="text-base font-semibold text-[#138ba0]">
|
||||
<h3 className="text-base font-semibold text-[#0f7183]">
|
||||
<Link
|
||||
to={to}
|
||||
className="after:absolute after:inset-0 after:rounded-2xl after:content-['']"
|
||||
|
|
@ -46,7 +46,7 @@ function NavCard({ item }) {
|
|||
</h3>
|
||||
<span
|
||||
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>
|
||||
|
|
@ -62,7 +62,7 @@ function NavCard({ item }) {
|
|||
<Link
|
||||
key={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}
|
||||
</Link>
|
||||
|
|
@ -77,7 +77,7 @@ function CardBlock({ title, blurb, children }) {
|
|||
return (
|
||||
<div className="mt-10">
|
||||
<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>}
|
||||
</div>
|
||||
<div className="mt-4 grid gap-4 sm:grid-cols-2">{children}</div>
|
||||
|
|
@ -114,7 +114,7 @@ export default function AdminHome() {
|
|||
return (
|
||||
<div className="grid gap-8 lg:grid-cols-[1fr_17rem] lg:items-start">
|
||||
<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."}
|
||||
</h1>
|
||||
<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>
|
||||
)}
|
||||
{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}
|
||||
</span>
|
||||
)}
|
||||
|
|
@ -156,7 +156,7 @@ export default function AdminHome() {
|
|||
<li key={link.to}>
|
||||
<Link
|
||||
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>
|
||||
|
|
@ -171,7 +171,7 @@ export default function AdminHome() {
|
|||
href="/"
|
||||
target="_blank"
|
||||
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 ↗
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ import {
|
|||
function GroupMenu({ item, lit, pathname }) {
|
||||
const children = item.children ?? [];
|
||||
const link = lit
|
||||
? "font-semibold text-[#138ba0]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#138ba0]";
|
||||
? "font-semibold text-[#0f7183]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#0f7183]";
|
||||
|
||||
return (
|
||||
<div className="group relative">
|
||||
|
|
@ -68,7 +68,7 @@ function GroupMenu({ item, lit, pathname }) {
|
|||
to={child.to}
|
||||
className={`block rounded-lg px-3 py-2 text-sm transition-colors hover:bg-[#eef9fb] ${
|
||||
matches(pathname, child.to)
|
||||
? "font-semibold text-[#138ba0]"
|
||||
? "font-semibold text-[#0f7183]"
|
||||
: "text-[#26454c]"
|
||||
}`}
|
||||
>
|
||||
|
|
@ -130,7 +130,7 @@ export default function AdminLayout() {
|
|||
|
||||
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 (
|
||||
<div className="flex min-h-screen flex-col bg-[#f6fbfc]">
|
||||
|
|
@ -172,7 +172,7 @@ export default function AdminLayout() {
|
|||
<button
|
||||
type="button"
|
||||
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
|
||||
</button>
|
||||
|
|
@ -190,8 +190,8 @@ export default function AdminLayout() {
|
|||
to={child.to}
|
||||
className={
|
||||
child === activeChild
|
||||
? "font-semibold text-[#138ba0]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#138ba0]"
|
||||
? "font-semibold text-[#0f7183]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#0f7183]"
|
||||
}
|
||||
>
|
||||
{child.label}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export default function AdminLogin() {
|
|||
return (
|
||||
<div className="flex min-h-screen items-center justify-center bg-[#eef9fb] px-6 py-16">
|
||||
<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]">
|
||||
Sign in to edit the site.
|
||||
</p>
|
||||
|
|
@ -162,7 +162,7 @@ export default function AdminLogin() {
|
|||
<button
|
||||
type="submit"
|
||||
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"}
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ function CopyPath({ url }: { url: string }) {
|
|||
setTimeout(() => setCopied(false), 1500);
|
||||
});
|
||||
}}
|
||||
className="text-xs text-[#138ba0] hover:underline"
|
||||
className="text-xs text-[#0f7183] hover:underline"
|
||||
>
|
||||
{copied ? "Copied" : "Copy path"}
|
||||
</button>
|
||||
|
|
@ -128,7 +128,7 @@ export default function AdminMedia() {
|
|||
return (
|
||||
<div>
|
||||
<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]">
|
||||
Uploaded images. Image fields in every editor pick from here.
|
||||
</p>
|
||||
|
|
@ -169,7 +169,7 @@ export default function AdminMedia() {
|
|||
href={item.url}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="text-xs text-[#138ba0] hover:underline"
|
||||
className="text-xs text-[#0f7183] hover:underline"
|
||||
>
|
||||
Open
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ function Block({ title, note, children }: any) {
|
|||
return (
|
||||
<section className="mt-8 first:mt-0">
|
||||
<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>}
|
||||
</div>
|
||||
<div className="mt-3">{children}</div>
|
||||
|
|
@ -156,7 +156,7 @@ export default function AdminPanel() {
|
|||
<button
|
||||
type="button"
|
||||
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
|
||||
</button>
|
||||
|
|
@ -171,7 +171,7 @@ export default function AdminPanel() {
|
|||
|
||||
return (
|
||||
<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]">
|
||||
Accounts and server state. Everything here is superadmin-only.
|
||||
</p>
|
||||
|
|
@ -281,7 +281,7 @@ export default function AdminPanel() {
|
|||
type="button"
|
||||
disabled={busy}
|
||||
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
|
||||
</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 ${
|
||||
row.is_active
|
||||
? "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"}
|
||||
|
|
|
|||
|
|
@ -356,13 +356,13 @@ export default function EntityEdit() {
|
|||
<button
|
||||
type="button"
|
||||
onClick={() => leave(`/admin/${manifest.key}`)}
|
||||
className="text-sm text-[#4a6b72] hover:text-[#138ba0]"
|
||||
className="text-sm text-[#4a6b72] hover:text-[#0f7183]"
|
||||
>
|
||||
← {manifest.label}
|
||||
</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}
|
||||
</h1>
|
||||
|
||||
|
|
@ -478,7 +478,7 @@ export default function EntityEdit() {
|
|||
type="button"
|
||||
onClick={save}
|
||||
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"}
|
||||
</button>
|
||||
|
|
@ -506,7 +506,7 @@ export default function EntityEdit() {
|
|||
<span
|
||||
role="status"
|
||||
className={`flex items-center gap-2 text-sm ${
|
||||
message.tone === "ok" ? "text-[#138ba0]" : "text-[#b3261e]"
|
||||
message.tone === "ok" ? "text-[#0f7183]" : "text-[#b3261e]"
|
||||
}`}
|
||||
>
|
||||
{message.text}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,9 @@ export default function EntityList() {
|
|||
// well as editors, which is the failure mode an == against a
|
||||
// ladder always produces once a rank is added above it.
|
||||
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 () => {
|
||||
if (!manifest || manifest.singleton) return;
|
||||
|
|
@ -89,11 +92,11 @@ export default function EntityList() {
|
|||
return (
|
||||
<div>
|
||||
<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 && (
|
||||
<Link
|
||||
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}
|
||||
</Link>
|
||||
|
|
@ -162,6 +165,8 @@ export default function EntityList() {
|
|||
</tr>
|
||||
</thead>
|
||||
<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) => (
|
||||
<tr
|
||||
key={row.id}
|
||||
|
|
@ -175,11 +180,23 @@ export default function EntityList() {
|
|||
column.primary ? "font-medium text-[#26454c]" : "text-[#4a6b72]"
|
||||
}`}
|
||||
>
|
||||
{column.widget === "bool"
|
||||
? row[column.key]
|
||||
? "Yes"
|
||||
: "-"
|
||||
: row[column.key] || "-"}
|
||||
{column.key === linkKey ? (
|
||||
<Link
|
||||
to={`/admin/${manifest.key}/${row.id}`}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
className="hover:underline"
|
||||
>
|
||||
{row[column.key] || row.id}
|
||||
</Link>
|
||||
) : column.widget === "bool" ? (
|
||||
row[column.key] ? (
|
||||
"Yes"
|
||||
) : (
|
||||
"-"
|
||||
)
|
||||
) : (
|
||||
row[column.key] || "-"
|
||||
)}
|
||||
</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 }) {
|
||||
return (
|
||||
<h3 className="text-2xl font-800" style={{ color: accent }}>
|
||||
<h3 className="text-2xl font-extrabold" style={{ color: accent }}>
|
||||
{children}
|
||||
</h3>
|
||||
)
|
||||
}
|
||||
|
||||
export default function CommunityBlog({ accent = '#138ba0' }: { accent?: string }) {
|
||||
export default function CommunityBlog({ accent = '#0f7183' }: { accent?: string }) {
|
||||
const { data: blog, loading, error, reload } = useCommunityBlog()
|
||||
|
||||
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". */
|
||||
const MAX_LANES = 3
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const INK = '#073d4a'
|
||||
const BODY = '#4a6b72'
|
||||
|
||||
|
|
@ -398,7 +398,7 @@ export default function EventCalendar({
|
|||
onChange={(e) => setQuery(e.target.value)}
|
||||
placeholder="Search events"
|
||||
aria-label="Search events"
|
||||
className="min-w-[12rem] flex-1 rounded-full border border-[#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 && (
|
||||
|
|
@ -781,7 +781,7 @@ function FilterSelect({
|
|||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
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>
|
||||
{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
|
||||
|
||||
/* Laid over a card's background image so black text reads on any
|
||||
|
|
@ -169,8 +170,8 @@ export function Card({
|
|||
const typeBadge =
|
||||
showType && ev.event_type ? (
|
||||
<span
|
||||
className="inline-block rounded-full px-3 py-0.5 mb-2 text-xs font-700 uppercase tracking-wide"
|
||||
style={{ border: `1px solid ${color}`, color }}
|
||||
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: INK }}
|
||||
>
|
||||
{eventTypeLabel(ev.event_type)}
|
||||
</span>
|
||||
|
|
@ -200,6 +201,9 @@ export function Card({
|
|||
filter: past ? "saturate(0.75)" : "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"}`}>
|
||||
{compact ? (
|
||||
|
|
@ -208,13 +212,13 @@ export function Card({
|
|||
<Logo src={orgLogo} className="ev-ngu h-11 w-auto mb-4" />
|
||||
<div className="ev-info">
|
||||
{typeBadge}
|
||||
<h3 className="text-3xl font-900 leading-tight">
|
||||
<h3 className="text-3xl font-extrabold leading-tight">
|
||||
<TitleLink ev={ev} linked={linked}>
|
||||
{ev.title}
|
||||
</TitleLink>
|
||||
</h3>
|
||||
{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>}
|
||||
{schedule && <p className="text-xl">{schedule}</p>}
|
||||
|
|
@ -224,7 +228,7 @@ export function Card({
|
|||
</div>
|
||||
<Logo
|
||||
src={eventLogo}
|
||||
alt={ev.title}
|
||||
alt=""
|
||||
className="ev-image w-full h-auto object-contain"
|
||||
/>
|
||||
<div className="ev-desc">{descriptions}</div>
|
||||
|
|
@ -236,13 +240,13 @@ export function Card({
|
|||
<div className="md:col-span-2">
|
||||
<Logo src={orgLogo} className="h-15 w-auto mb-6" />
|
||||
{typeBadge}
|
||||
<h3 className="text-4xl font-900">
|
||||
<h3 className="text-4xl font-extrabold">
|
||||
<TitleLink ev={ev} linked={linked}>
|
||||
{ev.title}
|
||||
</TitleLink>
|
||||
</h3>
|
||||
{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>}
|
||||
{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">
|
||||
<Logo
|
||||
src={eventLogo}
|
||||
alt={ev.title}
|
||||
alt=""
|
||||
className="w-full h-auto max-h-72 object-contain"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -274,7 +278,7 @@ export function Card({
|
|||
doesn't. */}
|
||||
<div className={`mt-auto ${compact ? "pt-6" : "pt-8"}`}>
|
||||
{links.length === 0 && (
|
||||
<p className="text-center font-600" style={{ color: accent }}>
|
||||
<p className="text-center font-semibold" style={{ color: accent }}>
|
||||
{past
|
||||
? "This event has concluded. Thank you to everyone who joined us!"
|
||||
: igHandle
|
||||
|
|
@ -295,10 +299,10 @@ export function Card({
|
|||
<a
|
||||
key={item.label}
|
||||
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"
|
||||
}`}
|
||||
style={{ border: `1px solid ${color}`, color }}
|
||||
style={{ border: `1px solid ${color}`, color: INK }}
|
||||
>
|
||||
<PlatformIcon platform={item.platform} />
|
||||
{item.label}
|
||||
|
|
@ -313,7 +317,7 @@ export function Card({
|
|||
href={igUrl}
|
||||
target="_blank"
|
||||
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"
|
||||
}`}
|
||||
style={{ border: `1px solid ${accent}`, color: accent }}
|
||||
|
|
@ -327,10 +331,10 @@ export function Card({
|
|||
{linked && (
|
||||
<Link
|
||||
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"
|
||||
}`}
|
||||
style={{ border: `1px solid ${color}`, color }}
|
||||
style={{ border: `1px solid ${color}`, color: INK }}
|
||||
>
|
||||
Event details
|
||||
</Link>
|
||||
|
|
@ -366,7 +370,7 @@ export function TypeFilter({ types, active, setActive, accent }) {
|
|||
key={id}
|
||||
onClick={() => setActive(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)}
|
||||
>
|
||||
{label}
|
||||
|
|
@ -405,7 +409,7 @@ export function EventCardsToggle({ view, setView, accent }) {
|
|||
<button
|
||||
onClick={() => setView("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")}
|
||||
>
|
||||
<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
|
||||
onClick={() => setView("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")}
|
||||
>
|
||||
<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 => (
|
||||
<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}
|
||||
</p>
|
||||
);
|
||||
|
|
@ -595,7 +599,7 @@ export default function EventListCards({
|
|||
{pastEvents.length > 0 && (
|
||||
<div className="mt-12">
|
||||
<h3
|
||||
className="text-2xl font-800 mb-6"
|
||||
className="text-2xl font-extrabold mb-6"
|
||||
style={{ color: accent, opacity: 0.85 }}
|
||||
>
|
||||
Past Events
|
||||
|
|
@ -635,7 +639,7 @@ export default function EventListCards({
|
|||
<button
|
||||
onClick={() => setShowPast(v => !v)}
|
||||
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 }}
|
||||
>
|
||||
{showPast
|
||||
|
|
@ -704,7 +708,7 @@ export default function EventListCards({
|
|||
onClick={prev}
|
||||
disabled={index === 0}
|
||||
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)}
|
||||
>
|
||||
‹
|
||||
|
|
@ -713,7 +717,7 @@ export default function EventListCards({
|
|||
onClick={next}
|
||||
disabled={index === events.length - 1}
|
||||
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)}
|
||||
>
|
||||
›
|
||||
|
|
@ -729,6 +733,7 @@ export default function EventListCards({
|
|||
key={e.id}
|
||||
onClick={() => setIndex(i)}
|
||||
aria-label={`Go to ${e.title}`}
|
||||
aria-current={i === index ? "true" : undefined}
|
||||
className="h-2.5 rounded-full transition-all duration-200"
|
||||
style={{
|
||||
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 { FEEDBACK_TYPES } from "../../data/feedbackTypes.ts";
|
||||
|
||||
const ACCENT = "#138ba0";
|
||||
const ACCENT = "#0f7183";
|
||||
const MUTED = "#4a6b72";
|
||||
const MAX_CHARS = 1500;
|
||||
const MIN_MESSAGE = 10; // matches the server
|
||||
|
|
@ -40,7 +40,7 @@ const selectClass = `${fieldClass} appearance-none pr-10`;
|
|||
|
||||
function OptionalTag() {
|
||||
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
|
||||
</span>
|
||||
);
|
||||
|
|
@ -132,7 +132,7 @@ function TypePicker({ value, onChange }) {
|
|||
className={
|
||||
"mt-0.5 h-4 w-4 shrink-0 rounded-full border-2 transition-colors " +
|
||||
(selected
|
||||
? "border-[#138ba0] bg-[#138ba0] ring-2 ring-inset ring-white"
|
||||
? "border-[#138ba0] bg-[#0f7183] ring-2 ring-inset ring-white"
|
||||
: "border-[#4a6b72]/30")
|
||||
}
|
||||
/>
|
||||
|
|
@ -306,7 +306,7 @@ export default function FeedbackForm() {
|
|||
<button
|
||||
type="button"
|
||||
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
|
||||
</button>
|
||||
|
|
@ -447,7 +447,7 @@ export default function FeedbackForm() {
|
|||
<button
|
||||
type="submit"
|
||||
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"}
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ function OrgMark({ org, color }) {
|
|||
|
||||
return (
|
||||
<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 }}
|
||||
aria-hidden="true"
|
||||
>
|
||||
|
|
@ -76,7 +76,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
|
|||
<OrgMark org={org} color={color} />
|
||||
|
||||
<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}
|
||||
</h3>
|
||||
{subtitle && (
|
||||
|
|
@ -115,7 +115,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
|
|||
href={org.website}
|
||||
target="_blank"
|
||||
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 }}
|
||||
>
|
||||
{siteLabel} ↗
|
||||
|
|
@ -125,7 +125,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
|
|||
{org.email && (
|
||||
<a
|
||||
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 }}
|
||||
>
|
||||
Contact
|
||||
|
|
@ -142,7 +142,7 @@ function Block({ title, orgs, accent, pageLabel, siteLabel }) {
|
|||
return (
|
||||
<section className="mb-12">
|
||||
{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}
|
||||
</h3>
|
||||
)}
|
||||
|
|
@ -195,7 +195,7 @@ export default function OrgListCards({
|
|||
|
||||
if (error && organizations.length === 0) {
|
||||
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 ·
|
||||
</p>
|
||||
);
|
||||
|
|
@ -203,7 +203,7 @@ export default function OrgListCards({
|
|||
|
||||
if (organizations.length === 0) {
|
||||
return shell(
|
||||
<p className="font-600" style={{ color: accent }}>
|
||||
<p className="font-semibold" style={{ color: accent }}>
|
||||
{empty}
|
||||
</p>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -67,13 +67,13 @@ function Blocks({ blocks = [] as any[], color }) {
|
|||
switch (block.type) {
|
||||
case "heading":
|
||||
return (
|
||||
<h4 key={i} className="text-lg font-800" style={{ color }}>
|
||||
<h4 key={i} className="text-lg font-extrabold">
|
||||
{block.text}
|
||||
</h4>
|
||||
);
|
||||
case "subheading":
|
||||
return (
|
||||
<h5 key={i} className="font-700">
|
||||
<h5 key={i} className="font-bold">
|
||||
{block.text}
|
||||
</h5>
|
||||
);
|
||||
|
|
@ -98,8 +98,8 @@ function Blocks({ blocks = [] as any[], color }) {
|
|||
href={item.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="font-700 underline"
|
||||
style={{ color }}
|
||||
className="font-bold underline"
|
||||
style={{ textDecorationColor: color }}
|
||||
>
|
||||
{item.text}
|
||||
</a>
|
||||
|
|
@ -288,11 +288,11 @@ function LegendButton({ region, selected, setSelected, hovered, setHovered }) {
|
|||
onFocus={() => setHovered(region.id)}
|
||||
onBlur={() => setHovered(null)}
|
||||
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={{
|
||||
border: `1px solid ${colorOf(region)}`,
|
||||
background: on ? colorOf(region) : "transparent",
|
||||
color: on ? "#ffffff" : colorOf(region),
|
||||
color: on ? "#ffffff" : INK,
|
||||
opacity: selected && selected !== region.id ? 0.45 : 1,
|
||||
}}
|
||||
>
|
||||
|
|
@ -339,7 +339,7 @@ function Legend({ domestic, international, onMapIds, ...props }: any) {
|
|||
{selected && (
|
||||
<button
|
||||
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 }}
|
||||
>
|
||||
Show all
|
||||
|
|
@ -369,26 +369,26 @@ function RegionBlock({
|
|||
className="transition-opacity duration-200"
|
||||
style={{ opacity: selected && !on ? 0.35 : 1, marginLeft: indent ? "0.75rem" : 0 }}
|
||||
>
|
||||
<button
|
||||
onClick={() => setSelected(on ? null : region.id)}
|
||||
onMouseEnter={() => setHovered(region.id)}
|
||||
onMouseLeave={() => setHovered(null)}
|
||||
className="w-full flex items-baseline gap-2 text-left py-2"
|
||||
>
|
||||
<span
|
||||
className="h-3 w-3 rounded-full shrink-0"
|
||||
style={{ background: colorOf(region) }}
|
||||
/>
|
||||
<h4
|
||||
className={`font-800 ${indent ? "text-lg" : "text-xl"}`}
|
||||
style={{ color: colorOf(region) }}
|
||||
{/* 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
|
||||
onClick={() => setSelected(on ? null : region.id)}
|
||||
onMouseEnter={() => setHovered(region.id)}
|
||||
onMouseLeave={() => setHovered(null)}
|
||||
aria-expanded={on}
|
||||
className="w-full flex items-baseline gap-2 text-left py-2"
|
||||
>
|
||||
<span
|
||||
className="h-3 w-3 rounded-full shrink-0"
|
||||
style={{ background: colorOf(region) }}
|
||||
/>
|
||||
{region.name}
|
||||
</h4>
|
||||
<span className="text-sm ml-auto" style={{ color: MUTED }}>
|
||||
{chapters.length || "-"}
|
||||
</span>
|
||||
</button>
|
||||
<span className="text-sm font-normal ml-auto" style={{ color: MUTED }}>
|
||||
{chapters.length || "-"}
|
||||
</span>
|
||||
</button>
|
||||
</h4>
|
||||
|
||||
{subtext && (
|
||||
<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)}` }}
|
||||
>
|
||||
<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 }}>
|
||||
{c.location_label}
|
||||
{c.meets ? ` · ${c.meets}` : ""}
|
||||
|
|
@ -422,7 +422,7 @@ function RegionBlock({
|
|||
href={c.website}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="font-700 underline"
|
||||
className="font-bold underline"
|
||||
style={{ color: colorOf(region) }}
|
||||
>
|
||||
Details
|
||||
|
|
@ -431,7 +431,7 @@ function RegionBlock({
|
|||
{c.email && (
|
||||
<a
|
||||
href={`mailto:${c.email}`}
|
||||
className="font-700 underline"
|
||||
className="font-bold underline"
|
||||
style={{ color: colorOf(region) }}
|
||||
>
|
||||
Contact
|
||||
|
|
@ -481,7 +481,7 @@ function OrgLogo({ org, color, size = "h-14 w-14" }) {
|
|||
|
||||
return (
|
||||
<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 }}
|
||||
aria-label={org.name}
|
||||
>
|
||||
|
|
@ -502,7 +502,7 @@ function ChapterCard({ chapter, color, open, onOpen }) {
|
|||
<OrgLogo org={chapter} color={color} />
|
||||
|
||||
<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 }}>
|
||||
{chapter.location_label}
|
||||
</p>
|
||||
|
|
@ -580,14 +580,14 @@ function ChapterDetail({ chapter, region, onClose }) {
|
|||
<OrgLogo org={chapter} color={colorOf(region)} size="h-20 w-20" />
|
||||
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={onClose}
|
||||
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) }}
|
||||
>
|
||||
×
|
||||
|
|
@ -603,7 +603,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
|||
<dt className="shrink-0" style={{ color: MUTED }}>
|
||||
{label}
|
||||
</dt>
|
||||
<dd className="font-700" style={{ color: INK }}>
|
||||
<dd className="font-bold" style={{ color: INK }}>
|
||||
{value}
|
||||
</dd>
|
||||
</div>
|
||||
|
|
@ -615,7 +615,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
|||
{orgPath(chapter) && (
|
||||
<Link
|
||||
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" }}
|
||||
>
|
||||
Chapter page
|
||||
|
|
@ -626,7 +626,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
|||
href={chapter.website}
|
||||
target="_blank"
|
||||
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) }}
|
||||
>
|
||||
Visit site
|
||||
|
|
@ -636,7 +636,7 @@ function ChapterDetail({ chapter, region, onClose }) {
|
|||
{chapter.email && (
|
||||
<a
|
||||
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) }}
|
||||
>
|
||||
Get in touch
|
||||
|
|
@ -666,7 +666,7 @@ function ChapterGrid({ regions, chapters, chaptersIn, subtextFor, openId, setOpe
|
|||
className="h-3 w-3 rounded-full shrink-0"
|
||||
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}
|
||||
</h3>
|
||||
<span className="text-sm" style={{ color: MUTED }}>
|
||||
|
|
@ -741,7 +741,7 @@ export function OrgMapToggle({ view, setView, accent }) {
|
|||
key={id}
|
||||
onClick={() => setView(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)}
|
||||
>
|
||||
{label}
|
||||
|
|
@ -834,7 +834,7 @@ export default function OrgListMap({ view = "map", accent = FALLBACK_COLOR }) {
|
|||
|
||||
if (error && regions.length === 0) {
|
||||
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 ·
|
||||
</p>
|
||||
);
|
||||
|
|
@ -904,13 +904,13 @@ export default function OrgListMap({ view = "map", accent = FALLBACK_COLOR }) {
|
|||
ref={listRef}
|
||||
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}
|
||||
</h3>
|
||||
{domestic.map(r => block(r, true))}
|
||||
|
||||
<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}` }}
|
||||
>
|
||||
{INTL_TITLE}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ const FALLBACK_COLOR = "#4a6b72";
|
|||
function RowButton({ as: As = "button", color, children, ...rest }: any) {
|
||||
return (
|
||||
<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 }}
|
||||
{...rest}
|
||||
>
|
||||
|
|
@ -86,7 +86,7 @@ function OrgMark({ org, color }) {
|
|||
|
||||
return (
|
||||
<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 }}
|
||||
aria-hidden="true"
|
||||
>
|
||||
|
|
@ -143,7 +143,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
|
|||
<OrgMark org={org} color={color} />
|
||||
|
||||
<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}
|
||||
</span>
|
||||
{summary && (
|
||||
|
|
@ -207,7 +207,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
|
|||
|
||||
{areas && (
|
||||
<p className="text-sm" style={{ color: MUTED }}>
|
||||
<span className="font-700">Covers</span> {areas}
|
||||
<span className="font-bold">Covers</span> {areas}
|
||||
</p>
|
||||
)}
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ function Block({ title, orgs, pageLabel, siteLabel }) {
|
|||
return (
|
||||
<section className="mb-10">
|
||||
{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}
|
||||
</h3>
|
||||
)}
|
||||
|
|
@ -290,7 +290,7 @@ export default function OrgListVertical({
|
|||
|
||||
if (error && organizations.length === 0) {
|
||||
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 ·
|
||||
</p>
|
||||
);
|
||||
|
|
@ -298,7 +298,7 @@ export default function OrgListVertical({
|
|||
|
||||
if (organizations.length === 0) {
|
||||
return shell(
|
||||
<p className="font-600" style={{ color: accent }}>
|
||||
<p className="font-semibold" style={{ color: accent }}>
|
||||
{empty}
|
||||
</p>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import { awardHref, blogHref, eventHref, orgHref, personHref, teamHref } from '.
|
|||
import { siteUrl } from '../../lib/site.ts'
|
||||
import { useDirectory, type Directory } from '../../lib/useContent.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const MUTED = '#4a6b72'
|
||||
|
||||
/* PNG download size in pixels. Plenty for print at a few inches;
|
||||
|
|
@ -479,7 +479,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
|
|||
<button
|
||||
type="button"
|
||||
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}
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
--tl-faint: #8aa7ad;
|
||||
--tl-rail: #cfe4e8;
|
||||
--tl-surface: #ffffff;
|
||||
--tl-accent: #138ba0;
|
||||
--tl-accent: #0f7183;
|
||||
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
|
||||
|
||||
--tl-gutter: 5rem;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import { useHistory } from '../../../lib/useHistory.ts'
|
|||
import { hrefFor, logoSrc } from '../../../lib/timelineRefs.ts'
|
||||
import { MONTH_LABELS, type TimelineItem } from '../../../lib/timeline.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
const DRAG_SLOP = 6
|
||||
|
||||
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
|
||||
it's usually Register. */
|
||||
function EventPanel({ event }: { event: HeroEvent }) {
|
||||
const color = event.color || '#138ba0'
|
||||
const color = event.color || '#0f7183'
|
||||
const photo = eventBackground(event.card_image)
|
||||
const when = seriesLabel(event.series, event.starts_on) ?? event.date_label
|
||||
const where = event.is_online && !event.location_label ? 'Online' : event.location_label
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import { eventHref } from '../../../lib/hrefs.ts'
|
|||
import { upcomingOccurrences } from '../../../lib/eventSeries.ts'
|
||||
import type { CountdownEvent } from '../../../lib/useFrontPage.ts'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
|
||||
/* Local midnight (or HH:MM) on a 'YYYY-MM-DD'. */
|
||||
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
|
||||
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) {
|
||||
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="grid gap-12 lg:grid-cols-12">
|
||||
<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…
|
||||
</p>
|
||||
<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'
|
||||
|
||||
const TEAL = '#138ba0'
|
||||
const TEAL = '#0f7183'
|
||||
|
||||
type RetreatsBandProps = { id: string; title: string; blurb?: string | null }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue