feat: improve layout for single and two images

This commit is contained in:
2026-03-06 22:31:33 -06:00
parent 5877086cc3
commit e6d4e34a0a
4 changed files with 51 additions and 41 deletions

View File

@@ -11,7 +11,7 @@ interface Props {
const { posts } = Astro.props;
---
<section class="smooth-reveal flex flex-col gap-4">
<section class="smooth-reveal flex flex-col gap-4 md:mb-20">
{posts.map((post, index) => index % 2 === 0 ? (
<LargeBlogLeftCard
title={post.title}
@@ -25,7 +25,6 @@ const { posts } = Astro.props;
title={post.title}
subTitle={post.description}
url={`/blog/${post.slug}`}
single={!post.image_second}
imgOne={post.image}
imgOneAlt={post.image_alt}
imgTwo={post?.image_second}