fix: render whole sections for factory-compiled sites (0.4.3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-11-20 03:18:22 +08:00
parent f2f22f1cf1
commit 21d48fd1f4
9 changed files with 27 additions and 8 deletions

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

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

View File

@ -3,7 +3,7 @@
{{ head_html|safe }} {{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased"> <body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }} {{ 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]"> <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> <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 %} {% 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 }} {{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased"> <body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }} {{ 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> <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> <footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }} {{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }} {{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased"> <body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }} {{ 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> <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> <footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }} {{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }} {{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased"> <body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }} {{ 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> <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> <footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }} {{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }} {{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased"> <body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }} {{ 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> <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> <footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }} {{ body_end_html|safe }}

View File

@ -3,7 +3,7 @@
{{ head_html|safe }} {{ head_html|safe }}
<body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased"> <body class="kg-page kg-dotted-paper min-h-screen flex flex-col antialiased">
{{ admin_banner_html|safe }} {{ 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> <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> <footer class="w-full mt-auto">{{ slots.footer|safe }}</footer>
{{ body_end_html|safe }} {{ body_end_html|safe }}

View File

@ -13,7 +13,7 @@
{% set align = "center" %} {% set align = "center" %}
{% if variant == "left-aligned" or variant == "split" %}{% set align = "left" %}{% endif %} {% 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 %}"> <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: hsl(var(--background) / 0.75);"{% 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"> <div class="kg-hero-inner">
{% if eyebrowText %}<span class="kg-sticker">{{ eyebrowText }}</span>{% endif %} {% 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 %} {% if headlineText %}<h1 class="kg-display kg-hero-title"><span class="kg-crayon-underline">{{ headlineText }}</span></h1>{% endif %}