events/src/components/InfoPageSections.astro
2026-07-05 23:36:04 +05:30

21 lines
434 B
Text

---
import type { InfoPage } from "../data/info";
type Props = {
page: InfoPage;
};
const { page } = Astro.props;
---
{page.sections.map((section) => (
<section class="content-section">
<h2>{section.title}</h2>
{section.body?.map((paragraph) => <p>{paragraph}</p>)}
{section.bullets && (
<ul class="check-list">
{section.bullets.map((bullet) => <li>{bullet}</li>)}
</ul>
)}
</section>
))}