Accessibility changes + new TAs + Video references for Cern

This commit is contained in:
Firq 2024-01-01 17:53:19 +01:00
parent 9a84cf7fc2
commit b4702278d2
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
13 changed files with 719 additions and 677 deletions
src/components

View file

@ -9,6 +9,7 @@ export interface Props {
}
const { imageFile, link, title } = Astro.props
const logoAltText = `${title} Logo`
const imagePath = `/src/assets/technologies/${imageFile}`
const images_logos = import.meta.glob<{ default: ImageMetadata }>(
'/src/assets/technologies/*.{png,webp}'
@ -17,11 +18,12 @@ const images_logos = import.meta.glob<{ default: ImageMetadata }>(
<a href={link} target="_blank" rel="noopener noreferrer" aria-label={title}>
<article>
<Image src={images_logos[imagePath]()} alt="" />
<Image src={images_logos[imagePath]()} alt={logoAltText} />
<div>
<h2>{title}</h2>
</div>
</article>
<span class="visually-hidden">{logoAltText}</span>
</a>
<style>