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>
17 lines
450 B
Go
17 lines
450 B
Go
package main
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
)
|
|
|
|
// CyberpunkTextBlock renders the built-in text block with cyberpunk styling:
|
|
// scanline-friendly leading and accent-coloured <code> inline spans.
|
|
func CyberpunkTextBlock(ctx context.Context, content map[string]any) string {
|
|
text := getString(content, "text")
|
|
class := getString(content, "class")
|
|
var buf bytes.Buffer
|
|
_ = cyberpunkTextComponent(text, class).Render(ctx, &buf)
|
|
return buf.String()
|
|
}
|