Skip to content

Commit f6af53e

Browse files
committed
implement requested changes
1 parent dd0786d commit f6af53e

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

src/components/CardCover.astro

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
---
2-
/*
3-
* SCAFFOLD: minimal cover for the project tile — plain <img> with object-cover
4-
* (crops). The "robust cover image handling" ticket replaces the internals with
5-
* a blurred-backdrop fill + astro:assets <Image>. This component is owned by
6-
* that ticket; keep the 16:9 tile shape (matches a typical desktop screenshot).
7-
*/
82
import type { ImageMetadata } from 'astro';
93
import { Image } from 'astro:assets';
104
@@ -22,11 +16,12 @@ const { cover, title } = Astro.props;
2216
<div class="h-full w-full">
2317
<Image
2418
src={cover}
25-
alt={`Cover image for ${title}`}
19+
alt=""
20+
aria-hidden="true"
2621
width={cover.width}
2722
height={cover.height}
2823
loading="lazy"
29-
class="h-full w-full object-cover blur-sm"
24+
class="h-full w-full scale-125 object-cover blur-sm"
3025
/>
3126
<Image
3227
src={cover}
@@ -38,10 +33,11 @@ const { cover, title } = Astro.props;
3833
/>
3934
</div>
4035
) : (
41-
<div class="bg-accent flex h-full w-full items-center justify-center p-3">
42-
<p class="text-accent-contrast text-center text-3xl font-bold">
43-
{title}
44-
</p>
36+
<div
37+
aria-hidden="true"
38+
class="bg-canvas flex h-full w-full items-center justify-center p-3"
39+
>
40+
<p class="text-ink text-center text-3xl font-bold">{title}</p>
4541
</div>
4642
)
4743
}

0 commit comments

Comments
 (0)