From 8647197a05490e2c10106a021cf6760bdabb5b2a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 11 Feb 2022 17:56:27 +0100 Subject: chore: improve accessibility --- src/pages/article/[slug].tsx | 16 ++++++++++++++-- src/pages/cv.tsx | 16 ++++++++++++++-- src/pages/projet/[slug].tsx | 18 ++++++++++++++++-- src/pages/sujet/[slug].tsx | 16 ++++++++++++++-- src/pages/thematique/[slug].tsx | 16 ++++++++++++++-- 5 files changed, 72 insertions(+), 10 deletions(-) (limited to 'src/pages') diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index faf2271..689f123 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -175,7 +175,13 @@ const SingleArticle: NextPageWithLayout = ({ post }) => { data-prismjs-color-scheme-light={lightTheme} > - +
= ({ post }) => { dangerouslySetInnerHTML={{ __html: content }} >
- +
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx index 311d0ce..e77c586 100644 --- a/src/pages/cv.tsx +++ b/src/pages/cv.tsx @@ -110,13 +110,25 @@ const CV: NextPageWithLayout = () => { className={`${styles.article} ${styles['article--no-comments']}`} > - +
- + = ({ @@ -29,6 +30,7 @@ const Project: NextPageWithLayout = ({ }: { project: ProjectData; }) => { + const intl = useIntl(); const router = useRouter(); const projectUrl = `${settings.url}${router.asPath}`; const { id, intro, meta, title, seo } = project; @@ -107,14 +109,26 @@ const Project: NextPageWithLayout = ({ className={`${styles.article} ${styles['article--no-comments']}`} > - +
- + diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx index ca7d7cd..910c02c 100644 --- a/src/pages/sujet/[slug].tsx +++ b/src/pages/sujet/[slug].tsx @@ -126,7 +126,13 @@ const Topic: NextPageWithLayout = ({ topic }) => { meta={meta} title={topic.title} /> - +
@@ -146,7 +152,13 @@ const Topic: NextPageWithLayout = ({ topic }) => {
)} - + = ({ thematic }) => { className={`${styles.article} ${styles['article--no-comments']}`} > - +
@@ -136,7 +142,13 @@ const Thematic: NextPageWithLayout = ({ thematic }) => { )}
- +