Compare commits

...

10 Commits

Author SHA1 Message Date
Alex Dunmow
338424e8ec fix: website factory launch run defects (0.4.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 18:38:51 +08:00
Alex Dunmow
c096722874 fix: website factory launch run defects (0.4.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:35:04 +08:00
Alex Dunmow
6ff72b8654 fix: website factory launch run defects (0.4.8)
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:49 +08:00
Alex Dunmow
ea179dc34b fix: website factory render pass polish (0.4.7)
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
f941b154ec bump to 0.4.7 2026-11-20 06:05:06 +08:00
Alex Dunmow
2938fdbfa1 bump to 0.4.6 2026-11-20 05:33:12 +08:00
Alex Dunmow
d0b44d962b fix: render whole sections for factory-compiled sites (0.4.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:51:16 +08:00
Alex Dunmow
305f40bcc3 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:41:59 +08:00
Alex Dunmow
21d48fd1f4 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:22 +08:00
Alex Dunmow
f2f22f1cf1 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:52 +08:00
18 changed files with 177 additions and 39 deletions

View File

@ -0,0 +1,18 @@
# Compiled sites render whole sections on kindergarten
Decided 2026-11-20 for kindergarten 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.
## Consequences
- kindergarten 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: kindergarten, 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 @@
# Second render review of compiled sites on kindergarten
Decided 2026-11-20 for kindergarten 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
- The page templates' sticky header is opaque and has no backdrop filter, which made it the containing block of the fixed mobile drawer and widened every page at phone width.
- The hero's scrim follows `overlayColor`: "light" draws the theme background at 75%, so the dark headline stays readable over a photo. The fixed dark scrim made it illegible.
## Consequences
- kindergarten 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: kindergarten, 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 alphabet strip keeps to the viewport on kindergarten
Decided 2026-11-20 for kindergarten 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 alphabet strip keeps to the viewport (`max-width: min(72rem, 100%)`, `min-width: 0`) and scrolls its letters inside itself. At 390 pixels its eight letters made the strip, and so the page, about 540 pixels wide.
## Consequences
- kindergarten 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: kindergarten, 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 kindergarten
Decided 2026-11-20 for kindergarten 0.4.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
- 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
- kindergarten 0.4.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: kindergarten, 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 @@
# The hero scrim lets the photo show
Decided 2026-11-20 for kindergarten 0.4.7, 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).
- 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: bluebird dark destructive; bluebird light accent; bluebird light destructive; bluebird light primary; bubblegum dark destructive; bubblegum light destructive; bubblegum light primary; crayon-box dark destructive; crayon-box dark secondary; crayon-box light destructive; crayon-box light secondary; meadow dark destructive; meadow dark secondary; meadow light destructive; meadow light primary; meadow light secondary; sunny-recess dark destructive; sunny-recess dark primary; sunny-recess light destructive; sunny-recess light primary; sunny-recess light secondary. 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.
## Consequences
- kindergarten 0.4.7 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it.
- No schema field changes.
Keywords: presets, AA, button contrast, primaryForeground, accentForeground, kindergarten, hero, overlayColor, scrim, radial-gradient, contrast, WO-096, website factory, render pass

View File

@ -0,0 +1,18 @@
# The alphabet row fits a phone
Decided 2026-11-22 for kindergarten 0.4.8, 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
- Below 640 pixels the alphabet letters shrink to share the row (`flex: 1 1 0`, square, at least 2.25rem, at most 56px), so the eight letters of the strip fit at 390 pixels. ADR 0003 kept the strip inside the viewport by scrolling it, which showed A to E and half an F with no sign that more followed. A longer row still scrolls. The selectors carry two classes because the legacy `assets/style.css`, loaded after the site stylesheet, still sets the letter size.
## Consequences
- kindergarten 0.4.8 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.8 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: alphabet strip, kg-alphabet-strip, kg-alphabet-letter, 390, phone, overflow, WO-101, website factory, launch runs, kindergarten

View File

@ -0,0 +1,19 @@
# The hero scrim is even on a phone
Decided 2026-11-22 for kindergarten 0.4.9 and amended for 0.4.10, from the website factory's launch runs (orchestrator WO-101, ADR 0092).
## Context
The website factory's compiler now gives every hero the light overlay, so a stock photo the finishing pass places sits under this theme's light scrim (orchestrator ADR 0092). The rebuilt Marrickville Toy Library put a rainbow photo behind the hero: its subheadline measured 4.27 at 390 pixels. The light scrim is a radial gradient that falls to 20% at the corners, and on a phone the text runs to the hero's edges, where the gradient has thinned.
## Decision
- Below 640 pixels the light scrim is an even 84% of the theme background. Wider screens keep the radial gradient of ADR 0005, which keeps the text near the centre.
- Amended for kindergarten 0.4.10: the even scrim is 92%. At 84% the rebuilt Marrickville hero's muted subheadline (5.0:1 on the plain background) still measured 4.29 at 390 pixels over the rainbow's dark bands; at 92% the photo can take at most about a tenth of the contrast.
## Consequences
- kindergarten 0.4.9 and 0.4.10 are published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins 0.4.10.
- 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.10 (orchestrator `docs/works/evidence/WO-101/theme-regression/`).
Keywords: hero, scrim, overlayColor light, kg-hero-overlay, radial-gradient, phone, contrast, WO-101, website factory, launch runs, kindergarten

View File

@ -393,7 +393,9 @@ css:
display: flex;
flex-wrap: nowrap;
gap: 0.6rem;
max-width: 72rem;
max-width: min(72rem, 100%);
min-width: 0;
box-sizing: border-box;
margin-inline: auto;
padding: 0.6rem 1.5rem;
overflow-x: auto;
@ -418,6 +420,13 @@ css:
.kg-alphabet-letter:nth-child(4n+3) { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.kg-alphabet-letter:nth-child(4n+4) { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.kg-alphabet-mono .kg-alphabet-letter { background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
/* On a phone the alphabet letters shrink so a row of eight fits whole (a longer row still scrolls), and the
radial light scrim, which thins towards the edges where a phone's hero text runs, is even. */
@media (max-width: 640px) {
.kg-alphabet-strip.kg-alphabet-strip { gap: 0.4rem; padding-inline: 1rem; }
.kg-hero-overlay[style*="radial-gradient"] { background: hsl(var(--background) / 0.92) !important; }
.kg-alphabet-strip .kg-alphabet-letter { flex: 1 1 0; min-width: 2.25rem; max-width: 56px; width: auto; height: auto; aspect-ratio: 1; font-size: 1.15rem; border-radius: 0.9rem; }
}
.kg-alphabet-primary .kg-alphabet-letter { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
/* Day schedule (persona block). */

View File

@ -2,7 +2,7 @@
name = "kindergarten"
display_name = "Kindergarten"
scope = "@themes"
version = "0.4.1"
version = "0.4.10"
description = "Primary-colored, hand-lettered theme for preschools and daycares — crayon borders, sticker badges, confetti, and a bouncing mascot showpiece."
kind = "theme"
categories = ["templates"]

View File

@ -18,13 +18,13 @@
"popoverForeground": "222 47% 16%",
"primary": "222 80% 54%",
"primaryForeground": "0 0% 100%",
"secondary": "4 78% 57%",
"secondary": "4 78% 50%",
"secondaryForeground": "0 0% 100%",
"muted": "48 40% 93%",
"mutedForeground": "222 20% 40%",
"accent": "45 96% 56%",
"accentForeground": "222 50% 14%",
"destructive": "0 84% 55%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "222 25% 86%",
"input": "48 30% 90%",
@ -40,13 +40,13 @@
"primary": "218 90% 66%",
"primaryForeground": "224 46% 9%",
"secondary": "4 84% 64%",
"secondaryForeground": "0 0% 100%",
"secondaryForeground": "0 0% 9%",
"muted": "224 34% 17%",
"mutedForeground": "220 20% 70%",
"accent": "45 96% 62%",
"accentForeground": "224 46% 9%",
"destructive": "0 84% 62%",
"destructiveForeground": "0 0% 100%",
"destructiveForeground": "0 0% 9%",
"border": "224 32% 22%",
"input": "224 32% 19%",
"ring": "45 96% 62%"
@ -70,19 +70,19 @@
"cardForeground": "20 40% 18%",
"popover": "0 0% 100%",
"popoverForeground": "20 40% 18%",
"primary": "8 82% 56%",
"primary": "8 82% 48%",
"primaryForeground": "0 0% 100%",
"secondary": "205 75% 52%",
"secondary": "205 75% 43%",
"secondaryForeground": "0 0% 100%",
"muted": "40 45% 92%",
"mutedForeground": "20 20% 40%",
"accent": "42 96% 55%",
"accentForeground": "20 45% 16%",
"destructive": "0 84% 55%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "32 35% 85%",
"input": "40 35% 90%",
"ring": "8 82% 56%"
"ring": "8 82% 48%"
},
"darkColors": {
"background": "222 45% 9%",
@ -92,7 +92,7 @@
"popover": "222 40% 13%",
"popoverForeground": "40 60% 95%",
"primary": "10 88% 64%",
"primaryForeground": "0 0% 100%",
"primaryForeground": "0 0% 9%",
"secondary": "205 82% 62%",
"secondaryForeground": "222 45% 9%",
"muted": "222 32% 17%",
@ -100,7 +100,7 @@
"accent": "44 96% 62%",
"accentForeground": "222 45% 9%",
"destructive": "0 84% 62%",
"destructiveForeground": "0 0% 100%",
"destructiveForeground": "0 0% 9%",
"border": "222 30% 22%",
"input": "222 30% 19%",
"ring": "44 96% 62%"
@ -124,19 +124,19 @@
"cardForeground": "218 45% 16%",
"popover": "0 0% 100%",
"popoverForeground": "218 45% 16%",
"primary": "212 84% 52%",
"primary": "212 84% 48%",
"primaryForeground": "0 0% 100%",
"secondary": "45 95% 55%",
"secondaryForeground": "218 50% 14%",
"muted": "205 40% 93%",
"mutedForeground": "218 22% 42%",
"accent": "175 70% 42%",
"accentForeground": "0 0% 100%",
"destructive": "0 84% 55%",
"accentForeground": "0 0% 9%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "210 30% 86%",
"input": "205 30% 90%",
"ring": "212 84% 52%"
"ring": "212 84% 48%"
},
"darkColors": {
"background": "220 48% 9%",
@ -154,7 +154,7 @@
"accent": "172 80% 52%",
"accentForeground": "220 48% 9%",
"destructive": "0 84% 62%",
"destructiveForeground": "0 0% 100%",
"destructiveForeground": "0 0% 9%",
"border": "220 32% 22%",
"input": "220 32% 19%",
"ring": "172 80% 52%"
@ -178,19 +178,19 @@
"cardForeground": "140 35% 15%",
"popover": "0 0% 100%",
"popoverForeground": "140 35% 15%",
"primary": "145 62% 40%",
"primary": "145 62% 32%",
"primaryForeground": "0 0% 100%",
"secondary": "25 88% 55%",
"secondaryForeground": "0 0% 100%",
"secondaryForeground": "0 0% 9%",
"muted": "90 30% 92%",
"mutedForeground": "140 18% 38%",
"accent": "48 95% 55%",
"accentForeground": "140 40% 14%",
"destructive": "0 84% 55%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "110 25% 84%",
"input": "90 25% 89%",
"ring": "145 62% 40%"
"ring": "145 62% 32%"
},
"darkColors": {
"background": "200 40% 9%",
@ -202,13 +202,13 @@
"primary": "145 66% 52%",
"primaryForeground": "200 40% 9%",
"secondary": "25 90% 62%",
"secondaryForeground": "0 0% 100%",
"secondaryForeground": "0 0% 9%",
"muted": "200 30% 17%",
"mutedForeground": "90 20% 70%",
"accent": "48 96% 62%",
"accentForeground": "200 40% 9%",
"destructive": "0 84% 62%",
"destructiveForeground": "0 0% 100%",
"destructiveForeground": "0 0% 9%",
"border": "200 28% 22%",
"input": "200 28% 19%",
"ring": "48 96% 62%"
@ -232,7 +232,7 @@
"cardForeground": "300 35% 18%",
"popover": "0 0% 100%",
"popoverForeground": "300 35% 18%",
"primary": "330 80% 58%",
"primary": "330 80% 49%",
"primaryForeground": "0 0% 100%",
"secondary": "265 70% 60%",
"secondaryForeground": "0 0% 100%",
@ -240,11 +240,11 @@
"mutedForeground": "300 18% 42%",
"accent": "42 95% 56%",
"accentForeground": "300 40% 16%",
"destructive": "0 84% 55%",
"destructive": "0 84% 50%",
"destructiveForeground": "0 0% 100%",
"border": "320 30% 88%",
"input": "330 30% 92%",
"ring": "330 80% 58%"
"ring": "330 80% 49%"
},
"darkColors": {
"background": "285 40% 9%",
@ -262,7 +262,7 @@
"accent": "45 96% 64%",
"accentForeground": "285 40% 9%",
"destructive": "0 84% 62%",
"destructiveForeground": "0 0% 100%",
"destructiveForeground": "0 0% 9%",
"border": "285 28% 23%",
"input": "285 28% 20%",
"ring": "45 96% 64%"

View File

@ -3,7 +3,7 @@
{{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }}
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(6px); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background)); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<main class="flex-grow w-full max-w-5xl mx-auto px-4 py-12 grid gap-10 lg:grid-cols-[1fr_280px]">
<article class="kg-prose prose max-w-none min-w-0">{{ slots.main|safe }}</article>
{% if slots.aside %}<aside class="kg-crayon-shadow rounded-3xl border-[3px] border-primary/30 bg-card text-card-foreground p-6 text-sm h-max">{{ slots.aside|safe }}</aside>{% endif %}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }}
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(6px); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background)); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<main class="flex-grow w-full max-w-6xl mx-auto px-4 py-12">{% if slots.main %}{{ slots.main|safe }}{% else %}<div class="kg-empty">No stories yet — check back soon.</div>{% endif %}</main>
<footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }}
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(6px); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background)); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<main class="flex-grow w-full max-w-5xl mx-auto px-4 py-12">{% if slots.main %}{{ slots.main|safe }}{% else %}<div class="kg-empty">Add a contact form to this page.</div>{% endif %}</main>
<footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }}
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(6px); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background)); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<main class="flex-grow w-full max-w-6xl mx-auto px-4 py-12">{% if slots.main %}{{ slots.main|safe }}{% else %}<div class="kg-empty">No content blocks assigned to this page yet.</div>{% endif %}</main>
<footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }}
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(6px); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background)); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<main class="flex-grow w-full">{% if slots.main %}{{ slots.main|safe }}{% else %}<div class="max-w-6xl mx-auto px-4 py-12"><div class="kg-empty">No content blocks assigned to this page yet.</div></div>{% endif %}</main>
<footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }}
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background) / 0.9); backdrop-filter: blur(6px); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<header class="w-full sticky top-0 z-40" style="background-color: hsl(var(--background)); border-bottom: 3px solid hsl(var(--primary) / 0.25);">{{ slots.header|safe }}</header>
<main class="flex-grow w-full">{% if slots.main %}{{ slots.main|safe }}{% else %}<div class="max-w-6xl mx-auto px-4 py-12"><div class="kg-empty">No content blocks assigned to this page yet.</div></div>{% endif %}</main>
<footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }}

