From 872f17b5f6a5d7a7e34d479bb72fe564e862b598 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Mon, 3 Feb 2025 17:13:00 +0100 Subject: [PATCH] feat(a11y): improve accessibility --- src/components/JournalList.astro | 1 + src/components/ProjectContent.astro | 1 + src/components/ProjectImage.astro | 1 + src/components/RSSLink.astro | 2 +- src/components/SocialLinks.astro | 2 +- src/layouts/AboutLayout.astro | 6 +++++- src/pages/index.astro | 8 +++++++- src/pages/journal.astro | 2 +- 8 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/JournalList.astro b/src/components/JournalList.astro index 395fcdd..68f1699 100644 --- a/src/components/JournalList.astro +++ b/src/components/JournalList.astro @@ -32,6 +32,7 @@ const { entries } = Astro.props; alt={data.title} formats={['avif', 'webp']} height="937" + role="presentation" src={data.cover} width="1500" /> diff --git a/src/components/ProjectContent.astro b/src/components/ProjectContent.astro index ffde45f..a5c610d 100644 --- a/src/components/ProjectContent.astro +++ b/src/components/ProjectContent.astro @@ -14,6 +14,7 @@ const { project } = Astro.props; --- {project.data.categories.join(' / ')} diff --git a/src/components/ProjectImage.astro b/src/components/ProjectImage.astro index 8a227de..c833f2e 100644 --- a/src/components/ProjectImage.astro +++ b/src/components/ProjectImage.astro @@ -19,6 +19,7 @@ const { project } = Astro.props; ) : ( {project.data.title} +