PreStyling Layouts & Components

This commit is contained in:
2026-09-24 09:58:25 +02:00
parent fc38a1aafe
commit 356ccedc01
39 changed files with 1212 additions and 96 deletions

View File

@@ -0,0 +1,23 @@
---
import type { Article } from '@/lib/site/types'
import ArticleCardItem from './ArticleCardItem.astro'
type Props = {
articles: Article[]
title?: string
}
const { articles, title } = Astro.props
---
{articles.length > 0 && (
<section class="cards">
{title && <h2 class="title">{title}</h2>}
<div class="grid">
{articles.map((article) => (
<ArticleCardItem article={article} />
))}
</div>
</section>
)}