Compare commits

...

10 Commits

Author SHA1 Message Date
Alex Dunmow
28754c401d fix: website factory launch run defects (0.5.10)
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 19:11:51 +08:00
Alex Dunmow
95eaf1e17e fix: website factory launch run defects (0.5.9)
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:47 +08:00
Alex Dunmow
5ca790ea74 fix: website factory render pass polish (0.5.8)
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:12 +08:00
Alex Dunmow
e6b4e64bbc bump to 0.5.8 2026-11-20 06:34:03 +08:00
Alex Dunmow
432af5c17d bump to 0.5.7 2026-11-20 06:05:02 +08:00
Alex Dunmow
06d0456e55 bump to 0.5.6 2026-11-20 05:33:11 +08:00
Alex Dunmow
10f5ee3bab fix: render whole sections for factory-compiled sites (0.5.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:59:04 +08:00
Alex Dunmow
aad53a8819 fix: render whole sections for factory-compiled sites (0.5.4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:51:07 +08:00
Alex Dunmow
d8c2c0f816 fix: render whole sections for factory-compiled sites (0.5.3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:18:23 +08:00
Alex Dunmow
30ef0dabf2 fix: render whole sections for factory-compiled sites (0.5.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:51:51 +08:00
15 changed files with 170 additions and 25 deletions

View File

@ -0,0 +1,18 @@
# Compiled sites render whole sections on art-deco
Decided 2026-11-20 for art-deco 0.5.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.
## Consequences
- art-deco 0.5.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: art-deco, 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 art-deco
Decided 2026-11-20 for art-deco 0.5.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 marquee master placed the navbar in the landing template's `marquee` slot, which the full-width template does not render, so every full-width page had no header.
## Consequences
- art-deco 0.5.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: art-deco, 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 @@
# The light hero scrim meets contrast on art-deco
Decided 2026-11-20 for art-deco 0.5.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 "light" hero scrim is the theme background at 82% opacity, set with an inline style. At 60% the muted subheadline measured 2.2:1 against a real photo in the render review, under the AA minimum; the inline style also keeps the scrim independent of which opacity classes the generated stylesheet holds.
## Consequences
- art-deco 0.5.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: art-deco, 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 over a photo uses the foreground colour on art-deco
Decided 2026-11-20 for art-deco 0.5.5, 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
- Over a photo the hero's eyebrow, subheadline and secondary link use the foreground colour. On the light scrim the gold link measured 2:1 and the muted italic subheadline 4.2:1, under the AA minimum.
## Consequences
- art-deco 0.5.5 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: art-deco, 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,21 @@
# The hero scrim lets the photo show, and the footer logo sits on a plate
Decided 2026-11-20 for art-deco 0.5.8, 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 text over images and every button against what is behind it.
## Decision
- The light hero scrim is a radial gradient of the theme background centred on the hero text (at 35% across for the left-aligned hero): 84% at the centre, 80% out to 55% of the radius and 40% at the corners. The flat 82% scrim of the last release met contrast but washed the photo out; the text keeps the same backing while the photo reads at the edges. The render harness measures every text element over the photo (orchestrator WO-096).
- An image logo in the footer sits on a plate of the theme background. The footer is the foreground colour, and a logo drawn for a light page vanished on it.
- 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: champagne-noir dark destructive; emerald-gilt dark destructive; ivory-rose dark destructive; ivory-rose light primary; velvet-onyx dark accent; velvet-onyx dark destructive; velvet-onyx light accent. 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 footer social links set their light colour inline as well as by class. The icon still renders black on the dark footer in the WO-096 render, so its colour comes from the icon itself, outside this template; that stays open.
## Consequences
- art-deco 0.5.8 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes.
Keywords: social icons, presets, AA, button contrast, primaryForeground, accentForeground, art-deco, hero, overlayColor, scrim, radial-gradient, contrast, footer, logo, logo plate, WO-096, website factory, render pass

View File

@ -0,0 +1,21 @@
# The centred footer shows the contact details, the eyebrow lines up and a long word fits the hero
Decided 2026-11-22 for art-deco 0.5.9, 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
- The centred footer layout shows the address, email and phone as the column layout does. Both art-deco master footers are centred, so a site's contact details, which the factory binds from the site settings, never appeared (The Gilded Brow, The Lantern Room).
- Footer icons draw in the link colour (`fill: currentColor`). The icon sprites carry no fill, so the social icon rendered black on the near-black footer, the item ADR 0005 left open.
- A left-aligned hero eyebrow has no leading rule. The rule before the eyebrow text pushed it about 16 pixels right of the headline on the split and left-aligned heroes; the centred hero keeps a rule on each side.
- A hero headline with a word of nine letters or more takes a smaller size (`deco-word-9`, `deco-word-12`, set per word in the template; the longest word wins), and `overflow-wrap: anywhere` breaks a word that is longer still. With its 0.18em tracking, "NEIGHBOURHOOD" ran off the right edge at 390 pixels and out of the split hero's half column at 1280 in the long-headline render. A headline of shorter words keeps its size.
## Consequences
- art-deco 0.5.9 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.5.9 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: footer, centered, contact details, address, email, phone, _site_bindings, social icon, fill currentColor, eyebrow, kicker, deco-rule, long headline, deco-word-9, deco-word-12, overflow-wrap, WO-101, website factory, launch runs, art-deco

View File

@ -0,0 +1,18 @@
# A long business name fits the navbar
Decided 2026-11-22 for art-deco 0.5.10, 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 checks that no page is wider than 390 pixels. The professional-services sample business, "Okafor and Lind Accountants", set in the navbar at `text-xl` with the theme's 0.18em capital tracking, ran to 466 pixels and widened every page on a phone; the navbar link could not shrink (`flex-shrink-0`).
## Decision
- A text logo longer than 16 characters lets its link shrink (`min-w-0`) and carries `deco-name-long`, which on a phone sets the name at 1rem with 0.08em tracking and lets it wrap. Shorter names and wider screens are unchanged.
## Consequences
- art-deco 0.5.10 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes. The regression check for sites the factory did not build compared the production release with 0.5.10 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: navbar, logoText, business name, deco-name-long, min-w-0, flex-shrink-0, 390, page width, overflow, WO-101, website factory, render pass, art-deco

View File

@ -130,6 +130,18 @@ css:
@font-face { font-family: 'Cormorant Garamond'; src: url('/templates/art-deco/fonts/cormorant-garamond-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@layer utilities {
/* A hero headline with a long word takes a size at which the word fits, with its wide tracking, on a phone and
in the split hero's half column. Later classes win, so the longest word sets the size. */
h1.deco-word-9 { font-size: clamp(1.75rem, 8vw, 3rem); overflow-wrap: anywhere; }
h1.deco-word-12 { font-size: clamp(1.5rem, 6.5vw, 2.5rem); overflow-wrap: anywhere; }
/* A long business name in the navbar wraps at a smaller size on a phone; at text-xl with wide tracking it pushed
the page past 390 pixels. */
@media (max-width: 640px) { .deco-name-long { font-size: 1rem; letter-spacing: 0.08em; line-height: 1.3; } }
/* Icon sprites draw in the link's colour; with no fill they stay black on the dark footer. */
[data-block-override="art-deco:footer"] a svg { fill: currentColor; }
/* deco-rule — hairline gold rule, 1px ascending to 2px on accent lines. */
.deco-rule {
border: none;

View File

@ -2,7 +2,7 @@
{
"key": "art-deco:default-master",
"title": "Art Deco Default Master",
"page_templates": ["default", "article", "blog-index", "contact"],
"page_templates": ["default", "full-width", "article", "blog-index", "contact"],
"blocks": [
{ "block_key": "navbar", "title": "Gilded Navigation", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "Maison Doré" } }, "slot": "header", "sort_order": 0 },
{ "block_key": "slot", "title": "Main Content", "content": { "slotName": "main", "placeholder": "Page content" }, "slot": "main", "sort_order": 0 },
@ -12,7 +12,7 @@
{
"key": "art-deco:marquee-master",
"title": "Art Deco Marquee Master",
"page_templates": ["landing", "full-width"],
"page_templates": ["landing"],
"blocks": [
{ "block_key": "navbar", "title": "Gilded Navigation", "content": { "menuName": "main", "logoType": "text", "logoText": { "text": "Maison Doré" } }, "slot": "marquee", "sort_order": 0 },
{ "block_key": "slot", "title": "Main Content", "content": { "slotName": "main" }, "slot": "main", "sort_order": 0 },

View File

@ -2,7 +2,7 @@
name = "art-deco"
display_name = "Art Deco"
scope = "@themes"
version = "0.5.1"
version = "0.5.10"
description = "Luxury Art Deco theme with champagne gold gradients, jet black, ivory and geometric fan motifs for hotels, fine dining, weddings and jewellers."
kind = "theme"
categories = ["templates"]

View File

@ -47,7 +47,7 @@
"mutedForeground": "40 12% 62%",
"accent": "36 80% 62%",
"accentForeground": "40 30% 8%",
"destructive": "0 72% 52%",
"destructive": "0 72% 50%",
"destructiveForeground": "40 25% 96%",
"border": "42 30% 22%",
"input": "42 20% 18%",
@ -75,7 +75,7 @@
"popover": "36 35% 99%",
"popoverForeground": "20 15% 14%",
"primary": "18 55% 58%",
"primaryForeground": "36 40% 97%",
"primaryForeground": "0 0% 9%",
"secondary": "30 35% 92%",
"secondaryForeground": "20 15% 14%",
"muted": "30 25% 94%",
@ -103,7 +103,7 @@
"mutedForeground": "25 15% 62%",
"accent": "15 62% 62%",
"accentForeground": "20 20% 8%",
"destructive": "0 72% 52%",
"destructive": "0 72% 48%",
"destructiveForeground": "30 30% 94%",
"border": "20 20% 24%",
"input": "20 18% 20%",
@ -136,7 +136,7 @@
"secondaryForeground": "260 20% 12%",
"muted": "280 12% 93%",
"mutedForeground": "260 12% 40%",
"accent": "320 35% 52%",
"accent": "320 35% 48%",
"accentForeground": "280 20% 96%",
"destructive": "0 70% 45%",
"destructiveForeground": "280 15% 96%",
@ -157,9 +157,9 @@
"secondaryForeground": "42 30% 88%",
"muted": "260 15% 12%",
"mutedForeground": "42 15% 60%",
"accent": "320 35% 55%",
"accent": "320 35% 49%",
"accentForeground": "42 40% 95%",
"destructive": "0 72% 52%",
"destructive": "0 72% 49%",
"destructiveForeground": "42 40% 95%",
"border": "260 20% 22%",
"input": "260 18% 18%",
@ -215,7 +215,7 @@
"mutedForeground": "45 15% 62%",
"accent": "158 45% 45%",
"accentForeground": "162 25% 6%",
"destructive": "0 72% 52%",
"destructive": "0 72% 49%",
"destructiveForeground": "45 35% 95%",
"border": "162 20% 20%",
"input": "162 18% 16%",

View File

@ -2,22 +2,23 @@
{% set fl = layout %}
{% if not fl %}{% if template == "centered" %}{% set fl = "centered" %}{% else %}{% set fl = "columns" %}{% endif %}{% endif %}
{% set fbg = backgroundColor|default:"bg-foreground text-background" %}
{% macro sociallinks(cls) %}{% if social_items %}<div class="flex items-center gap-4 {{ cls }}">{% for s in social_items %}<a href="{{ s.url }}" target="_blank" rel="noopener" title="{{ s.label }}" class="text-background/70 hover:text-primary transition-colors"><span class="sr-only">{{ s.label }}</span>{% if s.icon %}::{{ s.icon }}::{% else %}{{ s.label }}{% endif %}</a>{% endfor %}</div>{% endif %}{% endmacro %}
{% macro sociallinks(cls) %}{% if social_items %}<div class="flex items-center gap-4 {{ cls }}">{% for s in social_items %}<a href="{{ s.url }}" target="_blank" rel="noopener" title="{{ s.label }}" class="text-background/70 hover:text-primary transition-colors" style="color:hsl(var(--background) / 0.7);"><span class="sr-only">{{ s.label }}</span>{% if s.icon %}::{{ s.icon }}::{% else %}{{ s.label }}{% endif %}</a>{% endfor %}</div>{% endif %}{% endmacro %}
{% macro newsletter() %}{% if showNewsletter %}<div class="max-w-sm"><h3 class="deco-caps text-sm text-primary">{{ newsletterTitle|default:"Join the guest list" }}</h3>{% if newsletterDescription %}<p class="mt-1 text-sm italic text-background/70">{{ newsletterDescription }}</p>{% endif %}<div class="mt-3">{% signup_form list=newsletterListSlug|default:"main" source="footer" submit=newsletterButtonText|default:"Subscribe" %}</div></div>{% endif %}{% endmacro %}
{% macro legalbar() %}<div class="mt-10 pt-6 border-t border-[hsl(var(--primary)/0.4)] flex flex-col sm:flex-row items-center justify-between gap-3 text-sm text-background/60"><p>{% if copyright %}&copy; {{ copyright }}{% else %}&copy; {{ companyName }}{% endif %}</p>{% if legal_items %}<nav class="flex flex-wrap items-center gap-x-4 gap-y-1">{% for l in legal_items %}<a href="{{ l.url|default:'#' }}"{% if l.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="hover:text-primary transition-colors">{{ l.label }}</a>{% endfor %}</nav>{% endif %}</div>{% endmacro %}
<footer data-block-override="art-deco:footer" class="w-full border-t-2 border-[hsl(var(--primary))] {{ fbg }} {{ class }}">
<div class="{% if fullWidth %}w-full px-4 sm:px-6 lg:px-8{% else %}max-w-7xl mx-auto px-4 sm:px-6 lg:px-8{% endif %} py-16">
{% if fl == "minimal" %}
<div class="flex flex-col sm:flex-row items-center justify-between gap-6">
<div class="flex items-center gap-3">{% if logo %}<img src="{{ logo }}" alt="{{ companyName }}" class="h-8 w-auto"/>{% elif companyName %}<span class="deco-caps text-lg" style="font-family:var(--font-heading, 'Cinzel', Georgia, serif);">{{ companyName }}</span>{% endif %}{% if tagline %}<span class="text-sm italic text-background/70 hidden sm:inline">{{ tagline }}</span>{% endif %}</div>
<div class="flex items-center gap-3">{% if logo %}<span class="inline-flex rounded-none p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-8 w-auto"/></span>{% elif companyName %}<span class="deco-caps text-lg" style="font-family:var(--font-heading, 'Cinzel', Georgia, serif);">{{ companyName }}</span>{% endif %}{% if tagline %}<span class="text-sm italic text-background/70 hidden sm:inline">{{ tagline }}</span>{% endif %}</div>
{{ sociallinks("") }}
</div>
{{ legalbar() }}
{% elif fl == "centered" %}
<div class="flex flex-col items-center text-center gap-5">
{% if logo %}<img src="{{ logo }}" alt="{{ companyName }}" class="h-10 w-auto"/>{% elif companyName %}<span class="deco-caps text-2xl text-primary" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);">{{ companyName }}</span>{% endif %}
{% if logo %}<span class="inline-flex rounded-none p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-10 w-auto"/></span>{% elif companyName %}<span class="deco-caps text-2xl text-primary" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);">{{ companyName }}</span>{% endif %}
<div class="h-6 w-40 deco-sunburst" aria-hidden="true"></div>
{% if tagline %}<p class="max-w-md text-sm italic text-background/70">{{ tagline }}</p>{% endif %}
{% if address or email or phone %}<address class="not-italic text-sm text-background/70 space-y-1">{% if address %}<div>{{ address }}</div>{% endif %}{% if email %}<div><a href="mailto:{{ email }}" class="hover:text-primary transition-colors">{{ email }}</a></div>{% endif %}{% if phone %}<div><a href="tel:{{ phone }}" class="hover:text-primary transition-colors">{{ phone }}</a></div>{% endif %}</address>{% endif %}
{% if columns %}<nav class="flex flex-wrap items-center justify-center gap-x-6 gap-y-2">{% for col in columns %}{% for item in col.items %}<a href="{{ item.url|default:'#' }}"{% if item.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="deco-caps text-xs text-background/80 hover:text-primary transition-colors">{{ item.label }}</a>{% endfor %}{% endfor %}</nav>{% endif %}
{{ newsletter() }}
{{ sociallinks("justify-center") }}
@ -26,7 +27,7 @@
{% else %}
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8">
<div class="col-span-2 lg:col-span-2">
{% if logo %}<img src="{{ logo }}" alt="{{ companyName }}" class="h-9 w-auto"/>{% elif companyName %}<span class="deco-caps text-xl text-primary" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);">{{ companyName }}</span>{% endif %}
{% if logo %}<span class="inline-flex rounded-none p-2" style="background-color:hsl(var(--background));"><img src="{{ logo }}" alt="{{ companyName }}" class="h-9 w-auto"/></span>{% elif companyName %}<span class="deco-caps text-xl text-primary" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);">{{ companyName }}</span>{% endif %}
{% if tagline %}<p class="mt-3 max-w-xs text-sm italic text-background/70">{{ tagline }}</p>{% endif %}
{% if address or email or phone %}<address class="mt-4 not-italic text-sm text-background/70 space-y-1">{% if address %}<div>{{ address }}</div>{% endif %}{% if email %}<div><a href="mailto:{{ email }}" class="hover:text-primary transition-colors">{{ email }}</a></div>{% endif %}{% if phone %}<div><a href="tel:{{ phone }}" class="hover:text-primary transition-colors">{{ phone }}</a></div>{% endif %}</address>{% endif %}
{{ sociallinks("mt-5") }}

View File

@ -11,13 +11,13 @@
{% set hasImage = backgroundImage %}
{% set showOverlay = hasImage and overlayColor != "none" and overlayColor != "" %}
{% macro herocontent(align) %}
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}"><span class="deco-rule w-10"></span><span class="deco-caps text-xs text-primary">{{ eyebrowText }}</span><span class="deco-rule w-10"></span></div>{% endif %}
{% if headlineText %}<h1 class="deco-caps text-4xl sm:text-5xl lg:text-6xl leading-tight" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ headlineText }}</h1>{% endif %}
{% if subText %}<h2 class="mt-5 text-xl sm:text-2xl italic max-w-2xl{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Cormorant Garamond', Georgia, serif);">{{ subText }}</h2>{% endif %}
{% if eyebrowText %}<div class="mb-5 flex items-center gap-4 {% if align == "center" %}justify-center{% endif %}">{% if align == "center" %}<span class="deco-rule w-10"></span>{% endif %}<span class="deco-caps text-xs text-primary"{% if backgroundImage %} style="color:hsl(var(--foreground));"{% endif %}>{{ eyebrowText }}</span><span class="deco-rule w-10"></span></div>{% endif %}
{% if headlineText %}<h1 class="deco-caps text-4xl sm:text-5xl lg:text-6xl leading-tight{% for w in headlineText|split:" " %}{% if w|length > 11 %} deco-word-12{% elif w|length > 8 %} deco-word-9{% endif %}{% endfor %}" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ headlineText }}</h1>{% endif %}
{% if subText %}<h2 class="mt-5 text-xl sm:text-2xl italic max-w-2xl{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var({% if backgroundImage %}--foreground{% else %}--muted-foreground{% endif %}));font-family:var(--font-body, 'Cormorant Garamond', Georgia, serif);">{{ subText }}</h2>{% endif %}
{% if descText %}<p class="mt-4 max-w-xl leading-relaxed{% if align == "center" %} mx-auto{% endif %}" style="color:hsl(var(--muted-foreground));">{{ 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 and pUrl %}<a href="{{ pUrl }}" class="deco-pill inline-flex items-center justify-center gap-2">{{ pText }}</a>{% endif %}
{% if sText and sUrl %}<a href="{{ sUrl }}" class="deco-link inline-flex items-center justify-center">{{ sText }}</a>{% endif %}
{% if sText and sUrl %}<a href="{{ sUrl }}" class="deco-link inline-flex items-center justify-center"{% if backgroundImage %} style="color:hsl(var(--foreground));"{% endif %}>{{ sText }}</a>{% endif %}
</div>{% endif %}
{% if trustLogos %}<div class="mt-10">
<p class="deco-caps text-xs text-muted-foreground mb-3">Acclaim</p>
@ -33,7 +33,7 @@
{% set align = "center" %}
{% if variant == "left-aligned" %}{% set align = "left" %}{% endif %}
<section data-block-override="art-deco:hero" class="hero relative flex flex-col overflow-hidden bg-background text-foreground deco-grain {% if hasImage %}{% if minHeight == "screen" %}min-h-screen{% elif minHeight == "50vh" %}min-h-[50vh]{% elif minHeight == "auto" %}min-h-[400px]{% else %}min-h-[75vh]{% endif %}{% else %}py-16 md:py-24{% 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 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">{% 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="pointer-events-none absolute inset-x-0 top-0 z-[1] h-40 opacity-40 deco-sunburst" aria-hidden="true"></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 %}"><div class="deco-frame bg-transparent px-6 py-10 sm:px-10 sm:py-14">{{ herocontent(align) }}</div></div>
</section>

View File

@ -14,7 +14,7 @@
{% if use_mega %}<div class="absolute left-1/2 -translate-x-1/2 mt-1 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50"><div class="deco-frame p-6 bg-card grid gap-8" style="grid-template-columns:repeat({{ item.children|length|default:1 }},minmax(10rem,1fr));min-width:min(90vw,42rem)">{% for child in item.children %}<div class="space-y-1">{% if child.item_type == "header" %}<div class="deco-caps px-2 py-1 text-[0.65rem] text-primary border-b border-[hsl(var(--primary)/0.3)] mb-2">{{ child.label }}</div>{% else %}<a href="{{ child.url|default:'#' }}"{% if child.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="block px-2 py-2 hover:bg-accent transition-colors {{ child.css_class }}">{% if child.icon %}<span class="mr-1.5 text-primary">::{{ child.icon }}::</span>{% endif %}<span class="text-sm font-medium text-foreground">{{ child.label }}</span>{% if child.description %}<span class="block text-xs text-muted-foreground mt-0.5">{{ child.description }}</span>{% endif %}</a>{% endif %}</div>{% endfor %}</div></div>
{% else %}<div class="absolute left-0 mt-1 w-56 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50"><div class="deco-frame py-2 bg-card">{% for child in item.children %}{% if child.item_type == "header" %}<div class="deco-caps px-4 py-2 text-[0.65rem] text-primary">{{ child.label }}</div>{% else %}<a href="{{ child.url|default:'#' }}"{% if child.open_in_new_tab %} target="_blank" rel="noopener"{% endif %} class="block px-4 py-2 text-sm text-foreground hover:bg-accent transition-colors {{ child.css_class }}">{{ child.label }}</a>{% endif %}{% endfor %}</div></div>{% endif %}
</div>{% endmacro %}
{% macro brand(size) %}<a href="/" class="flex-shrink-0 flex items-center">{% if logoType == "text" and logoText.text %}<span class="deco-caps text-xl {{ logoText.color }}" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ logoText.text }}</span>{% elif logo %}<img src="{{ logo }}" alt="{{ alt|default:companyName }}" class="{{ size }} w-auto"{% if logoMaxWidth or logoMaxHeight %} style="{% if logoMaxWidth %}max-width:{{ logoMaxWidth }};{% endif %}{% if logoMaxHeight %}max-height:{{ logoMaxHeight }};{% endif %}"{% endif %}/>{% elif companyName %}<span class="deco-caps text-xl" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ companyName }}</span>{% endif %}</a>{% endmacro %}
{% macro brand(size) %}<a href="/" class="{% if logoText.text|length > 16 %}min-w-0{% else %}flex-shrink-0{% endif %} flex items-center">{% if logoType == "text" and logoText.text %}<span class="deco-caps text-xl{% if logoText.text|length > 16 %} deco-name-long{% endif %} {{ logoText.color }}" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ logoText.text }}</span>{% elif logo %}<img src="{{ logo }}" alt="{{ alt|default:companyName }}" class="{{ size }} w-auto"{% if logoMaxWidth or logoMaxHeight %} style="{% if logoMaxWidth %}max-width:{{ logoMaxWidth }};{% endif %}{% if logoMaxHeight %}max-height:{{ logoMaxHeight }};{% endif %}"{% endif %}/>{% elif companyName %}<span class="deco-caps text-xl" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif);color:hsl(var(--foreground));">{{ companyName }}</span>{% endif %}</a>{% endmacro %}
{% macro ctabtn(extra) %}{% if cta_text %}<a href="{{ cta_url|default:'#' }}" class="deco-pill inline-flex items-center {{ extra }}">{{ cta_text }}</a>{% endif %}{% endmacro %}
<nav data-block-override="art-deco:navbar" data-bn-navbar data-bn-nav-variant="{{ nv }}" data-bn-sticky="{{ sb }}"{% if is_transparent %} data-bn-transparent="1"{% endif %} class="bn-navbar w-full {% if sb == "sticky" or sb == "shrink-on-scroll" %}sticky top-0 z-40 {% endif %}{% if is_transparent %}absolute top-0 left-0 z-40 text-white{% else %}{{ bg }} border-b border-[hsl(var(--primary)/0.4)]{% endif %} {{ class }}">
{% if showUtilityBar %}<div class="w-full text-xs {% if not showOnMobile %}hidden sm:block{% endif %} bg-foreground text-background"><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between h-8"><div>{{ utilityBarText|safe }}</div><div class="flex items-center gap-4">{% if utilityBarPhone %}<a href="tel:{{ utilityBarPhone }}" class="hover:text-primary transition-colors">{{ utilityBarPhone }}</a>{% endif %}{% if utilityBarEmail %}<a href="mailto:{{ utilityBarEmail }}" class="hover:text-primary transition-colors">{{ utilityBarEmail }}</a>{% endif %}</div></div></div>{% endif %}

