src/components/social-proof/AwardsBadges.astro
---
/**
* AwardsBadges
* Prijzen en certificeringen sectie.
*/
interface Props {
eyebrow?: string;
headline?: string;
awards: { icon: string; title: string; year?: string; issuer?: string }[];
bg?: 'white' | 'light' | 'dark';
}
const { eyebrow = 'Erkend & gecertificeerd', headline, awards, bg = 'light' } = Astro.props;
---
<section class={`aw aw--${bg}`}>
<div class="aw-inner">
{eyebrow && <p class="aw-eyebrow">{eyebrow}</p>}
{headline && <h2 class="aw-headline">{headline}</h2>}
<div class="aw-grid">
{awards.map(a => (
<div class="aw-item">
<span class="aw-icon">{a.icon}</span>
<span class="aw-title">{a.title}</span>
{a.issuer && <span class="aw-issuer">{a.issuer}</span>}
{a.year && <span class="aw-year">{a.year}</span>}
</div>
))}
</div>
</div>
</section>
<style>
.aw { padding: 4rem 2rem; }
.aw--white { background: #fff; border-top: 1px solid #e5e7eb; }
.aw--light { background: #f8fafc; border-top: 1px solid #e5e7eb; }
.aw--dark { background: #111827; }
.aw-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.aw-eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1rem; }
.aw--white .aw-eyebrow, .aw--light .aw-eyebrow { color: #9ca3af; }
.aw--dark .aw-eyebrow { color: rgba(255,255,255,0.3); }
.aw-headline { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 2.5rem; }
.aw--white .aw-headline, .aw--light .aw-headline { color: #0a0a0a; }
.aw--dark .aw-headline { color: #fff; }
.aw-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.aw-item { display: flex; flex-direction: column; align-items: center; gap: 0.625rem; padding: 1.75rem 1.5rem; border-radius: 1rem; min-width: 140px; }
.aw--white .aw-item { background: #f8fafc; border: 1px solid #e5e7eb; }
.aw--light .aw-item { background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.aw--dark .aw-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.aw-icon { font-size: 2rem; }
.aw-title { font-size: 0.875rem; font-weight: 700; text-align: center; line-height: 1.3; }
.aw--white .aw-title, .aw--light .aw-title { color: #0a0a0a; }
.aw--dark .aw-title { color: #fff; }
.aw-issuer { font-size: 0.75rem; text-align: center; }
.aw--white .aw-issuer, .aw--light .aw-issuer { color: #6b7280; }
.aw--dark .aw-issuer { color: rgba(255,255,255,0.4); }
.aw-year { font-size: 0.6875rem; font-family: monospace; font-weight: 600; }
.aw--white .aw-year, .aw--light .aw-year { color: #9ca3af; }
.aw--dark .aw-year { color: rgba(255,255,255,0.25); }
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
awards * | { icon: string; title: string; year?: string; issuer?: string }[] | — | Award items |
eyebrow | string | — | Eyebrow boven de sectie |
headline | string | — | Sectie headline |
bg | 'white' | 'light' | 'dark' | — | Achtergrond variant |
* = verplicht