diff --git a/docs/adr/0006-the-centred-footer-shows-contact-details-and-the-eyebrow-lines-up.md b/docs/adr/0006-the-centred-footer-shows-contact-details-and-the-eyebrow-lines-up.md new file mode 100644 index 0000000..c346207 --- /dev/null +++ b/docs/adr/0006-the-centred-footer-shows-contact-details-and-the-eyebrow-lines-up.md @@ -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 diff --git a/manifest.yaml b/manifest.yaml index df3bb9a..58797da 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -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; diff --git a/plugin.mod b/plugin.mod index eeeddb3..6c44c77 100644 --- a/plugin.mod +++ b/plugin.mod @@ -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"] diff --git a/templates/overrides/art-deco/footer.ninjatpl b/templates/overrides/art-deco/footer.ninjatpl index 692a3cf..15c7b29 100644 --- a/templates/overrides/art-deco/footer.ninjatpl +++ b/templates/overrides/art-deco/footer.ninjatpl @@ -18,6 +18,7 @@ {% if logo %}{{ companyName }}{% elif companyName %}{{ companyName }}{% endif %} {% if tagline %}

{{ tagline }}

{% endif %} +{% if address or email or phone %}
{% if address %}
{{ address }}
{% endif %}{% if email %}
{{ email }}
{% endif %}{% if phone %}
{{ phone }}
{% endif %}
{% endif %} {% if columns %}{% endif %} {{ newsletter() }} {{ sociallinks("justify-center") }} diff --git a/templates/overrides/art-deco/hero.ninjatpl b/templates/overrides/art-deco/hero.ninjatpl index 944903e..fbfd8d4 100644 --- a/templates/overrides/art-deco/hero.ninjatpl +++ b/templates/overrides/art-deco/hero.ninjatpl @@ -11,8 +11,8 @@ {% set hasImage = backgroundImage %} {% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %} {% macro herocontent(align) %} -{% if eyebrowText %}
{{ eyebrowText }}
{% endif %} -{% if headlineText %}

{{ headlineText }}

{% endif %} +{% if eyebrowText %}
{% if align == "center" %}{% endif %}{{ eyebrowText }}
{% endif %} +{% if headlineText %}

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 }}

{% endif %} {% if subText %}

{{ subText }}

{% endif %} {% if descText %}

{{ descText }}

{% endif %} {% if pText or sText %}