SEO and Accessibility
SEO
- Metadata: every page exports
title,description, andalternates.canonical. The root layout setsmetadataBasefromsiteConfig.url, the title template%s · Fort Adams Trust, Open Graph defaults, andtwitter.card: summary_large_image. - OG image: currently
/images/og-default.svg(placeholder). Many social platforms don't render SVG OG images. Add a real 1200×630 JPG/PNG and updatelayout.tsx. - Sitemap:
src/app/sitemap.tslists routes explicitly. Events getchangeFrequency: weekly, others monthly; home has priority 1. Add new routes by hand. - Robots:
src/app/robots.tsallows everything except/admin, and links the sitemap. - Redirects:
public/_redirects. Map every indexed WordPress URL before launch to keep search rankings. - Headings: one
h1per page, with sections labelled byaria-labelledbyheadings.
Accessibility (target: WCAG 2.1 AA)
Implemented patterns to keep when adding features:
| Area | Pattern |
|---|---|
| Landmarks | A skip link to #main-content (first focusable element), plus header/main/footer; the alert banner is role="region" with a label |
| Focus | Global brass :focus-visible outline; focus moves to confirmation messages after form success; Escape closes the mobile menu |
| Targets | Buttons and inputs at least 44px (min-h-11) |
| Images | Meaningful alt on all content images; alt="" for decorative; sponsor logos use "<Name> logo" |
| Forms | Visible labels bound with useId, required markers, role="alert" errors, role="status" success |
| Widgets | ARIA on the accordion, sticky tabs, filter pill groups (role="group" + aria-label), menu, and carousel dots |
| Media | Explore videos support WebVTT captions (captionsPath) and transcripts. Add captions for all six videos. |
| Motion | Smooth scroll only when prefers-reduced-motion: no-preference |
| Contrast | Gradient scrims behind text on photos; brass-on-navy and navy-on-sand palettes |
| Embeds | Titled iframes (Google Map, DAF widget) |
When adding UI, check it with keyboard only, with a screen reader (VoiceOver or NVDA), and with Lighthouse/axe.
No comments to display
No comments to display