Remediate broken layout on the demo home page (persona intact): - Hero rendered with no height: it relied on min-h-screen / responsive Tailwind that the host JIT drops on a cold provision. Drive hero sizing + type through compiled .kg-hero* CSS classes (input_css_append is compiled every build). Mascot repositioned to bottom-center behind readable content; confetti/ABC/reduced-motion fallback preserved. All builtin field reads unchanged. - Landing header was position:absolute and overlapped the feature grid when the hero collapsed -> switch to the default's in-flow sticky header (collision gone). - feature-grid columns never formed (lg:grid-cols-3 not compiled) -> route through compiled .kg-cols/.kg-cols-3 media-query grid. - Empty art-wall polaroids ballooned into large blank squares -> graceful 4:3 capped placeholder with a playful crayon wash. - Define .kg-section (was only in the dead assets/style.css, so persona sections had no padding) and add a consistent .kg-sect rhythm; trim oversized section padding. - Alphabet strip now a single scrollable row (was flex-wrap) so the sticky header stays compact on mobile. - Mobile: all layout-critical grids are compiled media-query CSS (mobile-first, 1 col), no fixed widths > viewport, tap targets ok. No .reveal/scroll-hide pattern in this theme; whitespace was real layout void. Colors stay semantic tokens; check-safety 32 checks OK. No version bump. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
2.1 KiB
Plaintext
16 lines
2.1 KiB
Plaintext
{# cta kindergarten override: scanline overlay, heading, kg-pop CTAs. All field reads preserved. #}
|
|
<section class="kg-sect overflow-hidden bg-background text-foreground{% if class %} {{ class }}{% endif %}">
|
|
<div class="relative z-10 mx-auto max-w-6xl px-4">
|
|
<div class="{% if background == "band" %}rounded-2xl bg-primary px-6 py-14 text-center text-primary-foreground md:px-12{% elif background == "card" %}rounded-2xl border border-primary/50 bg-card px-6 py-14 text-center text-card-foreground kg-crayon-shadow md:px-12{% else %}flex flex-col items-center gap-8 rounded-2xl border border-primary/30 bg-muted px-6 py-12 text-foreground md:flex-row md:justify-between md:px-12 md:text-left{% endif %}">
|
|
<div class="{% if background != "split" %}mx-auto max-w-2xl{% endif %}">
|
|
{% if heading %}<h2 class="kg-display text-3xl font-semibold tracking-tight md:text-4xl">{{ heading }}</h2>{% endif %}
|
|
{% if text %}<p class="mt-3 text-lg {% if background == "band" %}text-primary-foreground/80{% else %}text-muted-foreground{% endif %}">{{ text }}</p>{% endif %}
|
|
</div>
|
|
<div class="flex flex-wrap items-center justify-center gap-3 {% if background != "split" %}mt-8{% else %}shrink-0{% endif %}">
|
|
{% if primaryUrl and primaryLabel %}<a href="{{ primaryUrl }}" class="kg-mono kg-pop inline-flex items-center gap-2 rounded-2xl px-6 py-3 font-semibold transition-opacity hover:opacity-90 {% if background == "band" %}bg-background text-foreground{% else %}bg-primary text-primary-foreground{% endif %}">{{ primaryLabel }}<svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
|
{% if secondaryUrl and secondaryLabel %}<a href="{{ secondaryUrl }}" class="kg-mono inline-flex items-center rounded-2xl border px-6 py-3 font-semibold transition-colors {% if background == "band" %}border-primary-foreground/40 text-primary-foreground hover:bg-primary-foreground/10{% else %}border-accent/60 text-accent hover:bg-accent/10{% endif %}">{{ secondaryLabel }}</a>{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|