fix: render whole sections for factory-compiled sites (0.5.5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-11-20 03:59:04 +08:00
parent aad53a8819
commit 10f5ee3bab
3 changed files with 22 additions and 4 deletions

View File

@ -0,0 +1,18 @@
# Hero text over a photo uses the foreground colour on art-deco
Decided 2026-11-20 for art-deco 0.5.5, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADRs 0001 and 0002 shipped.
## Context
The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone.
## Decision
- Over a photo the hero's eyebrow, subheadline and secondary link use the foreground colour. On the light scrim the gold link measured 2:1 and the muted italic subheadline 4.2:1, under the AA minimum.
## Consequences
- art-deco 0.5.5 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. A site that sets the old values renders as before wherever it has an image.
Keywords: art-deco, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review

View File

@ -2,7 +2,7 @@
name = "art-deco"
display_name = "Art Deco"
scope = "@themes"
version = "0.5.4"
version = "0.5.5"
description = "Luxury Art Deco theme with champagne gold gradients, jet black, ivory and geometric fan motifs for hotels, fine dining, weddings and jewellers."
kind = "theme"
categories = ["templates"]

View File

@ -11,13 +11,13 @@
{% set hasImage = backgroundImage %}
{% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %}
{% macro herocontent(align) %}
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}"><span class="deco-rule w-10"></span><span class="deco-caps text-xs text-primary">{{ eyebrowText }}</span><span class="deco-rule w-10"></span></div>{% endif %}
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}"><span class="deco-rule w-10"></span><span class="deco-caps text-xs text-primary"{% if backgroundImage %} style="color:hsl(var(--foreground));"{% endif %}>{{ eyebrowText }}</span><span class="deco-rule w-10"></span></div>{% endif %}
{% if headlineText %}<h1 class="deco-caps text-4xl sm:text-5xl lg:text-6xl leading-tight" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ headlineText }}</h1>{% endif %}
{% if subText %}<h2 class="mt-5 text-xl sm:text-2xl italic max-w-2xl{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Cormorant Garamond', Georgia, serif);">{{ subText }}</h2>{% endif %}
{% if subText %}<h2 class="mt-5 text-xl sm:text-2xl italic max-w-2xl{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var({% if backgroundImage %}--foreground{% else %}--muted-foreground{% endif %}));font-family:var(--font-body, 'Cormorant Garamond', Georgia, serif);">{{ subText }}</h2>{% endif %}
{% if descText %}<p class="mt-4 max-w-xl leading-relaxed{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));">{{ descText }}</p>{% endif %}
{% if pText or sText %}<div class="mt-8 flex flex-col sm:flex-row gap-4{% if align == "center" %} justify-center{% endif %}">
{% if pText and pUrl %}<a href="{{ pUrl }}" class="deco-pill inline-flex items-center justify-center gap-2">{{ pText }}</a>{% endif %}
{% if sText and sUrl %}<a href="{{ sUrl }}" class="deco-link inline-flex items-center justify-center">{{ sText }}</a>{% endif %}
{% if sText and sUrl %}<a href="{{ sUrl }}" class="deco-link inline-flex items-center justify-center"{% if backgroundImage %} style="color:hsl(var(--foreground));"{% endif %}>{{ sText }}</a>{% endif %}
</div>{% endif %}
{% if trustLogos %}<div class="mt-10">
<p class="deco-caps text-xs text-muted-foreground mb-3">Acclaim</p>