aspect ratio 1/1 double img
This commit is contained in:
parent
6814e8f272
commit
13f1146713
1 changed files with 3 additions and 6 deletions
|
|
@ -5,19 +5,15 @@ const { src1, src2, alt1, alt2, description } = Astro.props;
|
|||
---
|
||||
|
||||
<div class="container">
|
||||
<Image
|
||||
<img
|
||||
src=`/blog_img/${src1}`
|
||||
alt={alt1}
|
||||
width={1200}
|
||||
height={800}
|
||||
class="rounded blog-image img-width"
|
||||
loading="lazy"
|
||||
/>
|
||||
<Image
|
||||
<img
|
||||
src=`/blog_img/${src2}`
|
||||
alt={alt2}
|
||||
width={1200}
|
||||
height={800}
|
||||
class="rounded blog-image img-width"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
|
@ -33,6 +29,7 @@ const { src1, src2, alt1, alt2, description } = Astro.props;
|
|||
|
||||
.img-width {
|
||||
width: 49%;
|
||||
aspect-ratio: 1/1;
|
||||
}
|
||||
|
||||
p {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue