themes-y2k/blocks/tracklist.ninjatpl
Alex Dunmow a86a54639a feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Convert the Y2K theme from a Go+templ wasm plugin to a fully codeless .bnp:
blocks/blocks.yaml + .ninjatpl, page/system templates, template overrides,
email wrapper, master pages and CSS declared in manifest.yaml. All *.go, *.templ,
*_templ.go, go.mod and go.sum deleted; schemas moved schemas/ -> blocks/.

Static parity proven 48/48 identical against the templ baseline (10 blocks x
full+empty+variant branches, 4 overrides incl. heading L1-6, email full+empty).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:10:52 +08:00

9 lines
937 B
Plaintext

<section class="y2k-bevel rounded-xl overflow-hidden bg-card my-6" data-block-key="y2k:tracklist">
<header class="y2k-chrome-bg px-4 py-2 text-foreground uppercase tracking-wider text-xs">tracklist</header>
{% if not tracks %}<p class="px-4 py-6 text-center text-muted-foreground">No tracks yet.</p>{% else %}<ol class="divide-y divide-border">{% for track in tracks %}<li class="flex flex-wrap items-center gap-3 px-4 py-3">
<span class="w-6 shrink-0 text-muted-foreground text-sm tabular-nums">{{ forloop.Counter }}</span>
<span class="flex-1 min-w-0 truncate text-foreground">{% if track.url %}<a href="{{ track.url }}" class="hover:underline">{{ track.title|default:"untitled track" }}</a>{% else %}{{ track.title|default:"untitled track" }}{% endif %}</span>
<span class="text-muted-foreground text-sm tabular-nums whitespace-nowrap">{{ track.duration|default:"--:--" }}</span>
</li>{% endfor %}</ol>{% endif %}
</section>