themes-brutalist/colophon.templ
Alex Dunmow 771a286fa9 initial: theme plugin brutalist
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/brutalist.

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

19 lines
747 B
Plaintext

package main
templ colophonComponent(data ColophonData) {
<section class="brutalist-colophon" data-block="brutalist:colophon">
if data.ShowAddress && data.Address != "" {
<address style="font-style: normal; white-space: pre-line;">{ data.Address }</address>
}
<div style="display: flex; flex-direction: column; gap: 0.25rem;">
if data.Email != "" {
<a href={ templ.SafeURL("mailto:" + data.Email) } style="color: inherit; text-decoration: none;">{ data.Email }</a>
}
for _, link := range data.Social {
<a href={ templ.SafeURL(resolveURL(link.URL)) } target="_blank" rel="noopener" style="color: inherit; text-decoration: none;">{ link.Label }</a>
}
</div>
<div class="stamp">© { data.Year }</div>
</section>
}