Deliver the full Wave A contract for the editorial theme (personal
essayist / independent newsletter persona).
- 49 mandatory builtin overrides in templates/overrides/editorial/,
re-skinned from the frozen builtins: hairline rules, small-caps labels,
drop caps, narrow reading measure, oxblood accent. All content fields,
provider fields, custom tags ({% img %}/{% form %}/{% signup_form %}),
hx wiring, navbar drawer JS and auth/contact form wiring preserved
verbatim; legacy button/card field reads reconciled (link/style/label,
media/text).
- 7 page templates (default, full-width, landing, article, blog-index,
contact, auth); article is the reading centrepiece with drop-cap opener,
marginalia rail and a CSS-only reading-progress underline. All set the
html.dark class and route body font through var(--font-body).
- Block rework: masthead/byline/pullquote/section_label/colophon deleted
(now overrides of navbar/post-metadata/quote/divider/footer). Persona
blocks: dropcap_intro, marginalia, reading_list, field_notes.
- 4 presets, all mode "both", book-paper light + sepia-on-charcoal dark.
- Bundled Playfair Display + Source Serif 4 (OFL, latin subset) in
assets/fonts with license record; fonts.json populated; every
font-family via var(--font-heading|body|mono, fallback).
- Themed email-safe wrapper (tables, inline styles, literal fonts).
- Master pages + seed demo site (home, about, blog with 3 essays,
contact with form + data table + row_inserted email-admins workflow,
login) in essayist voice.
- required_icon_packs=["lucide"]; RECOMMENDED_FONTS/ICONS updated.
Motion tier: CSS-first (progress underline, marginalia fade-in;
prefers-reduced-motion honored). Verified: make + ninja plugin verify +
check-safety all exit 0. Visual quality UNVERIFIED until Wave B.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
49 lines
2.6 KiB
Plaintext
49 lines
2.6 KiB
Plaintext
<section data-block-override="editorial:stats" class="py-16 md:py-24 bg-background text-foreground{% if class %} {{ class }}{% endif %}"{% if countUp %} data-stats{% endif %}>
|
|
<div class="mx-auto max-w-6xl px-4">
|
|
{% if heading %}<h2 class="editorial-caps text-center text-3xl text-foreground md:text-4xl" style="font-family:var(--font-heading, 'Playfair Display', Georgia, serif)">{{ heading }}</h2>{% endif %}
|
|
{% if intro %}<p class="mx-auto mt-4 max-w-2xl text-center text-lg text-muted-foreground" style="font-family:var(--font-body, 'Source Serif 4', 'Source Serif Pro', Georgia, serif)">{{ intro }}</p>{% endif %}
|
|
<dl class="mt-12 grid grid-cols-2 gap-8 divide-x divide-[hsl(var(--border))] {% if columns == 2 %}md:grid-cols-2{% elif columns == 3 %}md:grid-cols-3{% else %}md:grid-cols-4{% endif %}">
|
|
{% for item in items %}
|
|
<div class="px-2 text-center">
|
|
<dd class="text-4xl font-bold tracking-tight text-[hsl(var(--accent))] md:text-5xl" style="font-family:var(--font-heading)">{% if item.prefix %}{{ item.prefix }}{% endif %}<span{% if countUp %} data-countup-value="{{ item.value }}"{% endif %}>{{ item.value }}</span>{% if item.suffix %}{{ item.suffix }}{% endif %}</dd>
|
|
{% if item.label %}<dt class="editorial-caps mt-2 text-xs text-muted-foreground">{{ item.label }}</dt>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
{% if countUp %}<script>
|
|
(function(){
|
|
var sections = document.querySelectorAll('[data-stats]');
|
|
var reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
function animate(section){
|
|
var nodes = section.querySelectorAll('[data-countup-value]');
|
|
nodes.forEach(function(node){
|
|
var raw = node.getAttribute('data-countup-value') || '';
|
|
var target = parseFloat(raw.replace(/[^0-9.\-]/g, ''));
|
|
if (isNaN(target)) return;
|
|
var decimals = (raw.split('.')[1] || '').length;
|
|
var start = null, dur = 1200;
|
|
function step(ts){
|
|
if (start === null) start = ts;
|
|
var p = Math.min((ts - start) / dur, 1);
|
|
var eased = 1 - Math.pow(1 - p, 3);
|
|
node.textContent = (target * eased).toFixed(decimals);
|
|
if (p < 1) requestAnimationFrame(step);
|
|
else node.textContent = target.toFixed(decimals);
|
|
}
|
|
requestAnimationFrame(step);
|
|
});
|
|
}
|
|
sections.forEach(function(section){
|
|
if (reduce || !('IntersectionObserver' in window)) return;
|
|
var io = new IntersectionObserver(function(entries){
|
|
entries.forEach(function(e){
|
|
if (e.isIntersecting){ animate(section); io.disconnect(); }
|
|
});
|
|
}, { threshold: 0.3 });
|
|
io.observe(section);
|
|
});
|
|
})();
|
|
</script>{% endif %}
|