themes-y2k/footer_chrome.templ
Alex Dunmow 49f9c90589 initial: theme plugin y2k
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/y2k.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:46 +08:00

25 lines
903 B
Plaintext

package main
// footerChromeComponent renders the bottom chrome strip with optional webring.
templ footerChromeComponent(data FooterChromeData) {
<div class="y2k-chrome-bg y2k-bevel mt-8" data-block-key="y2k:footer_chrome">
<div class="max-w-6xl mx-auto px-4 py-4 flex flex-wrap items-center justify-between gap-3">
if data.MenuName != "" {
<nav class="flex gap-3 text-sm uppercase tracking-wider" data-menu-target={ data.MenuName }>
<span class="text-muted-foreground">{ "menu:" + data.MenuName }</span>
</nav>
}
if data.ShowWebring {
<div class="flex items-center gap-2">
<a href="#" class="y2k-webring-badge">prev</a>
<a href="#" class="y2k-webring-badge">ring</a>
<a href="#" class="y2k-webring-badge">next</a>
</div>
}
if data.Copyright != "" {
<span class="text-xs text-muted-foreground">{ data.Copyright }</span>
}
</div>
</div>
}