parent
9a84cf7fc2
commit
b4702278d2
13 changed files with 719 additions and 677 deletions
src/components
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue