fix: website factory launch run defects (0.4.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:
parent
e4678b42dd
commit
299abfc235
19
docs/adr/0005-the-eyebrow-lines-up-with-the-headline.md
Normal file
19
docs/adr/0005-the-eyebrow-lines-up-with-the-headline.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# The eyebrow lines up with the headline, and the photo scrim is drawn inline
|
||||||
|
|
||||||
|
Decided 2026-11-22 for noir 0.4.7, 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
|
||||||
|
|
||||||
|
- A left-aligned hero eyebrow has no leading rule. The rule before the eyebrow text pushed it right of the headline on the split and left-aligned heroes, as it did by 16 pixels on art-deco and magazine-bold, whose hero markup noir shares; the centred hero keeps a rule on each side.
|
||||||
|
- The scrim of the light hero overlay is an inline 60% black. As the class `bg-black/60` it depended on the site's Tailwind build having picked the class up from the theme, and on a freshly built site it had not: the white hero text measured 2.1 to 3.5 on a bright venue photo in the long-headline render.
|
||||||
|
|
||||||
|
## Consequences
|
||||||
|
|
||||||
|
- noir 0.4.7 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.4.7 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
|
||||||
|
|
||||||
|
Keywords: eyebrow, kicker, noir-rule, scrim, bg-black/60, overlayColor light, contrast, WO-101, website factory, launch runs, noir
|
||||||
@ -2,7 +2,7 @@
|
|||||||
name = "noir"
|
name = "noir"
|
||||||
display_name = "Noir"
|
display_name = "Noir"
|
||||||
scope = "@themes"
|
scope = "@themes"
|
||||||
version = "0.4.6"
|
version = "0.4.7"
|
||||||
description = "Detective and true-crime dossier theme: case-file cards, typewriter type, redaction bars, evidence board and film grain. High-key gallery by day, darkroom black by night."
|
description = "Detective and true-crime dossier theme: case-file cards, typewriter type, redaction bars, evidence board and film grain. High-key gallery by day, darkroom black by night."
|
||||||
kind = "theme"
|
kind = "theme"
|
||||||
categories = ["templates"]
|
categories = ["templates"]
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
{# With a background image the content sits on a dark grayscale photo + dark scrim in BOTH modes, so onImg switches text to light utility classes. #}
|
{# With a background image the content sits on a dark grayscale photo + dark scrim in BOTH modes, so onImg switches text to light utility classes. #}
|
||||||
{% set showOverlay = hasImage %}
|
{% set showOverlay = hasImage %}
|
||||||
{% macro herocontent(align, onImg) %}
|
{% macro herocontent(align, onImg) %}
|
||||||
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}"><span class="noir-rule w-10"></span><span class="noir-label{% if onImg %} text-white{% endif %}"{% if not onImg %} style="color:hsl(var(--primary));"{% endif %}>{{ eyebrowText }}</span><span class="noir-rule w-10"></span></div>{% endif %}
|
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}">{% if align == "center" %}<span class="noir-rule w-10"></span>{% endif %}<span class="noir-label{% if onImg %} text-white{% endif %}"{% if not onImg %} style="color:hsl(var(--primary));"{% endif %}>{{ eyebrowText }}</span><span class="noir-rule w-10"></span></div>{% endif %}
|
||||||
{% if headlineText %}<h1 class="noir-heading text-4xl sm:text-5xl lg:text-6xl leading-tight{% if onImg %} text-white{% endif %}"{% if not onImg %} style="color:hsl(var(--foreground));"{% endif %}>{{ headlineText }}</h1>{% endif %}
|
{% if headlineText %}<h1 class="noir-heading text-4xl sm:text-5xl lg:text-6xl leading-tight{% if onImg %} text-white{% endif %}"{% if not onImg %} style="color:hsl(var(--foreground));"{% endif %}>{{ headlineText }}</h1>{% endif %}
|
||||||
{% if subText %}<h2 class="noir-body mt-5 text-xl sm:text-2xl max-w-2xl{% if align == "center" %} mx-auto{% endif %}"{% if onImg %} style="color: rgb(255 255 255 / 0.85);"{% else %} style="color:hsl(var(--muted-foreground));"{% endif %}>{{ subText }}</h2>{% endif %}
|
{% if subText %}<h2 class="noir-body mt-5 text-xl sm:text-2xl max-w-2xl{% if align == "center" %} mx-auto{% endif %}"{% if onImg %} style="color: rgb(255 255 255 / 0.85);"{% else %} style="color:hsl(var(--muted-foreground));"{% endif %}>{{ subText }}</h2>{% endif %}
|
||||||
{% if descText %}<p class="noir-body mt-4 max-w-xl leading-relaxed{% if align == "center" %} mx-auto{% endif %}"{% if onImg %} style="color: rgb(255 255 255 / 0.80);"{% else %} style="color:hsl(var(--muted-foreground));"{% endif %}>{{ descText }}</p>{% endif %}
|
{% if descText %}<p class="noir-body mt-4 max-w-xl leading-relaxed{% if align == "center" %} mx-auto{% endif %}"{% if onImg %} style="color: rgb(255 255 255 / 0.80);"{% else %} style="color:hsl(var(--muted-foreground));"{% endif %}>{{ descText }}</p>{% endif %}
|
||||||
@ -34,7 +34,7 @@
|
|||||||
{% set align = "center" %}
|
{% set align = "center" %}
|
||||||
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
|
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
|
||||||
<section data-block-override="noir:hero" class="hero relative flex flex-col overflow-hidden bg-background text-foreground noir-grain {% if minHeight == "screen" %}min-h-screen justify-center{% else %}py-16 md:py-20 lg:py-24{% endif %}{% if class %} {{ class }}{% endif %}">
|
<section data-block-override="noir:hero" class="hero relative flex flex-col overflow-hidden bg-background text-foreground noir-grain {% if minHeight == "screen" %}min-h-screen justify-center{% else %}py-16 md:py-20 lg:py-24{% endif %}{% if class %} {{ class }}{% endif %}">
|
||||||
{% if hasImage %}<div class="absolute inset-0 z-0 grayscale">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="absolute inset-0 {% if overlayColor == "light" %}bg-black/60{% 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 %}
|
{% if hasImage %}<div class="absolute inset-0 z-0 grayscale">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div 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 %}"{% if overlayColor == "light" %} style="background-color: rgb(0 0 0 / 0.6);"{% 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, hasImage) }}</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 %}">{{ herocontent(align, hasImage) }}</div>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user