themes-coffee/blocks/hours_strip.ninjatpl
Alex Dunmow 1a6cc30202 feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:30:42 +08:00

12 lines
715 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<aside data-block="coffee:hours_strip" class="my-4">
<ul class="coffee-card grid grid-cols-1 sm:grid-cols-2 md:grid-cols-7 gap-1 p-2 max-w-5xl mx-auto">
{% if not hours %}<li class="coffee-body text-sm text-muted-foreground italic px-3 py-2 col-span-full text-center">Add weekday hours to display the strip.</li>{% endif %}
{% for row in hours %}
<li class="coffee-body px-2 py-1 flex items-baseline gap-2 text-sm rounded-sm ">
<span class="coffee-display font-semibold text-foreground w-12 shrink-0">{{ row.day }}</span>
<span class="coffee-mono text-foreground">{% if row.open or row.close %}{{ row.open }} {{ row.close }}{% else %}Closed{% endif %}</span>
</li>
{% endfor %}
</ul>
</aside>