View File

@ -1,13 +1,13 @@
<section data-block-override="art-deco: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="{% if mediaPosition == "left" %}md:order-2{% else %}md:order-1{% endif %}">
<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 %} {% if not media %}max-w-3xl{% endif %}">
{% if eyebrow %}<div class="mb-3 flex items-center gap-4"><span class="deco-rule w-12"></span><p class="deco-caps text-xs text-primary">{{ eyebrow }}</p></div>{% endif %}
{% if heading %}<h2 class="deco-caps deco-underline mt-2 text-3xl text-foreground md:text-4xl" style="font-family:var(--font-heading, 'Cinzel', 'Italiana', Georgia, serif)">{{ heading }}</h2>{% endif %}
{% if body %}<div class="mt-4 space-y-4 text-lg text-muted-foreground [&_a]:text-primary [&_a]:underline [&_strong]:text-foreground" style="font-family:var(--font-body, 'Cormorant Garamond', 'Cormorant', Georgia, serif)">{{ body|safe }}</div>{% endif %}
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="deco-pill 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 class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
{% if media %}<div class="deco-step overflow-hidden">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>{% endif %}
</div>
{% if media %}<div class="{% if mediaPosition == "left" %}md:order-1{% else %}md:order-2{% endif %}">
<div class="deco-step overflow-hidden">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>
</div>{% endif %}
</div>
</section>