Skip to content

Commit 3b550a6

Browse files
committed
Update updates section.
1 parent 82d1649 commit 3b550a6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ export default defineConfig({
7676
minify: true,
7777
},
7878
image: {
79+
experimentalLayout: "responsive",
7980
remotePatterns: [{ protocol: "https" }],
8081
domains: ["programme.europython.eu", "placehold.co"],
8182
service: {
8283
entrypoint: "src/image.service.ts",
8384
},
8485
},
8586
experimental: {
87+
responsiveImages: true,
8688
svg: true,
8789
},
8890
});

src/components/card/card.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import type { ImageMetadata } from "astro";
3-
import { Image } from "astro:assets";
43
import Button from "@ui/Button.astro";
54
65
export interface Props {
@@ -18,8 +17,8 @@ const { title, subtitle, url, image } = Astro.props;
1817
>
1918
<a href={url} class="block">
2019
<div class="relative w-full">
21-
<Image
22-
src={image}
20+
<img
21+
src={image.src}
2322
width={600}
2423
height={375}
2524
alt=`Card image - ${title}`

0 commit comments

Comments
 (0)