fix: website factory launch run defects (0.5.7)

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 19:11:51 +08:00
parent 27f08dde42
commit 3cc213dfc3
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,18 @@
# Hero text over a photo sits on a panel
Decided 2026-11-22 for earthen 0.5.7, from the website factory's render pass over all thirty-six blueprint and theme pairs (orchestrator WO-101, ADR 0092).
## Context
The website factory compiles a customer's site onto this theme, and the render pass measures every text element drawn over a photo. Earthen's centred hero lays its text over the photo under the radial light scrim of ADR 0003 (86% of the background at the centre, 80% to half the radius). On the restaurant-cafe home page the primary-coloured eyebrow and the outline button's label, which measure about 5:1 on the plain background, fell to 3.2 and 3.6 at 1280 pixels over the dark plate in the photo, and the subheadline to 4.2 at 390. Earlier passes rendered earthen only with split heroes, whose text sits beside the photo.
## Decision
- A centred or left-aligned hero with a photo sets its text on a rounded panel of the theme background at 92%, inset one rem from each side. The photo still shows around the panel; the text keeps nearly its full contrast whatever the photo holds. The split hero and a hero without a photo are unchanged.
## Consequences
- earthen 0.5.7 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. Production sites with a full-width hero photo show the panel after the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.5.7 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: hero, photo, panel, scrim, radial-gradient, overlayColor light, contrast, eyebrow, outline button, centered hero, WO-101, website factory, render pass, earthen

View File

@ -2,7 +2,7 @@
name = "earthen"
display_name = "Earthen"
scope = "@themes"
version = "0.5.6"
version = "0.5.7"
description = "Botanical nonprofit theme in moss, clay, sage and cream — hand-illustrated motifs for cause-driven sites."
kind = "theme"
categories = ["templates"]

View File

@ -34,6 +34,6 @@
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
<section data-block-override="earthen:hero" class="hero relative flex flex-col overflow-hidden bg-background text-foreground bg-paper-grain {% if minHeight == "screen" %}min-h-screen{% elif minHeight == "50vh" %}min-h-[50vh]{% elif minHeight == "auto" %}min-h-[400px]{% else %}min-h-[75vh]{% endif %} {% if verticalAlign == "top" %}justify-start pt-20{% elif verticalAlign == "bottom" %}justify-end pb-20{% else %}justify-center{% endif %}{% if class %} {{ class }}{% endif %}">
{% if hasImage %}<div class="absolute inset-0 z-0">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div{% if overlayColor == "light" %} style="background: radial-gradient(ellipse at {% if variant == "left-aligned" %}35%{% else %}50%{% endif %} 50%, hsl(var(--background) / 0.86) 0%, hsl(var(--background) / 0.8) 50%, hsl(var(--background) / 0.2) 100%);"{% endif %} class="absolute inset-0 {% if overlayColor == "light" %}{% elif overlayColor == "primary" %}bg-primary/50{% elif overlayOpacity <= 30 %}bg-black/30{% elif overlayOpacity <= 50 %}bg-black/50{% elif overlayOpacity <= 70 %}bg-black/70{% else %}bg-black/80{% endif %}"></div>{% endif %}</div>{% endif %}
<div class="relative z-10 mx-auto w-full max-w-4xl px-4 sm:px-6 lg:px-8 {% if variant == "left-aligned" %}text-left{% else %}text-center{% endif %}">{{ herocontent(align) }}</div>
<div class="relative z-10 mx-auto w-full max-w-4xl px-4 sm:px-6 lg:px-8 {% if variant == "left-aligned" %}text-left{% else %}text-center{% endif %}{% if hasImage %} rounded-2xl py-10{% endif %}"{% if hasImage %} style="width: calc(100% - 2rem); background-color: hsl(var(--background) / 0.92);"{% endif %}>{{ herocontent(align) }}</div>
</section>
{% endif %}