View File

@ -13,7 +13,7 @@
{% set align = "center" %}
{% if variant == "left-aligned" or variant == "split" %}{% set align = "left" %}{% endif %}
<section class="kg-hero {% if align == "center" %}kg-hero--center{% endif %}{% if class %} {{ class }}{% endif %}">
{% if hasImage %}<div class="kg-hero-media">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="kg-hero-overlay"></div>{% endif %}</div>{% else %}<div class="kg-hero-media" aria-hidden="true"><div class="kg-confetti-wrap"><div class="kg-confetti-fallback"></div><canvas class="kg-confetti-canvas"></canvas></div><span class="kg-hero-mascot"><span class="kg-mascot inline-block"><svg viewBox="0 0 200 200" width="150" height="150" role="img" aria-label="Pip the mascot"><circle cx="100" cy="115" r="70" fill="hsl(var(--accent))" stroke="hsl(var(--foreground))" stroke-width="4"></circle><circle cx="78" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="122" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="78" cy="98" r="3" fill="hsl(var(--background))"></circle><circle cx="122" cy="98" r="3" fill="hsl(var(--background))"></circle><path d="M 75 130 Q 100 155 125 130" stroke="hsl(var(--foreground))" stroke-width="5" fill="none" stroke-linecap="round"></path><circle cx="60" cy="115" r="6" fill="hsl(var(--secondary))"></circle><circle cx="140" cy="115" r="6" fill="hsl(var(--secondary))"></circle><path d="M 50 60 L 60 35 L 80 50 Z" fill="hsl(var(--primary))"></path><path d="M 150 60 L 140 35 L 120 50 Z" fill="hsl(var(--primary))"></path></svg></span></span></div>{% endif %}
{% if hasImage %}<div class="kg-hero-media">{% img backgroundImage alt=headlineText class="h-full w-full object-cover" layout="hero" %}{% if showOverlay %}<div class="kg-hero-overlay"{% 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 %}></div>{% endif %}</div>{% else %}<div class="kg-hero-media" aria-hidden="true"><div class="kg-confetti-wrap"><div class="kg-confetti-fallback"></div><canvas class="kg-confetti-canvas"></canvas></div><span class="kg-hero-mascot"><span class="kg-mascot inline-block"><svg viewBox="0 0 200 200" width="150" height="150" role="img" aria-label="Pip the mascot"><circle cx="100" cy="115" r="70" fill="hsl(var(--accent))" stroke="hsl(var(--foreground))" stroke-width="4"></circle><circle cx="78" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="122" cy="100" r="8" fill="hsl(var(--foreground))"></circle><circle cx="78" cy="98" r="3" fill="hsl(var(--background))"></circle><circle cx="122" cy="98" r="3" fill="hsl(var(--background))"></circle><path d="M 75 130 Q 100 155 125 130" stroke="hsl(var(--foreground))" stroke-width="5" fill="none" stroke-linecap="round"></path><circle cx="60" cy="115" r="6" fill="hsl(var(--secondary))"></circle><circle cx="140" cy="115" r="6" fill="hsl(var(--secondary))"></circle><path d="M 50 60 L 60 35 L 80 50 Z" fill="hsl(var(--primary))"></path><path d="M 150 60 L 140 35 L 120 50 Z" fill="hsl(var(--primary))"></path></svg></span></span></div>{% endif %}
<div class="kg-hero-inner">
{% if eyebrowText %}<span class="kg-sticker">{{ eyebrowText }}</span>{% endif %}
{% if headlineText %}<h1 class="kg-display kg-hero-title"><span class="kg-crayon-underline">{{ headlineText }}</span></h1>{% endif %}

View File

@ -1,14 +1,14 @@
{# rich_section kindergarten override: mono eyebrow, heading, HUD-framed media, CTA. Field reads + {% img %} preserved. #}
<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 %}<p class="kg-mono text-xs font-semibold text-accent">{{ eyebrow }}</p>{% endif %}
{% if heading %}<h2 class="kg-display mt-2 text-3xl font-semibold tracking-tight md:text-4xl">{{ 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">{{ body|safe }}</div>{% endif %}
{% if ctaUrl and ctaLabel %}<a href="{{ ctaUrl }}" class="kg-mono kg-pop mt-6 inline-flex items-center gap-2 rounded-full bg-primary px-5 py-3 font-semibold text-primary-foreground transition-opacity hover:opacity-90">{{ ctaLabel }}<svg 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="overflow-hidden rounded-2xl border border-dashed border-primary/50 kg-crayon-shadow">{% 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="overflow-hidden rounded-2xl border border-dashed border-primary/50 kg-crayon-shadow">{% img media alt=mediaAlt class="w-full h-auto object-cover" %}</div>
</div>{% endif %}
</div>
</section>