StatementSection Sections
Pure typografie moment. Donkere sectie met één grote cursieve display-quote. Verticale accentregel als typografische inleiding.
src/components/sections/StatementSection.astro
---
/**
* StatementSection
* Pure typografie moment. Donkere sectie met één grote cursieve quote
* als visuele break tussen zware content-secties.
* Verticale accentregel boven de quote.
*
* Props:
* - quote: string, de quote tekst (HTML toegestaan, use <br> voor regelbreuk)
* - attribution?: string, kleine tekst onder quote (- auteur / context)
* - bgColor?: string, achtergrondkleur (default: '#0d0b09')
* - accentColor?: string, kleur van de verticale regel (default: '#c43d3a')
*/
interface Props {
quote: string;
attribution?: string;
bgColor?: string;
accentColor?: string;
}
const {
quote,
attribution,
bgColor = '#0d0b09',
accentColor = '#c43d3a',
} = Astro.props;
---
<section class="bl-section ss" style={`--ss-bg:${bgColor};--ss-accent:${accentColor}`} aria-label="Statement">
<div class="bl-inner ss-inner">
<span class="ss-rule" aria-hidden="true"></span>
<blockquote class="ss-quote" set:html={quote} />
{attribution && <p class="ss-attr">{attribution}</p>}
</div>
</section>
<style>
.ss {
background-color: var(--ss-bg, #0d0b09);
padding-block: clamp(5rem, 5vw, 5rem);
overflow: hidden;
position: relative;
font-family: system-ui, -apple-system, sans-serif;
}
.ss-inner {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 2rem;
}
.ss-rule {
display: block;
width: 1px;
height: 4rem;
background: var(--ss-accent, #c43d3a);
margin-bottom: 0.5rem;
}
.ss-quote {
font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
font-size: clamp(2.75rem, 5vw, 5rem);
font-weight: 300;
font-style: italic;
line-height: 1.05;
letter-spacing: -0.03em;
color: #fdfaf6;
margin: 0;
padding: 0;
border: none;
max-width: 16ch;
}
.ss-attr {
font-family: 'Courier New', monospace;
font-size: 0.6875rem;
color: rgba(196, 189, 180, 0.35);
letter-spacing: 0.14em;
margin-top: 0.5rem;
text-transform: uppercase;
}
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
quote * | string | - | Display quote tekst (HTML toegestaan, <br> voor regelbreuk) |
attribution | string | - | Kleine tekst onder quote (auteur / context) |
bgColor | string | "#0d0b09" | Achtergrondkleur (gebruik donkere tint) |
accentColor | string | "#c43d3a" | Kleur van de verticale accentregel |
* = verplicht