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..2bac5db --- /dev/null +++ b/docs/adr/0001-compiled-sites-render-whole-sections.md @@ -0,0 +1,23 @@ +# Compiled sites render whole sections on corporate-modernist + +Decided 2026-11-20 for corporate-modernist 0.6.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 media frame (a bordered grey box) renders only when there is an image. +- team honours `columns` (2, 3 or 4) with the `cm-grid` classes; with no `columns` it keeps `cm-leadership-grid`. +- The split hero section no longer carries `cm-hero-split`, which made the section itself a two-column grid and squeezed the hero into its left half. +- The mobile menu toggle is hidden from 768px with a selector that outranks `.cm-btn-outline`, which had kept it visible beside the desktop links. +- An image logo is sized (`.cm-brand-logo` 2.5rem high, `.cm-footer-logo` 2rem) and drops the square brand mark, which belongs to the text logo. An uploaded logo used to render at its full pixel size. +- Paragraphs in `.cm-text` are spaced, so a multi-paragraph body no longer runs together. + +## Consequences + +- corporate-modernist 0.6.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: corporate-modernist, 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/manifest.yaml b/manifest.yaml index e6983db..ca799aa 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -162,6 +162,7 @@ css: .cm-text { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 17px; line-height: 28px; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; } .cm-text a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; } .cm-text strong { font-weight: 600; } + .cm-text p + p { margin-top: 1em; } .cm-lede { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 1.25rem; line-height: 1.6; color: hsl(var(--muted-foreground)); } .cm-eyebrow { font-family: var(--font-heading, "Inter", system-ui, sans-serif); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: hsl(var(--accent)); margin: 0 0 1rem 0; } .cm-kicker { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); } @@ -220,7 +221,9 @@ css: .cm-nav-link { font-family: var(--font-body, "Inter", system-ui, sans-serif); font-size: 0.9375rem; color: hsl(var(--foreground)); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: border-color 150ms ease; } .cm-nav-link:hover { border-bottom-color: hsl(var(--accent)); } .cm-nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; } - @media (min-width: 768px) { .cm-nav-toggle { display: none; } } + @media (min-width: 768px) { .cm-navbar .cm-nav-toggle { display: none; } } + .cm-brand-logo { display: block; height: 2.5rem; width: auto; max-width: 14rem; object-fit: contain; } + .cm-footer-logo { display: block; height: 2rem; width: auto; max-width: 12rem; object-fit: contain; } .cm-nav-drawer { display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0 1rem; border-top: 1px solid hsl(var(--border)); width: 100%; } @media (min-width: 768px) { .cm-nav-drawer { display: none !important; } } .cm-nav-drawer a { padding: 0.625rem 0; font-family: var(--font-body, "Inter", system-ui, sans-serif); color: hsl(var(--foreground)); text-decoration: none; border-bottom: 1px solid hsl(var(--border)); } diff --git a/plugin.mod b/plugin.mod index d75b2b1..435ac7e 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "corporate-modernist" display_name = "Corporate Modernist" scope = "@themes" -version = "0.6.1" +version = "0.6.2" description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/corporate-modernist/hero.ninjatpl b/templates/overrides/corporate-modernist/hero.ninjatpl index 5ca5d8e..48f4c3b 100644 --- a/templates/overrides/corporate-modernist/hero.ninjatpl +++ b/templates/overrides/corporate-modernist/hero.ninjatpl @@ -18,7 +18,7 @@ {% if trustLogos %}

Trusted by

{% for logo in trustLogos %}{% if logo.url %}{% img logo.image alt=logo.alt class="cm-logo" %}{% else %}{% img logo.image alt=logo.alt class="cm-logo" %}{% endif %}{% endfor %}
{% endif %} {% endmacro %} {% if variant == "split" and backgroundImage %} -
{{ herobody() }}
{% img backgroundImage alt=headlineText class="cm-hero-media" %}
+
{{ herobody() }}
{% img backgroundImage alt=headlineText class="cm-hero-media" %}
{% else %}
{{ herobody() }}
{% endif %} diff --git a/templates/overrides/corporate-modernist/navbar.ninjatpl b/templates/overrides/corporate-modernist/navbar.ninjatpl index 4d8ccc0..f5570dc 100644 --- a/templates/overrides/corporate-modernist/navbar.ninjatpl +++ b/templates/overrides/corporate-modernist/navbar.ninjatpl @@ -1 +1 @@ - + diff --git a/templates/overrides/corporate-modernist/rich-section.ninjatpl b/templates/overrides/corporate-modernist/rich-section.ninjatpl index 71eb0e5..3416de1 100644 --- a/templates/overrides/corporate-modernist/rich-section.ninjatpl +++ b/templates/overrides/corporate-modernist/rich-section.ninjatpl @@ -1,10 +1,10 @@ {# rich-section override — two-column media + rich text, hairline surface options. #} -
-
+
+ {% 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="cm-rich-media" %}{% endif %}
+{% if media %}
{% img media alt=mediaAlt class="cm-rich-media" %}
{% endif %}
diff --git a/templates/overrides/corporate-modernist/team.ninjatpl b/templates/overrides/corporate-modernist/team.ninjatpl index 883486d..d5b8a01 100644 --- a/templates/overrides/corporate-modernist/team.ninjatpl +++ b/templates/overrides/corporate-modernist/team.ninjatpl @@ -2,7 +2,7 @@
{% if heading %}

{{ heading }}

{% endif %} {% if intro %}

{{ intro }}

{% endif %} -{% if members %}
{% for member in members %}
+{% if members %}
{% for member in members %}
{% if member.photo %}
{% img member.photo alt=member.name class="cm-team-photo" %}
{% endif %} {% if member.name %}

{{ member.name }}

{% endif %} {% if member.role %}
{{ member.role }}
{% endif %}