mirror of
https://codeberg.org/JasterV/jaster.xyz.git
synced 2026-04-26 18:10:01 +00:00
25 lines
447 B
Text
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>
|