fix: website factory launch run defects (0.6.5)
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:
parent
494ab19c55
commit
88fd049329
18
docs/adr/0004-the-centred-hero-centres-its-buttons.md
Normal file
18
docs/adr/0004-the-centred-hero-centres-its-buttons.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# The centred hero centres its buttons
|
||||||
|
|
||||||
|
Decided 2026-11-22 for corporate-modernist 0.6.5, from the website factory's launch runs (orchestrator WO-101, ADR 0092).
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
The website factory now builds a hero that has no photo as the centred hero (orchestrator ADR 0092); it used the left-aligned one, which kept the text to 60 characters at the left and left the right half of the hero empty (Sentinel Lynx). The first rebuilt site showed the centred hero's buttons still at the left under centred text.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
- The centred hero (every variant but left-aligned, and split without a photo) carries `cm-hero--center`, which centres its button row and trust logo row with its text. Both rows set their flex layout inline, so the class only adds `justify-content: center`.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- corporate-modernist 0.6.5 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.6.5 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
|
||||||
|
|
||||||
|
Keywords: hero, centered, cm-hero--center, cm-btn-row, cm-logo-row, justify-content, WO-101, website factory, launch runs, corporate-modernist
|
||||||
@ -208,6 +208,8 @@ css:
|
|||||||
.cm-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
.cm-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
||||||
@media (min-width: 640px) { .cm-grid-2, .cm-grid-3, .cm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
@media (min-width: 640px) { .cm-grid-2, .cm-grid-3, .cm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||||
@media (min-width: 1024px) { .cm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
@media (min-width: 1024px) { .cm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
||||||
|
/* The centred hero centres its buttons and logos with its text; the rows set their flex layout inline. */
|
||||||
|
.cm-hero--center .cm-btn-row, .cm-hero--center .cm-logo-row { justify-content: center; }
|
||||||
/* bn-center-last-row (cms ADR 0221) centres a short last row; the host rule targets lg:grid-cols-*, so cm-grid repeats it. */
|
/* bn-center-last-row (cms ADR 0221) centres a short last row; the host rule targets lg:grid-cols-*, so cm-grid repeats it. */
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
.bn-center-last-row .cm-grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
.bn-center-last-row .cm-grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
name = "corporate-modernist"
|
name = "corporate-modernist"
|
||||||
display_name = "Corporate Modernist"
|
display_name = "Corporate Modernist"
|
||||||
scope = "@themes"
|
scope = "@themes"
|
||||||
version = "0.6.4"
|
version = "0.6.5"
|
||||||
description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites."
|
description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites."
|
||||||
kind = "theme"
|
kind = "theme"
|
||||||
categories = ["templates"]
|
categories = ["templates"]
|
||||||
|
|||||||
@ -20,5 +20,5 @@
|
|||||||
{% if variant == "split" and backgroundImage %}
|
{% if variant == "split" and backgroundImage %}
|
||||||
<section class="cm-hero {{ class }}" style="padding-top: 3.5rem; padding-bottom: 3.5rem;"><div class="cm-content-well"><div class="cm-grid cm-grid-2" style="align-items: center;"><div>{{ herobody() }}</div><div class="cm-media-frame" style="aspect-ratio: 4 / 3; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); overflow: hidden; {% if mediaPosition == "left" %}order: -1;{% endif %}">{% img backgroundImage alt=headlineText class="cm-hero-media" %}</div></div></div></section>
|
<section class="cm-hero {{ class }}" style="padding-top: 3.5rem; padding-bottom: 3.5rem;"><div class="cm-content-well"><div class="cm-grid cm-grid-2" style="align-items: center;"><div>{{ herobody() }}</div><div class="cm-media-frame" style="aspect-ratio: 4 / 3; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); overflow: hidden; {% if mediaPosition == "left" %}order: -1;{% endif %}">{% img backgroundImage alt=headlineText class="cm-hero-media" %}</div></div></div></section>
|
||||||
{% else %}
|
{% else %}
|
||||||
<section class="cm-hero {{ class }}" style="padding-top: 3.5rem; padding-bottom: 3.5rem; {% if variant == "left-aligned" %}text-align: left;{% else %}text-align: center;{% endif %}"><div class="cm-content-well" style="{% if variant != "left-aligned" %}display: flex; flex-direction: column; align-items: center;{% endif %}"><div style="max-width: 60ch; width: 100%;">{{ herobody() }}</div></div></section>
|
<section class="cm-hero{% if variant != "left-aligned" %} cm-hero--center{% endif %} {{ class }}" style="padding-top: 3.5rem; padding-bottom: 3.5rem; {% if variant == "left-aligned" %}text-align: left;{% else %}text-align: center;{% endif %}"><div class="cm-content-well" style="{% if variant != "left-aligned" %}display: flex; flex-direction: column; align-items: center;{% endif %}"><div style="max-width: 60ch; width: 100%;">{{ herobody() }}</div></div></section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user