From 86e3876dfe6aceb5599e719973372ca9123cf90a Mon Sep 17 00:00:00 2001 From: FranGuh Date: Sun, 14 Jun 2026 14:00:31 -0600 Subject: [PATCH 1/6] feat: per-page h1 architecture, /compare sitemap, .js util rename - seo: add /compare route to sitemap.xml - chore: rename convertToSpecs/matchLaptopClass .jsx -> .js (pure JS modules) - a11y/seo: demote global brand h1 to a home link so each page owns a descriptive h1 (Landing hero, Compare, NotFound, quiz + results views); add .sr-only utility and section heading for Landing features --- public/sitemap.xml | 5 +++++ src/App.css | 7 ++++++- src/App.jsx | 6 ++++-- src/components/Recommendation/Recommendation.jsx | 3 +++ src/index.css | 13 +++++++++++++ src/pages/Compare/Compare.css | 2 +- src/pages/Compare/Compare.jsx | 4 ++-- src/pages/Landing/Landing.jsx | 7 ++++--- src/pages/NotFound/NotFound.jsx | 2 +- src/utils/{convertToSpecs.jsx => convertToSpecs.js} | 0 .../{matchLaptopClass.jsx => matchLaptopClass.js} | 0 11 files changed, 39 insertions(+), 10 deletions(-) rename src/utils/{convertToSpecs.jsx => convertToSpecs.js} (100%) rename src/utils/{matchLaptopClass.jsx => matchLaptopClass.js} (100%) diff --git a/public/sitemap.xml b/public/sitemap.xml index 51d2f37..5c86ef8 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -10,4 +10,9 @@ monthly 0.9 + + https://computerselectorhelper.vercel.app/compare + monthly + 0.9 + diff --git a/src/App.css b/src/App.css index bce9645..d834ecf 100644 --- a/src/App.css +++ b/src/App.css @@ -48,10 +48,15 @@ body { width: 100%; } -.AppHeader__brand h1 { +.AppHeader__brand a.AppHeader__brandLink { + display: inline-block; margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); + font-weight: 700; + line-height: 1.2; text-align: center; + color: var(--color-text); + text-decoration: none; } .AppNav { diff --git a/src/App.jsx b/src/App.jsx index 4a2dbd7..df33f1e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,5 @@ import './App.css' -import { BrowserRouter, NavLink } from 'react-router-dom' +import { BrowserRouter, NavLink, Link } from 'react-router-dom' import { HelmetProvider } from 'react-helmet-async' import AppRoutes from './routes/AppRoutes' import { Analytics } from "@vercel/analytics/react" @@ -11,7 +11,9 @@ function App() {
-

Computer Selector Helper

+ + Computer Selector Helper +