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
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
title: "Local Chapters",
|
||||
blurb: "Optional line under the section heading.",
|
||||
accent: "#138ba0", // heading, banner, rule
|
||||
accent: "#0f7183", // heading, banner, rule
|
||||
background: "#eef9fb",
|
||||
actions: <SomeButton />, // optional, right of the heading
|
||||
content: <YourStuff />,
|
||||
|
|
@ -33,7 +33,7 @@ import { useEffect, type ReactNode } from "react";
|
|||
|
||||
import { documentTitle } from "../lib/site.ts";
|
||||
|
||||
const TEAL = "#138ba0";
|
||||
const TEAL = "#0f7183";
|
||||
|
||||
export type ShellSection = {
|
||||
id: string;
|
||||
|
|
@ -75,7 +75,7 @@ export function Section({ section }: { section: ShellSection }) {
|
|||
<div className="max-w-6xl mx-auto px-6 mb-10">
|
||||
<div className="flex flex-wrap items-end justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-4xl md:text-5xl font-800" style={{ color: accent }}>
|
||||
<h2 className="text-4xl md:text-5xl font-extrabold" style={{ color: accent }}>
|
||||
{title}
|
||||
</h2>
|
||||
{blurb && <p className="mt-2 text-[#4a6b72] max-w-xl">{blurb}</p>}
|
||||
|
|
@ -103,7 +103,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
|
|||
{/* Page header */}
|
||||
<div className="pt-24 pb-12 px-6" style={{ background: "#eef9fb" }}>
|
||||
<div className="max-w-6xl mx-auto">
|
||||
<h1 className="text-5xl md:text-6xl font-800" style={{ color: TEAL }}>
|
||||
<h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: TEAL }}>
|
||||
{title}
|
||||
</h1>
|
||||
{intro && <p className="mt-3 text-lg text-[#4a6b72] max-w-2xl">{intro}</p>}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue