Accessibility: reader view and full palette swaps; version v1.12.1-accessibility

- Reading mode is now a reader view (ReaderView.tsx): the page renders
  hidden and its headings, paragraphs, links and described pictures
  are written out in one column, with no header, backdrop or footer.
- Color blind modes swap all three color families (teal, green,
  amber); palette hexes in components and CSS are now
  var(--pal-<family>-<shade>) so the modes reach them.
- CLAUDE.md and docs/updating-data-in-code.md describe both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-03 16:10:57 -05:00
parent 420a8058b4
commit de17da7dc8
19 changed files with 507 additions and 192 deletions

View file

@ -24,7 +24,7 @@ const PAGE = sitePage("/privacy");
'privacy', in Admin → Forms → Data requests.
═══════════════════════════════════════════════════════════════ */
const LAST_UPDATED = "September 30, 2026";
const LAST_UPDATED = "October 3, 2026";
const link = "underline underline-offset-2 text-link";
@ -137,11 +137,28 @@ const PARTS: LegalPart[] = [
id: "cookies",
heading: "Cookies and browser storage",
body: [
"This site doesn't use advertising or tracking cookies, and doesn't use Google Analytics. To see which pages are read, we use Plausible Analytics, which we host ourselves on our own server: it sets no cookies, doesn't follow you across sites, and keeps no personal information, only counts of visits to each page; nothing from it is shared or sold. The site also keeps a few small things in your own browser so it works the way you left it:",
<>
This site doesn't use advertising or tracking cookies, and doesn't use Google Analytics. To see which
pages are read, we use{" "}
<a href="https://plausible.io" className="text-link underline underline-offset-2">
Plausible Analytics
</a>
, which we host ourselves on our own server using its free, open-source{" "}
<a
href="https://github.com/plausible/community-edition/"
className="text-link underline underline-offset-2"
>
Community Edition
</a>
: it sets no cookies, doesn't follow you across sites, and keeps no personal information, only counts
of visits to each page; nothing from it is shared or sold. The site also keeps a few small things in
your own browser so it works the way you left it:
</>,
],
list: [
"That you closed the announcement banner or the privacy notice.",
"Whether you chose the light or dark look.",
"Your accessibility choices: the dyslexia-friendly font, reading mode and color blind mode.",
"For staff who sign in: a sign-in cookie that keeps you signed in, and a short-lived one used while signing in with Google.",
],
after: [

View file

@ -134,12 +134,12 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
</p>
) : feature === 'event' ? (
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Star className="text-[#f0bd4f]" weight="fill" aria-hidden="true" />
<Star className="text-[var(--pal-amber-2)]" weight="fill" aria-hidden="true" />
Featured event
</p>
) : feature === 'video' ? (
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Play className="text-[#f0bd4f]" weight="fill" aria-hidden="true" />
<Play className="text-[var(--pal-amber-2)]" weight="fill" aria-hidden="true" />
Featured video
{hero.video?.title && (
<span className="normal-case tracking-normal text-white/75">
@ -149,7 +149,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
</p>
) : (
hero.eyebrow && (
<p className="mb-6 inline-block border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[#f0bd4f]">
<p className="mb-6 inline-block border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[var(--pal-amber-2)]">
{hero.eyebrow}
</p>
)
@ -194,7 +194,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
labels side by side don't fit; the slash starts at sm (home.css,
.hp-split). One set: that one alone, in its own style. */
const PRIMARY_FILL = '#f0bd4f'
const PRIMARY_FILL = 'var(--pal-amber-2)'
const PRIMARY_TEXT = '#001011'
const HALF = 'relative flex items-center justify-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]'
@ -244,7 +244,7 @@ function HeroActions({ primary, secondary }: { primary: HeroLink; secondary: Her
/* ── Brand backdrop ──────────────────────────────────────────── */
const BRAND_FILL = '#003a45'
const BRAND_FILL = 'var(--pal-teal-1)'
function BrandBackdrop() {
return (
@ -489,7 +489,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
{event.title}
</Link>
</h2>
{event.theme && <p className="mt-1 text-lg font-semibold text-[#f0bd4f]">"{event.theme}"</p>}
{event.theme && <p className="mt-1 text-lg font-semibold text-[var(--pal-amber-2)]">"{event.theme}"</p>}
</div>
{(when || where) && (
@ -505,7 +505,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
className={`inline-flex items-center gap-2 btn px-6 py-3 transition-transform hover:scale-105 ${
index === 0 ? 'text-[#001011]' : 'border border-white/35 text-white hover:bg-white/10'
}`}
style={index === 0 ? { background: '#f0bd4f' } : undefined}
style={index === 0 ? { background: 'var(--pal-amber-2)' } : undefined}
>
<PlatformIcon platform={link.platform} />
{link.label}

View file

@ -48,7 +48,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
id={id}
ref={ref}
className="relative overflow-hidden py-24"
style={{ background: '#003a45' }}
style={{ background: 'var(--pal-teal-1)' }}
>
<div className="relative mx-auto max-w-6xl px-6">
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
@ -65,7 +65,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
>
<dd className="font-display text-4xl font-extrabold leading-none text-white sm:text-5xl md:text-6xl">
<CountUp value={stat.value} run={seen} />
{stat.suffix && <span className="text-[#f0bd4f]">{stat.suffix}</span>}
{stat.suffix && <span className="text-[var(--pal-amber-2)]">{stat.suffix}</span>}
</dd>
<dt className="mt-3 text-sm font-semibold uppercase tracking-widest text-white/70">
{stat.label}