FooterTech Footer
Developer/SaaS-footer met versie-badge, status-indicator, link-kolommen en een build-stempel.
src/components/footer/FooterTech.astro
---
/**
* FooterTech
* Developer/SaaS-footer op donkere achtergrond: brand-blok met versie + status,
* meerdere link-kolommen, en een onderbalk met copyright + build-stempel.
*
* Props:
* - logo: string
* - version?: string mono versie-badge
* - status?: { label: string; ok?: boolean }
* - columns?: Array<{ title: string; links: { label: string; href: string }[] }>
* - copyright?: string default "© {jaar} {logo}"
* - build?: string mono build-stempel rechtsonder
*/
interface Props {
logo: string;
version?: string;
status?: { label: string; ok?: boolean };
columns?: { title: string; links: { label: string; href: string }[] }[];
copyright?: string;
build?: string;
}
const {
logo,
version,
status,
columns = [],
copyright,
build,
} = Astro.props;
const year = new Date().getFullYear();
const copyrightText = copyright ?? `© ${year} ${logo}`;
const statusOk = status?.ok ?? true;
---
<footer class="bl-section ftech">
<div class="bl-inner ftech-inner">
<div class="ftech-brand">
<span class="ftech-logo">{logo}</span>
{version && <code class="ftech-version">{version}</code>}
{status && (
<div class:list={['ftech-status', statusOk ? 'ftech-status--ok' : 'ftech-status--warn']}>
<span class="ftech-status-dot" aria-hidden="true"></span>
{status.label}
</div>
)}
</div>
{columns.map(col => (
<div class="ftech-col">
<h4 class="ftech-col-title">{col.title}</h4>
<ul class="ftech-col-links">
{col.links.map(l => <li><a href={l.href} class="ftech-col-link">{l.label}</a></li>)}
</ul>
</div>
))}
</div>
<div class="ftech-bottom">
<div class="bl-inner ftech-bottom-inner">
<p class="ftech-copy">{copyrightText}</p>
{build && <code class="ftech-build">{build}</code>}
</div>
</div>
</footer>
<style>
.ftech { padding-block: 0; background: #0f172a; border-top: 1px solid #1e293b; }
.ftech-inner {
padding-block: 3rem 2rem;
display: grid;
grid-template-columns: 220px repeat(auto-fit, minmax(130px, 1fr));
gap: 3rem;
}
.ftech-logo {
font-weight: 800;
font-size: 1.0625rem;
color: #fff;
text-decoration: none;
letter-spacing: -.02em;
display: block;
margin-bottom: .75rem;
font-family: monospace;
}
.ftech-version {
display: block;
font-size: .8125rem;
color: #cbd5e1;
background: #ffffff14;
padding: .2rem .5rem;
border-radius: .25rem;
width: fit-content;
margin-bottom: .75rem;
}
.ftech-status { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: #cbd5e1; }
.ftech-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ftech-status--ok .ftech-status-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.ftech-status--warn .ftech-status-dot { background: #f59e0b; }
.ftech-col-title {
font-size: .6875rem;
font-weight: 700;
letter-spacing: .12em;
text-transform: uppercase;
color: #94a3b8;
margin: 0 0 .875rem;
font-family: monospace;
}
.ftech-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.ftech-col-link { font-size: .9375rem; color: #cbd5e1; text-decoration: none; transition: color .15s; }
.ftech-col-link:hover { color: #fff; }
.ftech-bottom { border-top: 1px solid #1e293b; }
.ftech-bottom-inner {
padding-block: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.ftech-copy { font-size: .8125rem; color: #94a3b8; margin: 0; }
.ftech-build { font-size: .8125rem; color: #94a3b8; font-family: monospace; }
@media (max-width: 720px) {
.ftech-inner { grid-template-columns: 1fr; gap: 2rem; }
}
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
logo * | string | - | Merknaam |
version | string | - | Mono versie-badge onder het logo |
status | { label: string; ok?: boolean } | - | Status-indicator; ok=false toont een waarschuwingskleur |
columns | { title: string; links: { label: string; href: string }[] }[] | [] | Link-kolommen |
copyright | string | - | Eigen copyright (auto-gegenereerd als leeg) |
build | string | - | Mono build-stempel rechtsonder |
* = verplicht