Files
site-profile/src/components/sections/SelectedPostsSection.astro
Alex Lebens 500d9e2ea0
All checks were successful
renovate / renovate (push) Successful in 41s
test-build / build (push) Successful in 1m25s
test-build / guarddog (push) Successful in 1m43s
feat: move script handling to use swup instead of astro transitions, move animations to baselayout
2026-03-13 10:59:25 -05:00

21 lines
493 B
Plaintext

---
import type { Post } from '@lib/directusTypes';
import LargeBlogLeftCard from '@components/cards/LargeBlogLeftCard.astro';
import LargeBlogRightCard from '@components/cards/LargeBlogRightCard.astro';
interface Props {
posts: Post[];
}
const { posts } = Astro.props;
---
<section class="smooth-reveal-cards flex flex-col gap-4 md:mb-20">
{posts.map((post, index) => index % 2 === 0 ? (
<LargeBlogLeftCard post={post}/>
) : (
<LargeBlogRightCard post={post}/>
))}
</section>