themes-art-deco/templates/overrides/art-deco/author-bio-hero.ninjatpl
Alex Dunmow f2c8b3643c fix(art-deco): Wave B remediation — drop stray reservation strip + header divider, unbreak hero override, size icon SVGs, richer seed articles + gold-room media
- master_pages: remove orphaned reservation strip (marquee) and header fan divider (default) — the strip stacked under the navbar as a duplicate full-width band
- hero override: eyebrow/headline/sub/desc use |get:"text" so bare-string fields no longer error the whole block to empty (was rendering a dead band above home content)
- divider override: replace ::icon:sm:: shortcode (rendered an unsized <use> SVG that ballooned — the broken About 'tally-mark' divider) with an explicit width/height-sized inline SVG
- SVG geometry guard: explicit width/height on all <use> icon SVGs across overrides (testimonial stars + inherited set)
- seed: expand 3 blog articles to ~9 paragraphs (1926 supper-club voice) so articles fill the viewport; wire gold-room.svg media into the private-dining block
- re-capture 6 gallery shots (home/about/article x light+dark) on a fresh reprovisioned instance

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 15:53:47 +08:00

23 lines
3.0 KiB
Plaintext

{# author-bio-hero (art-deco) — author-page header from the `authors` provider. #}
{% if author %}
<section data-block-override="art-deco:author-bio-hero" class="deco-rule-thick bg-background py-12 text-foreground md:py-16{% if class %} {{ class }}{% endif %}">
<div class="mx-auto flex max-w-3xl flex-col items-center px-4 text-center">
{% if showAvatar and author.avatar_url %}<div class="mb-6 h-24 w-24 overflow-hidden rounded-full bg-muted ring-2 ring-primary">{% img author.avatar_url alt=author.display_name class="h-full w-full object-cover" %}</div>{% endif %}
<div class="mb-4 flex items-center justify-center gap-4"><span class="deco-rule w-12"></span><span class="deco-rule w-12"></span></div>
<h1 class="deco-caps text-3xl md:text-4xl text-foreground" style="font-family:var(--font-heading, &quot;Cinzel&quot;, &quot;Italiana&quot;, Georgia, serif)">{{ author.display_name }}</h1>
{% if author.job_title or author.company %}<p class="deco-caps mt-2 text-sm text-primary">{{ author.job_title }}{% if author.job_title and author.company %} · {% endif %}{{ author.company }}</p>{% endif %}
{% if author.bio %}<p class="mt-5 max-w-2xl leading-relaxed text-muted-foreground" style="font-family:var(--font-body, &quot;Cormorant Garamond&quot;, &quot;Cormorant&quot;, Georgia, serif)">{{ author.bio }}</p>{% endif %}
<div class="mt-6 flex flex-wrap items-center justify-center gap-4 text-sm text-muted-foreground">
{% if showPostCount %}<span>{{ author.post_count|default:0 }} post{% if author.post_count != 1 %}s{% endif %}</span>{% endif %}
{% if author.location %}<span>{{ author.location }}</span>{% endif %}
</div>
{% if showSocial %}<div class="mt-6 flex items-center justify-center gap-4">
{% if author.website_url %}<a href="{{ author.website_url }}" target="_blank" rel="noopener noreferrer" class="text-muted-foreground transition-colors hover:text-primary" title="Website"><svg width="20" height="20" class="h-5 w-5" aria-hidden="true"><use href="/icons/lucide.svg#globe"></use></svg></a>{% endif %}
{% if author.twitter_handle %}<a href="https://twitter.com/{{ author.twitter_handle|cut:"@" }}" target="_blank" rel="noopener noreferrer" class="text-muted-foreground transition-colors hover:text-primary" title="Twitter"><svg width="20" height="20" class="h-5 w-5" aria-hidden="true"><use href="/icons/simple-icons.svg#x"></use></svg></a>{% endif %}
{% if author.linkedin_url %}<a href="{{ author.linkedin_url }}" target="_blank" rel="noopener noreferrer" class="text-muted-foreground transition-colors hover:text-primary" title="LinkedIn"><svg width="20" height="20" class="h-5 w-5" aria-hidden="true"><use href="/icons/simple-icons.svg#linkedin"></use></svg></a>{% endif %}
{% if author.github_url %}<a href="{{ author.github_url }}" target="_blank" rel="noopener noreferrer" class="text-muted-foreground transition-colors hover:text-primary" title="GitHub"><svg width="20" height="20" class="h-5 w-5" aria-hidden="true"><use href="/icons/simple-icons.svg#github"></use></svg></a>{% endif %}
</div>{% endif %}
</div>
</section>
{% endif %}