- cover_story: clamp headline to its reserved 8-col track (mb-cover-folio) so it never crosses the deck column or bleeds off-viewport; kicker + CTA stay in frame; deck in a reserved right column; wire duotone cover image. - article template: render the page <h1> exactly once (was never rendered); fix the multi-line ninjatpl comment that failed theme registration. - lookbook + hero + seed: add seed/media (sneakers, editorial-figure, streetwear-look, sneakers-street; studio-portrait avoided) and wire image slots; expand the offcut-method article to ~9 paragraphs. - drop-cap: extra clearance so wrapped lines do not crowd the cap. - SVG geometry guard: add explicit width/height to all icon <use> SVGs and replace icon shortcodes with sized <svg> markup (balloon guard). - refresh gallery screenshots (home/about/article x light+dark, retina). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
33 lines
2.6 KiB
Plaintext
33 lines
2.6 KiB
Plaintext
{# cover_story (magazine-bold) — asymmetric cover: mono folio kicker (top, always in frame), massive condensed headline CLAMPED to its reserved 8-col track so it never crosses the deck or bleeds off-viewport, deck in a reserved right column, duotone cover image, shop/read CTA. Fields: kicker, headline (richtext), deck (richtext), image (media), link, linkLabel. Image via {% img %} (media filter not registered in block render path). MID motion: mb-reveal + duotone hover, reduced-motion safe. #}
|
|
<section data-block="magazine-bold:cover_story" class="w-full overflow-hidden py-10 md:py-14">
|
|
<div class="mx-auto max-w-6xl px-4 sm:px-6">
|
|
{% if kicker %}<div class="mb-caps mb-4 md:mb-6 text-[hsl(var(--accent))]">{{ kicker }}</div>{% endif %}
|
|
<div class="grid grid-cols-1 gap-y-6 gap-x-8 lg:grid-cols-12 lg:items-end">
|
|
<div class="min-w-0 lg:col-span-8"><h1 class="mb-cover-folio text-foreground">{% if headline %}{{ headline|safe }}{% else %}Cover story{% endif %}</h1></div>
|
|
<div class="min-w-0 lg:col-span-4 lg:pb-2">
|
|
{% if deck %}<div class="text-muted-foreground" style="font-family:var(--font-body, 'Inter', system-ui, sans-serif);font-size:clamp(1rem,1.25vw,1.35rem);line-height:1.35;">{{ deck|safe }}</div>{% endif %}
|
|
{% if link %}<div class="mt-6"><a href="{{ link }}" class="mb-button">{{ linkLabel|default:"Read the story" }}</a></div>{% endif %}
|
|
</div>
|
|
</div>
|
|
{% if image %}<div class="mb-reveal mb-duotone mt-8 md:mt-10 aspect-[16/9] w-full overflow-hidden">{% img image alt="" class="h-full w-full object-cover" layout="hero" %}</div>{% endif %}
|
|
</div>
|
|
</section>
|
|
<script>
|
|
(function(){
|
|
if(window.__mbReveal)return;window.__mbReveal=1;
|
|
function run(){
|
|
var reduce=window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
var els=document.querySelectorAll('.mb-reveal');
|
|
if(!els.length)return;
|
|
if(reduce||!('IntersectionObserver' in window)){els.forEach(function(el){el.classList.add('mb-in');});return;}
|
|
els.forEach(function(el){el.classList.add('mb-armed');});
|
|
var io=new IntersectionObserver(function(entries){entries.forEach(function(e){if(e.isIntersecting){e.target.classList.add('mb-in');io.unobserve(e.target);}});},{threshold:0.12,rootMargin:'0px 0px -8% 0px'});
|
|
els.forEach(function(el){io.observe(el);});
|
|
var revealAll=function(){els.forEach(function(el){el.classList.add('mb-in');});};
|
|
setTimeout(revealAll,900);
|
|
window.addEventListener('load',revealAll,{once:true});
|
|
}
|
|
if(document.readyState!='loading')run();else document.addEventListener('DOMContentLoaded',run);
|
|
})();
|
|
</script>
|