jaster.xyz/src/components/PostCards.astro
2025-06-01 19:14:27 +02:00

25 lines
447 B
Text

---
import PostCard from "@components/PostCard.astro";
import type { BlogPost } from "../types/BlogPost.ts";
interface Props {
posts: BlogPost[];
}
const { posts } = Astro.props;
---
<div class="post-cards">
{posts.map((post) => <PostCard post={post} />)}
</div>
<style>
.post-cards {
display: flex;
flex-direction: column;
gap: 1rem;
margin: 1rem 0rem;
align-items: center;
justify-content: center;
}
</style>