- hero: read styled-text fields as `field|get:"text"|default:field` so the home hero renders (bare-string seed values were hard-erroring the block to empty output — the "weird af header" root cause; page jumped navbar→audio). - light-mode: add a background-token radial scrim behind the hero headline (lightens the centre in light, darkens in dark) for legible text over the mesh. - seed media: ship 6 licensed stock images; wire 4 as Records cover art (chrome-liquid-metal/holographic-foil/abstract-neon/cassette) + the waveform now-playing cover (neon-rave) + a chrome image on About. - waveform: replace the "No audio source set yet." placeholder with a deliberate "SIDE A // live to tape" mono transport readout. - fonts: @font-face Orbitron/Inter/Share Tech Mono from /templates/y2k/fonts/* + typography refs in all presets (bundled fonts were inert dead code). - article: expand tracking-to-tape to 10 band-journal paragraphs (kills the ~350px blog dead space). - SVG geometry guard: explicit width/height on every sprite <use> icon + replace ::icon:: shortcodes with sized <svg> (Tailwind JIT balloon guard). - capture Wave B screenshots (home/about/article × light+dark, 2880×1800); preview.png = dark home (dark-canonical theme). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
1.7 KiB
Plaintext
18 lines
1.7 KiB
Plaintext
{% if audioUrl or trackTitle %}<section class="py-8 bg-background" data-block-key="y2k:waveform_player">
|
|
<div class="mx-auto max-w-4xl px-4">
|
|
<figure class="y2k-bevel y2k-chrome-bg rounded-xl overflow-hidden flex flex-col gap-4 p-4 sm:flex-row sm:items-stretch">
|
|
<div class="w-20 h-20 shrink-0 y2k-image-frame overflow-hidden bg-muted">
|
|
{% if coverImage %}{% img coverImage alt=trackTitle class="w-full h-full object-cover" %}{% else %}<span class="flex h-full w-full items-center justify-center text-muted-foreground"><svg width="32" height="32" class="h-8 w-8" aria-hidden="true"><use href="/icons/lucide.svg#music"></use></svg></span>{% endif %}
|
|
</div>
|
|
<div class="flex-1 min-w-0 flex flex-col justify-between gap-2">
|
|
<figcaption class="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1 min-w-0">
|
|
<span class="y2k-heading text-base truncate text-foreground">{{ trackTitle|default:"untitled track" }}</span>
|
|
{% if artist %}<span class="y2k-mono text-xs uppercase tracking-wider text-muted-foreground shrink-0">{{ artist }}</span>{% endif %}
|
|
</figcaption>
|
|
<div class="w-full h-12 y2k-waveform" aria-hidden="true"></div>
|
|
{% if audioUrl %}<audio controls preload="none" class="w-full" src="{{ audioUrl }}">Your browser does not support the audio element.</audio>{% else %}<div class="y2k-mono flex items-center gap-2.5 text-xs uppercase tracking-widest text-foreground"><span aria-hidden="true" class="y2k-status-dot inline-block h-2 w-2 shrink-0 rounded-full bg-primary"></span><span class="font-semibold text-primary">Side A</span><span aria-hidden="true" class="text-foreground/40">//</span><span class="normal-case tracking-wide text-foreground/70">live to tape</span></div>{% endif %}
|
|
</div>
|
|
</figure>
|
|
</div>
|
|
</section>{% endif %}
|