themes-y2k/image_override.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

12 lines
389 B
Plaintext

package main
// y2kImageComponent wraps an image in the chrome y2k-image-frame.
templ y2kImageComponent(data Y2KImageData) {
<figure class={ "my-4", data.Class }>
<img src={ data.URL } alt={ data.Alt } class="y2k-image-frame w-full h-auto"/>
if data.Caption != "" {
<figcaption class="mt-2 text-sm text-muted-foreground text-center">{ data.Caption }</figcaption>
}
</figure>
}