aspect ratio 1/1 double img

This commit is contained in:
ebby 2026-09-19 15:38:27 +02:00
parent 6814e8f272
commit 13f1146713

View file

@ -5,19 +5,15 @@ const { src1, src2, alt1, alt2, description } = Astro.props;
--- ---
<div class="container"> <div class="container">
<Image <img
src=`/blog_img/${src1}` src=`/blog_img/${src1}`
alt={alt1} alt={alt1}
width={1200}
height={800}
class="rounded blog-image img-width" class="rounded blog-image img-width"
loading="lazy" loading="lazy"
/> />
<Image <img
src=`/blog_img/${src2}` src=`/blog_img/${src2}`
alt={alt2} alt={alt2}
width={1200}
height={800}
class="rounded blog-image img-width" class="rounded blog-image img-width"
loading="lazy" loading="lazy"
/> />
@ -33,6 +29,7 @@ const { src1, src2, alt1, alt2, description } = Astro.props;
.img-width { .img-width {
width: 49%; width: 49%;
aspect-ratio: 1/1;
} }
p { p {