themes-cyberpunk/card_override.go
Alex Dunmow 313ebaf296 initial: theme plugin cyberpunk
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/cyberpunk.

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

19 lines
518 B
Go

package main
import (
"bytes"
"context"
)
// CyberpunkCardBlock renders the built-in card with a dashed neon border-image
// and hover-lift / chromatic-aberration shadow.
func CyberpunkCardBlock(ctx context.Context, content map[string]any) string {
title := getString(content, "title")
body := getString(content, "body")
href := getString(content, "href")
media := getString(content, "media")
var buf bytes.Buffer
_ = cyberpunkCardComponent(title, body, href, media).Render(ctx, &buf)
return buf.String()
}