FooterModern Footer
Moderne lichte footer met kaart-stijl social knoppen en trust badges.
src/components/footer/FooterModern.astro
---
/**
* FooterModern
* Modern lichte footer met kaart-stijl secties en badge-achtige labels.
*/
interface Props {
logo: string;
tagline?: string;
columns: { title: string; links: { label: string; href: string; badge?: string }[] }[];
socials?: { platform: string; href: string; icon: string }[];
copyright?: string;
}
const { logo, tagline, columns, socials = [], copyright } = Astro.props;
---
<footer class="fmod">
<div class="fmod-inner">
<div class="fmod-brand">
<a href="/" class="fmod-logo">{logo}</a>
{tagline && <p class="fmod-tagline">{tagline}</p>}
{socials.length > 0 && (
<div class="fmod-socials">
{socials.map(s => <a href={s.href} class="fmod-social" aria-label={s.platform}>{s.icon}</a>)}
</div>
)}
</div>
{columns.map(col => (
<div class="fmod-col">
<h4 class="fmod-col-title">{col.title}</h4>
<ul class="fmod-col-links">
{col.links.map(l => (
<li class="fmod-col-item">
<a href={l.href} class="fmod-col-link">{l.label}</a>
{l.badge && <span class="fmod-badge">{l.badge}</span>}
</li>
))}
</ul>
</div>
))}
</div>
<div class="fmod-bottom">
<div class="fmod-bottom-inner">
<p class="fmod-copy">{copyright ?? `© ${new Date().getFullYear()} ${logo}. Alle rechten voorbehouden.`}</p>
<div class="fmod-trust">
<span class="fmod-trust-item">🔒 SSL beveiligd</span>
<span class="fmod-trust-item">🇳🇱 Made in NL</span>
</div>
</div>
</div>
</footer>
<style>
.fmod { background: #f8fafc; border-top: 1px solid #e5e7eb; }
.fmod-inner { max-width: 1280px; margin: 0 auto; padding: 3.5rem 2rem 2.5rem; display: grid; grid-template-columns: 260px repeat(auto-fit, minmax(130px, 1fr)); gap: 3rem; }
.fmod-logo { font-weight: 900; font-size: 1.125rem; color: #0a0a0a; text-decoration: none; letter-spacing: -0.03em; display: block; margin-bottom: 0.75rem; }
.fmod-tagline { font-size: 0.875rem; color: #6b7280; line-height: 1.6; margin: 0 0 1.25rem; }
.fmod-socials { display: flex; gap: 0.5rem; }
.fmod-social { width: 34px; height: 34px; border-radius: 0.5rem; background: #fff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 0.9375rem; text-decoration: none; color: #374151; transition: all 0.15s; }
.fmod-social:hover { border-color: var(--color-accent,#6366f1); color: var(--color-accent,#6366f1); }
.fmod-col-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; margin: 0 0 0.875rem; }
.fmod-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.fmod-col-item { display: flex; align-items: center; gap: 0.5rem; }
.fmod-col-link { font-size: 0.875rem; color: #374151; text-decoration: none; transition: color 0.15s; }
.fmod-col-link:hover { color: var(--color-accent,#6366f1); }
.fmod-badge { font-size: 0.625rem; font-weight: 700; background: #dcfce7; color: #16a34a; padding: 0.1rem 0.4rem; border-radius: 999px; }
.fmod-bottom { border-top: 1px solid #e5e7eb; background: #fff; }
.fmod-bottom-inner { max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fmod-copy { font-size: 0.8125rem; color: #9ca3af; margin: 0; }
.fmod-trust { display: flex; gap: 1.5rem; }
.fmod-trust-item { font-size: 0.75rem; color: #9ca3af; }
@media (max-width: 768px) { .fmod-inner { grid-template-columns: 1fr; gap: 2rem; } }
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
logo * | string | — | Merknaam |
columns * | { title: string; links: { label: string; href: string; badge?: string }[] }[] | — | Kolommen met optionele badges |
tagline | string | — | Tagline |
socials | { platform: string; href: string; icon: string }[] | — | Sociale media knoppen |
* = verplicht