FooterEditorial Footer
Krant/magazine stijl footer met verdiepte typografie en dividers.
src/components/footer/FooterEditorial.astro
---
/**
* FooterEditorial
* Krant/magazine-stijl footer met verdiepte typografie en dividers.
*/
interface Props {
logo: string;
tagline?: string;
columns: { title: string; links: { label: string; href: string }[] }[];
copyright?: string;
issueInfo?: string;
}
const { logo, tagline, columns, copyright, issueInfo } = Astro.props;
---
<footer class="fed">
<div class="fed-rule"></div>
<div class="fed-inner">
<div class="fed-top">
<div class="fed-brand">
<a href="/" class="fed-logo">{logo}</a>
{tagline && <p class="fed-tagline">{tagline}</p>}
</div>
{issueInfo && <span class="fed-issue">{issueInfo}</span>}
</div>
<div class="fed-rule-thin"></div>
<div class="fed-cols">
{columns.map(col => (
<div class="fed-col">
<h4 class="fed-col-title">{col.title}</h4>
<ul class="fed-col-links">
{col.links.map(l => <li><a href={l.href} class="fed-col-link">{l.label}</a></li>)}
</ul>
</div>
))}
</div>
</div>
<div class="fed-bottom">
<div class="fed-bottom-inner">
<p class="fed-copy">{copyright ?? `© ${new Date().getFullYear()} ${logo}. Alle rechten voorbehouden.`}</p>
</div>
</div>
</footer>
<style>
.fed { background: #fafaf8; }
.fed-rule { height: 3px; background: #0a0a0a; }
.fed-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 2rem; }
.fed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.fed-logo { font-size: 1.75rem; font-weight: 900; color: #0a0a0a; text-decoration: none; letter-spacing: -0.04em; display: block; line-height: 1; }
.fed-tagline { font-size: 0.8125rem; color: #6b7280; margin: 0.375rem 0 0; letter-spacing: 0.04em; }
.fed-issue { font-size: 0.75rem; color: #9ca3af; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.fed-rule-thin { height: 1px; background: #e5e7eb; margin-bottom: 2rem; }
.fed-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.fed-col-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9ca3af; margin: 0 0 1rem; }
.fed-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.fed-col-link { font-size: 0.875rem; color: #374151; text-decoration: none; transition: color 0.15s; }
.fed-col-link:hover { color: #0a0a0a; }
.fed-bottom { border-top: 1px solid #e5e7eb; }
.fed-bottom-inner { max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem; }
.fed-copy { font-size: 0.8125rem; color: #9ca3af; margin: 0; }
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
logo * | string | — | Merknaam |
columns * | { title: string; links: { label: string; href: string }[] }[] | — | Footer kolommen |
tagline | string | — | Tagline |
issueInfo | string | — | Rechtse info label (bijv. datum/editie) |
copyright | string | — | Copyright tekst |
* = verplicht