Layout/whitespace:
- cover_story: fix hero deck ragged one-word-per-line wrap (44px text-deck in
a narrow 3-col rail) via a right-sized inline standfirst; keep proven grid
spans; trim doubled vertical padding.
- card: story titles were rendered by .mb-caps at 0.72rem tracked mono-caps,
reading as cramped tiny strips; restore a real Archivo Black headline size.
- newsletter-signup: replace the twin stray dash artifact (two mb-rule bars)
with a single fluoro accent bar; tighten padding.
- landing: constrain the story river to a cohesive editorial column (mb-river)
instead of full 80rem (killed the dead space beside text-only cards); trim
stacked section padding across lead/river/drop_calendar/lookbook/newsletter.
Empty-media graceful states (demo seed ships no images):
- hero (split): stop rendering the min-h-[320px] bg-muted half-panel when no
backgroundImage; text takes full width instead.
- video-embed: gate the whole aspect frame on url|media (was a full empty box
with a dead play button).
- image: guard the sizing box on src so an absent image collapses.
- logo-strip / hero trustLogos: defensive {% if logo.image %} guards.
Mobile responsiveness (JIT does not reliably scan theme .ninjatpl, so
layout-critical responsive rules are literal manifest CSS, not theme utility
classes):
- text-folio: break-word + lower clamp floor (54px) to prevent horizontal
overflow of giant headlines at ~375px.
- lookbook grid + river column driven by guaranteed .mb-grid-resp/.mb-river.
- stats: drop divide-x (spurious divider on row-wrap on mobile).
Scroll-reveal hardening (.mb-reveal was opacity:0 with the observer script only
in cover_story, so lookbook on /about stayed permanently hidden; .no-js
fallback was dead): default visible, JS opts in to hide-then-reveal, safety-net
full reveal on timeout + window load, reduced-motion/no-JS/no-observer all show.
No version bump. Build + verify + check-safety all exit 0.
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="magazine-bold: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="mb-caps text-center text-3xl text-foreground md:text-4xl" style="font-family:var(--font-heading, 'Archivo Black', 'Arial Black', sans-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, 'Inter', system-ui, sans-serif)">{{ intro }}</p>{% endif %}
|
|
<dl class="mt-12 grid grid-cols-2 gap-8 {% 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="mb-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 %}
|