diff --git a/docs/adr/0001-compiled-sites-render-whole-sections.md b/docs/adr/0001-compiled-sites-render-whole-sections.md new file mode 100644 index 0000000..3488e40 --- /dev/null +++ b/docs/adr/0001-compiled-sites-render-whole-sections.md @@ -0,0 +1,19 @@ +# Compiled sites render whole sections on brutalist + +Decided 2026-11-20 for brutalist 0.7.2, from the website factory's visual review (orchestrator WO-094, ADR 0078). + +## Context + +The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone. + +## Decision + +- rich-section renders one column with the text at a readable width when the section has no image. It used to keep a two-column grid with an empty media cell, so a compiled site whose about or contact section was waiting for a photo showed half the section blank. +- The hero draws a scrim over its photo: the theme background at 75% for the "light" overlay, the primary colour for "primary", and black at 60% otherwise. It had none, so muted text over a busy photo failed contrast. + +## Consequences + +- brutalist 0.7.2 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. A site that sets the old values renders as before wherever it has an image. + +Keywords: brutalist, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review diff --git a/plugin.mod b/plugin.mod index e3e1f8f..dd14fe3 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "brutalist" display_name = "Brutalist" scope = "@themes" -version = "0.7.1" +version = "0.7.2" description = "Concrete, oversized type, hard 12-col grid theme for design studios, architecture firms and art galleries." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/brutalist/hero.ninjatpl b/templates/overrides/brutalist/hero.ninjatpl index 4d35b48..afb4d52 100644 --- a/templates/overrides/brutalist/hero.ninjatpl +++ b/templates/overrides/brutalist/hero.ninjatpl @@ -10,7 +10,7 @@ {% set variant = template|default:"centered" %} {% set hasImage = backgroundImage %}
-{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}
{% endif %} +{% if hasImage %}
{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}
{% endif %}
{% if eyebrowText %}{{ eyebrowText }}{% endif %} diff --git a/templates/overrides/brutalist/rich-section.ninjatpl b/templates/overrides/brutalist/rich-section.ninjatpl index c99f54b..21eeb64 100644 --- a/templates/overrides/brutalist/rich-section.ninjatpl +++ b/templates/overrides/brutalist/rich-section.ninjatpl @@ -1,14 +1,14 @@ {# brutalist rich-section override — split text/media with bordered media frame. Fields: background, mediaPosition, eyebrow, heading, body, ctaUrl, ctaLabel, media, mediaAlt. #}
-
-
+
+
{% if eyebrow %}{{ eyebrow }}{% endif %} {% if heading %}

{{ heading }}

{% endif %} {% if body %}
{{ body|safe }}
{% endif %} {% if ctaUrl and ctaLabel %}{{ ctaLabel }} →{% endif %}
-
- {% if media %}
{% img media alt=mediaAlt class="w-full h-auto object-cover" %}
{% endif %} -
+ {% if media %}
+
{% img media alt=mediaAlt class="w-full h-auto object-cover" %}
+
{% endif %}