FooterTech Footer
Tech-stijl dark footer met monofont accenten, versienummer en statusbadge.
src/components/footer/FooterTech.astro
---
/**
* FooterTech
* Tech-stijl footer met dark, mono-font accenten en terminal-look status badge.
*/
interface Props {
logo: string;
columns: { title: string; links: { label: string; href: string }[] }[];
status?: { label: string; ok?: boolean };
version?: string;
copyright?: string;
}
const { logo, columns, status, version, copyright } = Astro.props;
---
<footer class="ftech">
<div class="ftech-inner">
<div class="ftech-brand">
<a href="/" class="ftech-logo">{logo}</a>
{version && <code class="ftech-version">v{version}</code>}
{status && (
<div class={`ftech-status${status.ok !== false ? ' ftech-status--ok' : ' ftech-status--warn'}`}>
<span class="ftech-status-dot"></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="ftech-bottom-inner">
<p class="ftech-copy">{copyright ?? `© ${new Date().getFullYear()} ${logo}`}</p>
<code class="ftech-build">build {new Date().toISOString().split('T')[0]}</code>
</div>
</div>
</footer>
<style>
.ftech { background: #0f172a; border-top: 1px solid #1e293b; }
.ftech-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 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: -0.02em; display: block; margin-bottom: 0.75rem; font-family: monospace; }
.ftech-version { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); padding: 0.2rem 0.5rem; border-radius: 0.25rem; width: fit-content; margin-bottom: 0.75rem; }
.ftech-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.ftech-status-dot { width: 6px; height: 6px; 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: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin: 0 0 0.875rem; font-family: monospace; }
.ftech-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ftech-col-link { font-size: 0.8125rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
.ftech-col-link:hover { color: #fff; }
.ftech-bottom { border-top: 1px solid #1e293b; }
.ftech-bottom-inner { max-width: 1280px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.ftech-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); margin: 0; }
.ftech-build { font-size: 0.6875rem; color: rgba(255,255,255,0.15); font-family: monospace; }
@media (max-width: 768px) { .ftech-inner { grid-template-columns: 1fr; gap: 2rem; } }
</style>
Props
| Prop | Type | Default | Beschrijving |
|---|---|---|---|
logo * | string | — | Merknaam |
columns * | { title: string; links: { label: string; href: string }[] }[] | — | Footer kolommen |
status | { label: string; ok?: boolean } | — | Systeemstatus indicator |
version | string | — | Versienummer |
copyright | string | — | Copyright tekst |
* = verplicht