Simple homepage

This commit is contained in:
2026-09-24 14:37:40 +02:00
parent d4769e9a33
commit 6897103041
11 changed files with 154 additions and 48 deletions
+4 -4
View File
@@ -1,16 +1,16 @@
---
interface Props { title: string; introduction?: string; example?: boolean; hasImage?: boolean }
const { title, introduction, example = false, hasImage = false } = Astro.props;
interface Props { title: string; introduction?: string; example?: boolean; breadcrumb?: boolean; hasImage?: boolean }
const { title, introduction, example = false, breadcrumb = true, hasImage = false } = Astro.props;
---
<section class:list={['page-hero', { 'page-hero--compact': !hasImage }]}>
<div class="container">
<nav class="breadcrumb" aria-label="Breadcrumb">
{breadcrumb && <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>
</nav>}
<h1 class="page-hero__title">{title}</h1>
{introduction && <p class="page-hero__lead">{introduction}</p>}
</div>