src/components/footer/FooterCta.astro
---
/**
* FooterCta
* Footer met grote CTA sectie bovenaan + links in kolommen eronder.
*/
interface Props {
ctaHeadline: string;
ctaSub?: string;
ctaPrimary: { label: string; href: string };
ctaSecondary?: { label: string; href: string };
logo: string;
columns?: { title: string; links: { label: string; href: string }[] }[];
copyright?: string;
}
const { ctaHeadline, ctaSub, ctaPrimary, ctaSecondary, logo, columns = [], copyright } = Astro.props;
---
<footer class="fct">
<div class="fct-cta">
<div class="fct-cta-inner">
<h2 class="fct-cta-headline">{ctaHeadline}</h2>
{ctaSub && <p class="fct-cta-sub">{ctaSub}</p>}
<div class="fct-cta-btns">
<a href={ctaPrimary.href} class="fct-btn-primary">{ctaPrimary.label}</a>
{ctaSecondary && <a href={ctaSecondary.href} class="fct-btn-secondary">{ctaSecondary.label}</a>}
</div>
</div>
</div>
<div class="fct-links">
<div class="fct-links-inner">
<a href="/" class="fct-logo">{logo}</a>
{columns.map(col => (
<div class="fct-col">
<h4 class="fct-col-title">{col.title}</h4>
<ul class="fct-col-links">
{col.links.map(l => <li><a href={l.href} class="fct-col-link">{l.label}</a></li>)}
</ul>
</div>
))}
</div>
<div class="fct-bottom">
<p class="fct-copy">{copyright ?? `© ${new Date().getFullYear()} ${logo}`}</p>
</div>
</div>
</footer>
<style>
.fct { background: #fff; }
.fct-cta { background: #0a0a0a; padding: 5rem 2rem; }
.fct-cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.fct-cta-headline { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; color: #fff; letter-spacing: -0.04em; margin: 0 0 1rem; line-height: 1.1; }
.fct-cta-sub { font-size: 1.0625rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin: 0 0 2.5rem; }
.fct-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.fct-btn-primary { padding: 0.875rem 2rem; background: var(--color-accent,#6366f1); color: #fff; font-weight: 700; font-size: 0.9375rem; border-radius: 0.5rem; text-decoration: none; transition: opacity 0.2s; }
.fct-btn-primary:hover { opacity: 0.88; }
.fct-btn-secondary { padding: 0.875rem 2rem; border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); font-weight: 600; font-size: 0.9375rem; border-radius: 0.5rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.fct-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.fct-links { border-top: 1px solid #e5e7eb; }
.fct-links-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 2rem; display: grid; grid-template-columns: 1fr repeat(auto-fit, minmax(140px, 1fr)); gap: 2.5rem; }
.fct-logo { font-weight: 900; font-size: 1.125rem; color: #0a0a0a; text-decoration: none; letter-spacing: -0.03em; align-self: start; }
.fct-col-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; margin: 0 0 0.875rem; }
.fct-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.fct-col-link { font-size: 0.875rem; color: #6b7280; text-decoration: none; transition: color 0.15s; }
.fct-col-link:hover { color: #0a0a0a; }
.fct-bottom { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem 1.5rem; border-top: 1px solid #f1f5f9; }
.fct-copy { font-size: 0.8125rem; color: #9ca3af; margin: 0; }
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
ctaHeadline * | string | — | CTA headline |
ctaPrimary * | { label: string; href: string } | — | Primaire CTA knop |
logo * | string | — | Merknaam |
ctaSub | string | — | CTA subtext |
ctaSecondary | { label: string; href: string } | — | Secundaire CTA |
columns | { title: string; links: { label: string; href: string }[] }[] | — | Footer kolommen |
* = verplicht