- discography: kill the ballooning empty-media box — compact fixed-height chrome tile placeholder instead of a full aspect-square gray void, and a real CSS media-query grid (.y2k-grid-records: 1/2/4 cols) so column count no longer depends on the host Tailwind having scanned this persona template (it stuck at 2 cols at 1440px, making each empty square huge). - landing: header absolute top-0 -> sticky top-0 (matches every other page template) so the audio bar no longer collides with / underlaps the navbar. - waveform_player: constrain to a centered max-w-4xl column with section padding (was edge-to-edge full-bleed) and stack on phones. - headings: remove the wide primary text-shadow halo that read as a stray render artifact behind every heading; tone the chrome shimmer to a faint glint. All colours stay semantic hsl(var(--token)). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
30 lines
2.2 KiB
Plaintext
30 lines
2.2 KiB
Plaintext
{# y2k:discography — grid of releases with cover art, year, format, and a link. #}
|
|
<section data-block="y2k:discography" class="py-12 md:py-16 bg-background text-foreground{% if class %} {{ class }}{% endif %}">
|
|
<div class="mx-auto max-w-6xl px-4">
|
|
{% if heading %}<h2 class="y2k-display glitch text-2xl font-semibold tracking-tight md:text-3xl" data-text="{{ heading }}">{{ heading }}</h2>{% endif %}
|
|
{% if releases %}
|
|
<div class="mt-8 y2k-grid-records">
|
|
{% for release in releases %}
|
|
<article class="y2k-bevel y2k-card y2k-glow group overflow-hidden bg-card text-card-foreground">
|
|
{% if release.cover %}
|
|
<div class="aspect-square overflow-hidden bg-muted">
|
|
{% if release.link %}<a href="{{ release.link }}" class="block h-full w-full">{% img release.cover alt=release.title class="h-full w-full object-cover transition-transform duration-300 group-hover:scale-105" %}</a>{% else %}{% img release.cover alt=release.title class="h-full w-full object-cover" %}{% endif %}
|
|
</div>
|
|
{% else %}
|
|
<div class="y2k-media-empty y2k-chrome-bg text-muted-foreground">
|
|
{% if release.link %}<a href="{{ release.link }}" class="flex h-full w-full items-center justify-center" aria-label="{{ release.title }}"><svg class="h-12 w-12" aria-hidden="true"><use href="/icons/lucide.svg#disc"></use></svg></a>{% else %}<svg class="h-12 w-12" aria-hidden="true"><use href="/icons/lucide.svg#disc"></use></svg>{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
<div class="p-3">
|
|
{% if release.title %}<h3 class="y2k-heading truncate text-sm text-foreground">{% if release.link %}<a href="{{ release.link }}" class="hover:underline">{{ release.title }}</a>{% else %}{{ release.title }}{% endif %}</h3>{% endif %}
|
|
<p class="y2k-mono mt-1 flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground">{% if release.year %}<span>{{ release.year }}</span>{% endif %}{% if release.format %}<span class="text-primary">{{ release.format }}</span>{% endif %}</p>
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p class="y2k-mono mt-8 text-muted-foreground">No releases yet.</p>
|
|
{% endif %}
|
|
</div>
|
|
</section>
|