Skip to content

Commit b3bfc95

Browse files
committed
feat: improve aspect ratio of bento grids
1 parent cbd2086 commit b3bfc95

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/src/layouts/partials/FeatureBento.astro

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const { title, viewAllHref, viewAllText, list } = Astro.props;
7474
<ImageMod
7575
src={list.firstServiceRow.landscapeColumn.image}
7676
alt={list.firstServiceRow.landscapeColumn.title}
77-
class="aspect-[700/330] object-cover object-left-top rounded-t-md w-full"
77+
class="aspect-[3/2] object-cover object-left-top rounded-t-md w-full"
7878
/>
7979
</div>
8080
</div>
@@ -96,11 +96,9 @@ const { title, viewAllHref, viewAllText, list } = Astro.props;
9696
)}
9797
<div class="p-6 sm:p-8">
9898
<ImageMod
99-
width={700}
100-
height={600}
10199
src={list.firstServiceRow.squareColumn.image}
102100
alt={list.firstServiceRow.squareColumn.title}
103-
class="w-full rounded-md"
101+
class="aspect-[4/5] object-cover object-top w-full rounded-md"
104102
/>
105103
</div>
106104
<div class="p-6 sm:p-8">
@@ -140,11 +138,9 @@ const { title, viewAllHref, viewAllText, list } = Astro.props;
140138
<p>{list.secondServiceRow.squareColumn.subtitle}</p>
141139
</div>
142140
<ImageMod
143-
width={700}
144-
height={600}
145141
src={list.secondServiceRow.squareColumn.image}
146142
alt={list.secondServiceRow.squareColumn.title}
147-
class="w-full"
143+
class="aspect-[4/5] object-cover object-top w-full"
148144
/>
149145
</div>
150146
<div
@@ -171,11 +167,9 @@ const { title, viewAllHref, viewAllText, list } = Astro.props;
171167
</div>
172168
<div class="pl-6 sm:pl-11">
173169
<ImageMod
174-
width={700}
175-
height={330}
176170
src={list.secondServiceRow.landscapeColumn.image}
177171
alt={list.secondServiceRow.landscapeColumn.title}
178-
class="aspect-[700/330] object-cover object-left-top rounded-md w-full rounded-t-md"
172+
class="aspect-[3/2] object-cover object-left-top rounded-t-md w-full"
179173
/>
180174
</div>
181175
</div>

0 commit comments

Comments
 (0)