src/components/heading/HeadingLarge.astro
---
interface Props {
title: string;
sub?: string;
}
const { title = "Wij maken merken onvergetelijk", sub = "BLURR — digitaal bureau voor ambitieuze bedrijven" } = Astro.props;
---
<div class="hd-large">
<h1 class="hd-large__title">{title}</h1>
{sub && <p class="hd-large__sub">{sub}</p>}
</div>
<style>
:root {
--color-accent: #6366f1;
--color-primary: #0a0a0a;
}
.hd-large {
padding: 4rem 0 3rem;
text-align: center;
}
.hd-large__title {
margin: 0 0 1rem;
font-size: clamp(3rem, 10vw, 7rem);
font-weight: 900;
line-height: 1.0;
color: var(--color-primary);
letter-spacing: -0.03em;
}
.hd-large__sub {
margin: 0 auto;
max-width: 560px;
font-size: 1.15rem;
color: #666;
line-height: 1.6;
}
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
title * | string | — | Grote display-titel |
sub | string | — | Subtekst |
* = verplicht