From 3c1e0b659cdf2411eebab1856a632972c94a77cf Mon Sep 17 00:00:00 2001 From: jwinterm Date: Sat, 17 Jan 2026 11:15:51 -0500 Subject: [PATCH] Achieve 100% Lighthouse accessibility and SEO on all pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix color contrast: emerald-600 → emerald-700 for WCAG AA compliance - Fix heading hierarchy across all pages (h1 → h2 → h3 → h4) - Lazy load NebulaField with next/dynamic and requestIdleCallback - Remove debug console.log statements - Add .env.example for Turnstile configuration - Update documentation with audit results --- README.md | 71 +++---- TODO.md | 84 ++++---- TODO_ACCESS.md | 183 ++++++++---------- apps/web/.env.example | 7 + apps/web/src/app/about/page.tsx | 10 +- apps/web/src/app/page.tsx | 6 +- .../components/about/founder-signature.tsx | 16 +- .../components/landing/dynamic-background.tsx | 39 +++- .../components/landing/services-preview.tsx | 2 +- apps/web/src/components/theme-toggle.tsx | 7 +- 10 files changed, 200 insertions(+), 225 deletions(-) create mode 100644 apps/web/.env.example diff --git a/README.md b/README.md index f94db20..8393370 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,16 @@ Corporate website for Such Software LLC, a full-service software provider based in Kennett Square, PA. +## Lighthouse Scores (Production Build) + +| Page | Performance | Accessibility | SEO | Best Practices | +|------|-------------|---------------|-----|----------------| +| Home | 99% | **100%** | **100%** | 77%* | +| Services | 98% | **100%** | **100%** | **100%** | +| About | 99% | **100%** | **100%** | **100%** | + +*Home page Best Practices is 77% due to Cloudflare Turnstile third-party cookies for bot protection. + ## Tech Stack ### Core Framework @@ -92,60 +102,31 @@ The dev server runs at `http://localhost:3000`. ## Accessibility & Quality -### Current Status -See [TODO_ACCESS.md](TODO_ACCESS.md) for detailed audit results. +### WCAG 2.2 AA Compliance -### Lighthouse Scores (Dev Server) -| Category | Score | -|----------|-------| -| Performance | 51 | -| Accessibility | 95 | -| SEO | 91 | -| Best Practices | 73 | +This site achieves **100% Lighthouse Accessibility** on all pages through: -**Note:** Production builds typically score higher. - -### Testing Tools - -#### Current -- **Lighthouse** - Performance, accessibility, SEO, best practices - ```bash - npx lighthouse http://localhost:3000 --view - ``` - -#### Planned -- **Playwright + axe-core** - Automated accessibility testing - ```bash - pnpm add -D @playwright/test @axe-core/playwright - npx playwright install - ``` - -### Accessibility Features - Skip-to-main-content link -- Semantic HTML5 structure (`
`, `