themes-earthen/blocks/impact_report.ninjatpl
Alex Dunmow 8b8fb4d65d feat(earthen): Wave A theme lane — 49 overrides, 7 templates, seed (WO-TF-016)
Deliver the full conservation-nonprofit theme per OVERRIDE-CONTRACT (Wave A).

- 49 mandatory builtin overrides in templates/overrides/earthen/ (chrome,
  marketing, primitives, commerce, blog family, auth surface, page-suggestions),
  re-skinned from the frozen builtins into botanical/paper-grain chrome with
  all content fields, custom tags, provider vars, HTMX/auth wiring and JS
  preserved verbatim. Stale button/card/image/text/heading overrides fixed to
  the new field contract (link/style/label, media/text via {% img %}).
- 7 page templates: default, full-width, landing, article, blog-index, contact,
  auth.
- Blocks rework: impact_metrics/partner_logos/botanical_divider/footer converted
  to builtin overrides (deleted as theme blocks); donation_cta and field_note
  kept; impact_report added. Persona blocks now 3.
- 5 presets (all 19 tokens; mossbed/sage-morning/ember-loam are dual-mode).
- Bundled Fraunces + Work Sans woff2 (OFL) in assets/fonts/; fonts.json,
  RECOMMENDED_FONTS.md, RECOMMENDED_ICONS.md; required_icon_packs=[lucide].
- Seed: home/about/blog(3 posts)/contact/login as Rootline Trust, contact-form
  formConfig.targetTable=contact_submissions + row_inserted email-admins workflow.
- Themed email-safe wrapper; on-theme master pages; CSS-first botanical motion.

Verified: make (build) exit 0, make archive-check exit 0, check-safety exit 0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 11:13:01 +08:00

15 lines
2.5 KiB
Plaintext

<section data-block="earthen:impact_report"{% if not title and not summary and not outcomes and not period %} data-empty{% endif %} class="earthen-impact-report bg-paper-grain py-16 px-4" style="color: hsl(var(--foreground));">
<div class="earthen-panel earthen-blob-soft mx-auto max-w-4xl p-8 md:p-12">
<div class="mb-8 flex items-start gap-4">
<span class="mt-1 shrink-0" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="40" height="40" data-motif="fern" class="earthen-glyph" style="color: hsl(var(--primary));" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M24 44V8"></path><path d="M24 12c-4-2-7-2-9 0M24 12c4-2 7-2 9 0"></path><path d="M24 18c-6-2-10-1-12 1M24 18c6-2 10-1 12 1"></path><path d="M24 25c-7-1-12 0-14 3M24 25c7-1 12 0 14 3"></path><path d="M24 33c-7 0-11 2-12 5M24 33c7 0 11 2 12 5"></path></svg></span>
<div>
{% if period %}<p class="mb-1 text-xs uppercase tracking-widest" style="color: hsl(var(--accent)); font-family: var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif);">{{ period }}</p>{% endif %}
{% if title %}<h2 class="crayon-underline text-3xl md:text-4xl" style="font-family: var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif); color: hsl(var(--primary));">{{ title }}</h2>{% endif %}
</div>
</div>
{% if summary %}<div class="mb-10 max-w-2xl text-lg leading-relaxed" style="font-family: var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif); color: hsl(var(--foreground));">{{ summary|safe }}</div>{% endif %}
{% if outcomes %}<dl class="divide-y" style="border-color: hsl(var(--border));">{% for o in outcomes %}<div class="flex flex-col gap-1 py-5 sm:flex-row sm:items-baseline sm:gap-6" style="border-color: hsl(var(--border));"><dt class="shrink-0 text-4xl font-semibold sm:w-48" style="font-family: var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif); color: hsl(var(--accent));">{{ o.value }}</dt><dd class="flex-1"><p class="text-base font-semibold" style="color: hsl(var(--foreground));">{{ o.label }}</p>{% if o.detail %}<p class="mt-1 text-sm" style="color: hsl(var(--muted-foreground));">{{ o.detail }}</p>{% endif %}</dd></div>{% endfor %}</dl>{% else %}<p class="text-center" style="color: hsl(var(--muted-foreground));">Add outcomes to show what this season grew.</p>{% endif %}
{% if sourceNote %}<p class="mt-8 text-xs italic" style="color: hsl(var(--muted-foreground));">{{ sourceNote }}</p>{% endif %}
</div>
</section>