Compare commits

...

7 Commits
main ... v0.4.7

Author SHA1 Message Date
Alex Dunmow
299abfc235 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>
2026-11-22 18:27:50 +08:00
Alex Dunmow
e4678b42dd fix: website factory render pass polish (0.4.6)
Hero scrim, button and preset contrast and layout fixes found by the
WO-096 render pass; see docs/adr.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 06:39:13 +08:00
Alex Dunmow
021bc3041f bump to 0.4.6 2026-11-20 06:20:13 +08:00
Alex Dunmow
06dbc58e33 bump to 0.4.5 2026-11-20 06:05:08 +08:00
Alex Dunmow
3326d15447 fix: render whole sections for factory-compiled sites (0.4.4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:42:31 +08:00
Alex Dunmow
26b0b6e2fd fix: render whole sections for factory-compiled sites (0.4.3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:18:23 +08:00
Alex Dunmow
4608cd3acf fix: render whole sections for factory-compiled sites (0.4.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:51:53 +08:00
10 changed files with 119 additions and 26 deletions

View File

@ -0,0 +1,19 @@
# Compiled sites render whole sections on noir
Decided 2026-11-20 for noir 0.4.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 dark scrim when a site asks for the "light" overlay. Noir sets hero text in white over a photo, so a light scrim made the headline and the transparent navbar unreadable.
## Consequences
- noir 0.4.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: noir, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review

View File

@ -0,0 +1,18 @@
# Second render review of compiled sites on noir
Decided 2026-11-20 for noir 0.4.3, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADR 0001 shipped.
## 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
- Full-width pages use the default master. The case master placed the navbar in the landing template's `hero` slot, which the full-width template does not render, so every full-width page had no header.
## Consequences
- noir 0.4.3 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: noir, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review

View File

@ -0,0 +1,18 @@
# Hero text stays light on a photo on noir
Decided 2026-11-20 for noir 0.4.4, from the website factory's visual review (orchestrator WO-094, ADR 0078), after ADRs 0001 and 0002 shipped.
## 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
- The hero sets its light-on-photo text colours with inline styles. The `text-white/85`, `text-white/80` and `text-white/70` classes are not in the generated stylesheet, so the subheadline, description and secondary link fell back to dark text on the dark scrim.
## Consequences
- noir 0.4.4 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: noir, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review

View File

@ -0,0 +1,19 @@
# Every preset colour meets AA with its foreground, and the hero eyebrow reads on a photo
Decided 2026-11-20 for noir 0.4.6, from the website factory's final render pass (orchestrator WO-096, ADR 0084).
## Context
The website factory compiles a customer's site onto this theme. The render pass screenshots every page at 1280 and 390 pixels and measures every button's text against its fill.
## Decision
- Every preset's primary, secondary, accent and destructive colour meets AA (4.5:1) with its foreground in both schemes. The render pass measures every button, and these pairs were under it: cold-case dark destructive; evidence-red dark accent; evidence-red dark destructive; evidence-red light accent; interrogation dark destructive; redaction dark destructive; redaction dark primary; safelight dark destructive; safelight light accent; safelight light primary. Each colour moved the least lightness (at most ten points) that reaches 4.5 with its own foreground, and a colour that could not switched its foreground to white or near-black; a token that held the same colour (the ring) moved with it. The orchestrator's brand colour step keeps whatever contrast a preset has, so a preset under AA also left a branded site under it.
- The hero eyebrow over a photo is white. It was the primary red on the dark scrim and measured 2.3:1.
## Consequences
- noir 0.4.6 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. A site keeps the colours it has until a preset is applied again.
Keywords: noir, hero, eyebrow, noir-label, presets, AA, button contrast, primaryForeground, accentForeground, secondaryForeground, destructiveForeground, WO-096, website factory, render pass

View 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

View File

@ -2,7 +2,7 @@
{ {
"key": "noir:default-master", "key": "noir:default-master",
"title": "Noir Default Master", "title": "Noir Default Master",
"page_templates": ["default", "article", "blog-index", "contact"], "page_templates": ["default", "full-width", "article", "blog-index", "contact"],
"blocks": [ "blocks": [
{ "block_key": "navbar", "title": "Case-File Masthead", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "The Cold File" } }, "slot": "header", "sort_order": 0 }, { "block_key": "navbar", "title": "Case-File Masthead", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "The Cold File" } }, "slot": "header", "sort_order": 0 },
{ "block_key": "divider", "title": "Header Rule", "content": { "variant": "line", "weight": "thin", "width": "full" }, "slot": "header", "sort_order": 1 }, { "block_key": "divider", "title": "Header Rule", "content": { "variant": "line", "weight": "thin", "width": "full" }, "slot": "header", "sort_order": 1 },
@ -13,7 +13,7 @@
{ {
"key": "noir:case-master", "key": "noir:case-master",
"title": "Noir Case Master", "title": "Noir Case Master",
"page_templates": ["landing", "full-width"], "page_templates": ["landing"],
"blocks": [ "blocks": [
{ "block_key": "navbar", "title": "Case-File Masthead", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "The Cold File" }, "variant": "transparent-over-hero" }, "slot": "hero", "sort_order": 0 }, { "block_key": "navbar", "title": "Case-File Masthead", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "The Cold File" }, "variant": "transparent-over-hero" }, "slot": "hero", "sort_order": 0 },
{ "block_key": "slot", "title": "Hero Content", "content": { "slotName": "hero", "placeholder": "Hero" }, "slot": "hero", "sort_order": 1 }, { "block_key": "slot", "title": "Hero Content", "content": { "slotName": "hero", "placeholder": "Hero" }, "slot": "hero", "sort_order": 1 },

View File

@ -2,7 +2,7 @@
name = "noir" name = "noir"
display_name = "Noir" display_name = "Noir"
scope = "@themes" scope = "@themes"
version = "0.4.1" 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"]

View File

@ -48,7 +48,7 @@
"mutedForeground": "40 10% 60%", "mutedForeground": "40 10% 60%",
"accent": "32 78% 50%", "accent": "32 78% 50%",
"accentForeground": "30 22% 8%", "accentForeground": "30 22% 8%",
"destructive": "0 70% 52%", "destructive": "0 70% 47%",
"destructiveForeground": "40 20% 92%", "destructiveForeground": "40 20% 92%",
"border": "30 8% 20%", "border": "30 8% 20%",
"input": "30 8% 18%", "input": "30 8% 18%",
@ -82,7 +82,7 @@
"secondaryForeground": "0 8% 12%", "secondaryForeground": "0 8% 12%",
"muted": "20 8% 92%", "muted": "20 8% 92%",
"mutedForeground": "12 9% 29%", "mutedForeground": "12 9% 29%",
"accent": "8 68% 50%", "accent": "8 68% 48%",
"accentForeground": "20 12% 98%", "accentForeground": "20 12% 98%",
"destructive": "358 78% 42%", "destructive": "358 78% 42%",
"destructiveForeground": "20 12% 98%", "destructiveForeground": "20 12% 98%",
@ -103,9 +103,9 @@
"secondaryForeground": "10 12% 86%", "secondaryForeground": "10 12% 86%",
"muted": "0 10% 12%", "muted": "0 10% 12%",
"mutedForeground": "8 10% 60%", "mutedForeground": "8 10% 60%",
"accent": "6 74% 52%", "accent": "6 74% 55%",
"accentForeground": "0 15% 8%", "accentForeground": "0 15% 8%",
"destructive": "2 80% 54%", "destructive": "2 80% 45%",
"destructiveForeground": "10 12% 92%", "destructiveForeground": "10 12% 92%",
"border": "0 10% 19%", "border": "0 10% 19%",
"input": "0 10% 16%", "input": "0 10% 16%",
@ -133,19 +133,19 @@
"cardForeground": "30 18% 12%", "cardForeground": "30 18% 12%",
"popover": "38 34% 98%", "popover": "38 34% 98%",
"popoverForeground": "30 18% 12%", "popoverForeground": "30 18% 12%",
"primary": "32 74% 44%", "primary": "32 74% 37%",
"primaryForeground": "38 30% 97%", "primaryForeground": "38 30% 97%",
"secondary": "38 16% 88%", "secondary": "38 16% 88%",
"secondaryForeground": "30 18% 14%", "secondaryForeground": "30 18% 14%",
"muted": "38 14% 90%", "muted": "38 14% 90%",
"mutedForeground": "32 14% 30%", "mutedForeground": "32 14% 30%",
"accent": "26 70% 48%", "accent": "26 70% 40%",
"accentForeground": "38 30% 97%", "accentForeground": "38 30% 97%",
"destructive": "0 70% 44%", "destructive": "0 70% 44%",
"destructiveForeground": "38 30% 97%", "destructiveForeground": "38 30% 97%",
"border": "34 16% 80%", "border": "34 16% 80%",
"input": "34 14% 84%", "input": "34 14% 84%",
"ring": "32 74% 44%" "ring": "32 74% 37%"
}, },
"darkColors": { "darkColors": {
"background": "28 22% 6%", "background": "28 22% 6%",
@ -162,7 +162,7 @@
"mutedForeground": "36 16% 60%", "mutedForeground": "36 16% 60%",
"accent": "28 76% 50%", "accent": "28 76% 50%",
"accentForeground": "28 24% 7%", "accentForeground": "28 24% 7%",
"destructive": "0 72% 52%", "destructive": "0 72% 47%",
"destructiveForeground": "38 28% 92%", "destructiveForeground": "38 28% 92%",
"border": "28 18% 19%", "border": "28 18% 19%",
"input": "28 16% 16%", "input": "28 16% 16%",
@ -219,7 +219,7 @@
"mutedForeground": "212 14% 60%", "mutedForeground": "212 14% 60%",
"accent": "6 72% 54%", "accent": "6 72% 54%",
"accentForeground": "215 26% 7%", "accentForeground": "215 26% 7%",
"destructive": "0 70% 52%", "destructive": "0 70% 47%",
"destructiveForeground": "210 18% 92%", "destructiveForeground": "210 18% 92%",
"border": "215 18% 20%", "border": "215 18% 20%",
"input": "215 16% 17%", "input": "215 16% 17%",
@ -268,7 +268,7 @@
"cardForeground": "0 0% 90%", "cardForeground": "0 0% 90%",
"popover": "0 0% 8%", "popover": "0 0% 8%",
"popoverForeground": "0 0% 90%", "popoverForeground": "0 0% 90%",
"primary": "2 72% 54%", "primary": "2 72% 56%",
"primaryForeground": "0 0% 6%", "primaryForeground": "0 0% 6%",
"secondary": "0 0% 14%", "secondary": "0 0% 14%",
"secondaryForeground": "0 0% 86%", "secondaryForeground": "0 0% 86%",
@ -276,11 +276,11 @@
"mutedForeground": "0 0% 58%", "mutedForeground": "0 0% 58%",
"accent": "0 0% 88%", "accent": "0 0% 88%",
"accentForeground": "0 0% 8%", "accentForeground": "0 0% 8%",
"destructive": "2 74% 52%", "destructive": "2 74% 46%",
"destructiveForeground": "0 0% 92%", "destructiveForeground": "0 0% 92%",
"border": "0 0% 19%", "border": "0 0% 19%",
"input": "0 0% 16%", "input": "0 0% 16%",
"ring": "2 72% 54%" "ring": "2 72% 56%"
} }
} }
} }

View File

@ -12,16 +12,16 @@
{# 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-primary{% 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 %} text-white/85{% endif %}"{% if not onImg %} 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 %} text-white/80{% endif %}"{% if not onImg %} 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 %}
{% if pText or sText %}<div class="mt-8 flex flex-col sm:flex-row gap-4{% if align == "center" %} justify-center{% endif %}"> {% if pText or sText %}<div class="mt-8 flex flex-col sm:flex-row gap-4{% if align == "center" %} justify-center{% endif %}">
{% if pText and pUrl %}<a href="{{ pUrl }}" class="noir-btn noir-btn-solid inline-flex items-center justify-center gap-2">{{ pText }}</a>{% endif %} {% if pText and pUrl %}<a href="{{ pUrl }}" class="noir-btn noir-btn-solid inline-flex items-center justify-center gap-2">{{ pText }}</a>{% endif %}
{% if sText and sUrl %}<a href="{{ sUrl }}" class="noir-link inline-flex items-center justify-center{% if onImg %} text-white border-white/70 hover:text-white/80{% endif %}">{{ sText }}</a>{% endif %} {% if sText and sUrl %}<a href="{{ sUrl }}" class="noir-link inline-flex items-center justify-center{% if onImg %} text-white{% endif %}"{% if onImg %} style="color: rgb(255 255 255); border-color: rgb(255 255 255 / 0.7);"{% endif %}>{{ sText }}</a>{% endif %}
</div>{% endif %} </div>{% endif %}
{% if trustLogos %}<div class="mt-10"> {% if trustLogos %}<div class="mt-10">
<p class="noir-label mb-3{% if onImg %} text-white/70{% endif %}"{% if not onImg %} style="color:hsl(var(--muted-foreground));"{% endif %}>Trusted by</p> <p class="noir-label mb-3"{% if onImg %} style="color: rgb(255 255 255 / 0.70);"{% else %} style="color:hsl(var(--muted-foreground));"{% endif %}>Trusted by</p>
<div class="flex flex-wrap items-center gap-6{% if align == "center" %} justify-center{% endif %}">{% for logo in trustLogos %}{% if logo.url %}<a href="{{ logo.url }}" target="_blank" rel="noopener noreferrer" class="opacity-60 transition-opacity hover:opacity-100">{% img logo.image alt=logo.alt class="h-8 w-auto" %}</a>{% else %}{% img logo.image alt=logo.alt class="h-8 w-auto opacity-60" %}{% endif %}{% endfor %}</div> <div class="flex flex-wrap items-center gap-6{% if align == "center" %} justify-center{% endif %}">{% for logo in trustLogos %}{% if logo.url %}<a href="{{ logo.url }}" target="_blank" rel="noopener noreferrer" class="opacity-60 transition-opacity hover:opacity-100">{% img logo.image alt=logo.alt class="h-8 w-auto" %}</a>{% else %}{% img logo.image alt=logo.alt class="h-8 w-auto opacity-60" %}{% endif %}{% endfor %}</div>
</div>{% endif %} </div>{% endif %}
{% endmacro %} {% endmacro %}
@ -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-background/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 %}

