Simple conetent + restyled

This commit is contained in:
2026-09-21 17:59:29 +02:00
parent 0772462742
commit 467bf77d34
55 changed files with 2162 additions and 2070 deletions
+17
View File
@@ -0,0 +1,17 @@
---
interface Props { title: string; introduction?: string; example?: boolean; hasImage?: boolean }
const { title, introduction, example = false, hasImage = false } = Astro.props;
---
<section class:list={['page-hero', { 'page-hero--compact': !hasImage }]}>
<div class="container">
<nav class="breadcrumb" aria-label="Breadcrumb">
<ol>
{Astro.url.pathname !== '/' && <li><a href="/">Home</a></li>}
{example && <li>Example</li>}
<li aria-current="page">{title}</li>
</ol>
</nav>
<h1 class="page-hero__title">{title}</h1>
{introduction && <p class="page-hero__lead">{introduction}</p>}
</div>
</section>