fix: website factory launch run defects (0.5.9)

Footer contact details, eyebrow alignment, long headlines, scrims and
grid rows found by the WO-101 render pass; see docs/adr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-11-22 18:27:47 +08:00
parent 5ca790ea74
commit 95eaf1e17e
5 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,21 @@
# The centred footer shows the contact details, the eyebrow lines up and a long word fits the hero
Decided 2026-11-22 for art-deco 0.5.9, from the website factory's launch runs (orchestrator WO-101, ADR 0092).
## Context
The website factory compiles a customer's site onto this theme. Twelve launch sites built on dev on 2026-11-22 showed defects on their home pages, recorded in the orchestrator's `docs/works/evidence/WO-090/runs/RESULTS.md`; the render pass now also renders a 60 to 80 character headline with long words on every theme.
## Decision
- The centred footer layout shows the address, email and phone as the column layout does. Both art-deco master footers are centred, so a site's contact details, which the factory binds from the site settings, never appeared (The Gilded Brow, The Lantern Room).
- Footer icons draw in the link colour (`fill: currentColor`). The icon sprites carry no fill, so the social icon rendered black on the near-black footer, the item ADR 0005 left open.
- A left-aligned hero eyebrow has no leading rule. The rule before the eyebrow text pushed it about 16 pixels right of the headline on the split and left-aligned heroes; the centred hero keeps a rule on each side.
- A hero headline with a word of nine letters or more takes a smaller size (`deco-word-9`, `deco-word-12`, set per word in the template; the longest word wins), and `overflow-wrap: anywhere` breaks a word that is longer still. With its 0.18em tracking, "NEIGHBOURHOOD" ran off the right edge at 390 pixels and out of the split hero's half column at 1280 in the long-headline render. A headline of shorter words keeps its size.
## Consequences
- art-deco 0.5.9 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. Production sites on this theme pick the change up with the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.5.9 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: footer, centered, contact details, address, email, phone, _site_bindings, social icon, fill currentColor, eyebrow, kicker, deco-rule, long headline, deco-word-9, deco-word-12, overflow-wrap, WO-101, website factory, launch runs, art-deco

View File

@ -130,6 +130,14 @@ css:
@font-face { font-family: 'Cormorant Garamond'; src: url('/templates/art-deco/fonts/cormorant-garamond-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@layer utilities {
/* A hero headline with a long word takes a size at which the word fits, with its wide tracking, on a phone and
in the split hero's half column. Later classes win, so the longest word sets the size. */
h1.deco-word-9 { font-size: clamp(1.75rem, 8vw, 3rem); overflow-wrap: anywhere; }
h1.deco-word-12 { font-size: clamp(1.5rem, 6.5vw, 2.5rem); overflow-wrap: anywhere; }
/* Icon sprites draw in the link's colour; with no fill they stay black on the dark footer. */
[data-block-override="art-deco:footer"] a svg { fill: currentColor; }
/* deco-rule — hairline gold rule, 1px ascending to 2px on accent lines. */
.deco-rule {
border: none;

View File

@ -2,7 +2,7 @@
name = "art-deco"
display_name = "Art Deco"
scope = "@themes"
version = "0.5.8"
version = "0.5.9"
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

@ -18,6 +18,7 @@
{% if logo %}<span class="inline-flex rounded-none p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-10 w-auto"/></span>{% elif companyName %}<span class="deco-caps text-2xl text-primary" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);">{{ companyName }}</span>{% endif %}
<div class="h-6 w-40 deco-sunburst" aria-hidden="true"></div>
{% if tagline %}<p class="max-w-md text-sm italic text-background/70">{{ tagline }}</p>{% endif %}
{% if address or email or phone %}<address class="not-italic text-sm text-background/70 space-y-1">{% if address %}<div>{{ address }}</div>{% endif %}{% if email %}<div><a href="mailto:{{ email }}" class="hover:text-primary transition-colors">{{ email }}</a></div>{% endif %}{% if phone %}<div><a href="tel:{{ phone }}" class="hover:text-primary transition-colors">{{ phone }}</a></div>{% endif %}</address>{% endif %}
{% if columns %}<nav class="flex flex-wrap items-center justify-center gap-x-6 gap-y-2">{% for col in columns %}{% for item in col.items %}<a href="{{ item.url|default:'#' }}"{% if item.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="deco-caps text-xs text-background/80 hover:text-primary transition-colors">{{ item.label }}</a>{% endfor %}{% endfor %}</nav>{% endif %}
{{ newsletter() }}
{{ sociallinks("justify-center") }}

View File

@ -11,8 +11,8 @@
{% 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"{% 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 eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}">{% if align == "center" %}<span class="deco-rule w-10"></span>{% endif %}<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{% for w in headlineText|split:" " %}{% if w|length > 11 %} deco-word-12{% elif w|length > 8 %} deco-word-9{% endif %}{% endfor %}" 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({% 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 %}">