From 1692a048ebfc25ad46bc709897c0dad18b44b7e9 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Tue, 5 Mar 2024 11:50:28 +0100 Subject: [PATCH] fix(a11y): add missing h1s fix #163 --- report/www/pages/category/[category].tsx | 19 ++++++++++++++----- report/www/pages/index.tsx | 1 + report/www/pages/startup/[...id].tsx | 1 + report/www/pages/tag/[tag].tsx | 1 + 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/report/www/pages/category/[category].tsx b/report/www/pages/category/[category].tsx index d2216fb6..44614d01 100644 --- a/report/www/pages/category/[category].tsx +++ b/report/www/pages/category/[category].tsx @@ -3,15 +3,24 @@ import Head from "next/head"; import uniq from "lodash.uniq"; import { Dashboard } from "../../src/components/Dashboard"; -import report from '@/report.json'; -import dashlordConfig from '@/config.json'; +import report from "@/report.json"; +import dashlordConfig from "@/config.json"; -const Tag = ({ report, tag }: { report: DashLordReport; tag: string }) => { +const Category = ({ + report, + category, +}: { + report: DashLordReport; + category: string; +}) => { return ( <> - Catégorie {tag} - {dashlordConfig.title} + + Catégorie {category} - {dashlordConfig.title} + +

Tableau de bord : {category}

); @@ -34,4 +43,4 @@ export const getStaticPaths: GetStaticPaths = async () => ({ fallback: false, }); -export default Tag; +export default Category; diff --git a/report/www/pages/index.tsx b/report/www/pages/index.tsx index 71ee9a97..b288f46e 100644 --- a/report/www/pages/index.tsx +++ b/report/www/pages/index.tsx @@ -11,6 +11,7 @@ const Home: NextPage = () => { {dashlordConfig.title} +

Tableau de bord

); diff --git a/report/www/pages/startup/[...id].tsx b/report/www/pages/startup/[...id].tsx index cabae426..014765a9 100644 --- a/report/www/pages/startup/[...id].tsx +++ b/report/www/pages/startup/[...id].tsx @@ -23,6 +23,7 @@ const PageStartup = ({ report, id }: { report: UrlReport[]; id: string }) => { {id} - {dashlordConfig.title} +

Tableau de bord : {id}

); diff --git a/report/www/pages/tag/[tag].tsx b/report/www/pages/tag/[tag].tsx index ef3cc1e1..1d2bd927 100644 --- a/report/www/pages/tag/[tag].tsx +++ b/report/www/pages/tag/[tag].tsx @@ -14,6 +14,7 @@ const Tag = ({ report, tag }: { report: DashLordReport; tag: string }) => { Tag {tag} - {dashlordConfig.title} +

Tableau de bord : {tag}

);