- Article title no longer rendered twice: seed article pages drop the duplicate level-1 heading block; the article template's page <h1> is the sole title. - Home dead gap resolved: landing sections divided by a hard 4px rule. The CMS wraps each block in its own <div data-block-id>, so the divider adjacency now targets the block wrappers ([data-block-id]+[data-block-id] .bru-section), not the (non-sibling) sections; landing section padding reduced 4rem->3rem. - SVG geometry guard completed: explicit width/height on every <use> icon SVG, including the 5 testimonial star ratings the earlier regex missed (the ">=" in their class conditional). - Seed quality: HARDSET site title hardset; article expanded to ~9 hard-edged paragraphs to kill the below-article void. - Fresh 2880x1800 light+dark captures for home/about/article; preview = home-light. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
23 lines
2.3 KiB
Plaintext
23 lines
2.3 KiB
Plaintext
{# brutalist team override — bordered member slabs. Fields: heading, intro, layout, columns, members[] (photo, name, role, bio, socials[] {url, icon}). Keeps builtin icon split + literal conditional column classes. #}
|
|
<section class="bru-section bg-background text-foreground{% if class %} {{ class }}{% endif %}">
|
|
<div class="bru-wrap">
|
|
{% if heading %}<h2 class="bru-kicker text-center" style="font-size:clamp(1.75rem,4vw,3rem)">{{ heading }}</h2>{% endif %}
|
|
{% if intro %}<p class="mx-auto mt-4 text-center text-lg text-muted-foreground" style="max-width:44rem">{{ intro }}</p>{% endif %}
|
|
<div class="mt-12 {% if layout == "list" %}mx-auto max-w-3xl space-y-6{% elif layout == "single" %}mx-auto max-w-xl{% else %}grid grid-cols-1 gap-6 sm:grid-cols-2 {% if columns == 2 %}lg:grid-cols-2{% elif columns == 4 %}lg:grid-cols-4{% else %}lg:grid-cols-3{% endif %}{% endif %}">
|
|
{% for member in members %}
|
|
<div class="bru-slab bru-shadow-sm p-5 {% if layout == "list" %}flex items-start gap-5{% else %}text-center{% endif %}">
|
|
{% if member.photo %}<span class="{% if layout == "list" %}h-20 w-20{% else %}mx-auto h-28 w-28{% endif %} block shrink-0 overflow-hidden bg-muted" style="border:3px solid hsl(var(--border))">{% img member.photo alt=member.name class="h-full w-full object-cover" %}</span>{% endif %}
|
|
<div class="{% if layout != "list" %}mt-4{% endif %}">
|
|
{% if member.name %}<h3 class="bru-kicker" style="font-size:1.15rem;text-transform:none">{{ member.name }}</h3>{% endif %}
|
|
{% if member.role %}<p class="bru-meta text-accent">{{ member.role }}</p>{% endif %}
|
|
{% if member.bio %}<p class="mt-2 text-sm text-muted-foreground">{{ member.bio }}</p>{% endif %}
|
|
{% if member.socials %}<div class="mt-3 flex gap-3 {% if layout != "list" %}justify-center{% endif %}">
|
|
{% for social in member.socials %}{% if social.url %}<a href="{{ social.url }}" class="text-muted-foreground transition-colors hover:text-accent" aria-label="Social link"><svg width="20" height="20" class="h-5 w-5" aria-hidden="true"><use href="/icons/{{ social.icon|split:":"|first }}.svg#{{ social.icon|split:":"|last }}"></use></svg></a>{% endif %}{% endfor %}
|
|
</div>{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</section>
|