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
|
|
@ -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