View File

@ -1,14 +1,14 @@
{# noir override — rich-section; preserves background, mediaPosition, eyebrow, heading, body, ctaUrl/ctaLabel, media/mediaAlt, {% img %} + icon markup verbatim. #} {# noir override — rich-section; preserves background, mediaPosition, eyebrow, heading, body, ctaUrl/ctaLabel, media/mediaAlt, {% img %} + icon markup verbatim. #}
<section data-block-override="noir:rich-section" class="py-16 md:py-24 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}"> <section data-block-override="noir:rich-section" class="py-16 md:py-24 {% if background == "muted" %}bg-muted text-foreground{% elif background == "card" %}bg-card text-card-foreground{% else %}bg-background text-foreground{% endif %}{% if class %} {{ class }}{% endif %}">
<div class="mx-auto grid max-w-6xl items-center gap-10 px-4 md:grid-cols-2 md:gap-16"> <div class="mx-auto grid max-w-6xl items-center gap-10 px-4 {% if media %}md:grid-cols-2{% endif %} md:gap-16">
<div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %}"> <div class="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %} {% if not media %}max-w-3xl{% endif %}">
{% if eyebrow %}<div class="mb-3 flex items-center gap-4"><span class="noir-rule w-12"></span><p class="noir-label" style="color:hsl(var(--primary));">{{ eyebrow }}</p></div>{% endif %} {% if eyebrow %}<div class="mb-3 flex items-center gap-4"><span class="noir-rule w-12"></span><p class="noir-label" style="color:hsl(var(--primary));">{{ eyebrow }}</p></div>{% endif %}
{% if heading %}<h2 class="noir-heading mt-2 text-3xl md:text-4xl" style="color:hsl(var(--foreground));">{{ heading }}</h2>{% endif %} {% if heading %}<h2 class="noir-heading mt-2 text-3xl md:text-4xl" style="color:hsl(var(--foreground));">{{ heading }}</h2>{% endif %}
{% if body %}<div class="noir-body mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground">{{ body|safe }}</div>{% endif %} {% if body %}<div class="noir-body mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground">{{ body|safe }}</div>{% endif %}
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="noir-btn noir-btn-solid mt-6 inline-flex items-center gap-2">{{ ctaLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %} {% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="noir-btn noir-btn-solid mt-6 inline-flex items-center gap-2">{{ ctaLabel }}<svg width="16" height="16" class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
</div> </div>
<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}"> {% if media %}<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
{% if media %}<div class="noir-file p-2 overflow-hidden"><div class="overflow-hidden bg-muted grayscale">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div></div>{% endif %} <div class="noir-file p-2 overflow-hidden"><div class="overflow-hidden bg-muted grayscale">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div></div>
</div> </div>{% endif %}
</div> </div>
</section> </section>