themes-pastel-dream/blocks/seasonal_specials.ninjatpl
Alex Dunmow 4ac5f76714 fix(pastel-dream): seed product photos, unclippable price row, SVG geometry guard
- Seed 6 licensed bakery photos (media array) and wire them to every
  product card: home Seasonal Specials (strawberry tart/croissant/lemon
  loaf) and the article Cake Gallery (tart/sponge/galette). Kills the
  'Add a photo' placeholder residue on all six cards. Also adds a bakery
  interior shot to the About story section.
- Card title/price row: price moved to its own line (cake gallery) / a
  wrapping badge+price row under the title (seasonal specials) so a long
  product name never collides with the price and '$X.XX' can never clip.
- SVG geometry guard: explicit width/height on all 43 <use> icon SVGs so
  the host Tailwind JIT dropping a size utility can't balloon an icon.
- Lengthen the strawberries article to 8 paragraphs (bakery voice).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 19:45:04 +08:00

27 lines
1.6 KiB
Plaintext

<section data-block="pastel-dream:seasonal_specials" class="py-11 md:py-16 bg-background text-foreground{% if class %} {{ class }}{% endif %}">
<div class="mx-auto max-w-6xl px-4">
<div class="max-w-2xl">
{% if kicker %}<p class="pd-hand text-xl text-accent">{{ kicker }}</p>{% endif %}
{% if heading %}<h2 class="pd-display mt-1 text-3xl text-primary md:text-4xl"><span class="pd-doodle-underline">{{ heading }}</span></h2>{% endif %}
{% if intro %}<p class="pd-body mt-3 text-lg text-muted-foreground">{{ intro }}</p>{% endif %}
</div>
{% if items %}
<div class="mt-10 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
{% for item in items %}
<article class="pd-card overflow-hidden flex flex-col">
{% if item.image %}<div class="relative w-full overflow-hidden aspect-[4/3] bg-secondary">{% img item.image alt=item.name|default:"Seasonal special" class="block h-full w-full object-cover" %}</div>{% endif %}
<div class="p-5 md:p-6">
<h3 class="pd-display text-xl text-primary">{{ item.name }}</h3>
<div class="mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5">
{% if item.price %}<span class="pd-mono text-lg text-accent tabular-nums">{% if currency %}{{ currency }}{% endif %}{{ item.price }}</span>{% endif %}
{% if item.badge %}<span class="pd-hand inline-flex rounded-full bg-accent/15 px-3 py-0.5 text-sm text-accent">{{ item.badge }}</span>{% endif %}
</div>
{% if item.note %}<p class="pd-body mt-3 text-sm text-muted-foreground">{{ item.note }}</p>{% endif %}
</div>
</article>
{% endfor %}
</div>
{% endif %}
</div>
</section>