AgPerry's picture
Add files using upload-large-folder tool
7f8e190 verified
Raw History Blame Contribute Delete
6.93 kB
{% extends "family_base.html" %}
{% import "_family_ui.html" as fam %}
{# Company page, topic list page and Explore card.
company-google-desktop / tag-array-desktop put a 240px library rail, a
373px identity card and a wide right panel on one row; the mobile captures
stack the same three parts and centre the card. #}
{% block main %}
<div class="lc-shell">
{{ fam.rail(member, rail_active|default('library')) }}
<div class="lc-body">
<div class="lc-collection">
<section class="lc-idcard" aria-labelledby="identity-name">
<div class="lc-idcard__logo" aria-hidden="true">
{% if identity.monogram %}
<svg viewBox="0 0 48 48" width="48" height="48" role="img" aria-hidden="true" focusable="false">
<rect width="48" height="48" rx="10" fill="rgba(0,0,0,0.05)"/>
<text x="24" y="31" text-anchor="middle" font-size="22" font-weight="600" fill="rgba(0,0,0,0.55)">{{ identity.monogram }}</text>
</svg>
{% else %}
<svg viewBox="0 0 48 48" width="48" height="48" role="img" aria-hidden="true" focusable="false">
<g fill="rgba(0,0,0,0.28)">
<rect x="6" y="6" width="9" height="9" rx="2"/><rect x="19.5" y="6" width="9" height="9" rx="2"/><rect x="33" y="6" width="9" height="9" rx="2"/>
<rect x="6" y="19.5" width="9" height="9" rx="2"/><rect x="19.5" y="19.5" width="9" height="9" rx="2"/><rect x="33" y="19.5" width="9" height="9" rx="2"/>
<rect x="6" y="33" width="9" height="9" rx="2"/><rect x="19.5" y="33" width="9" height="9" rx="2"/>
</g>
<rect x="32" y="32" width="12" height="12" rx="3" fill="rgb(118, 75, 232)"/>
</svg>
{% endif %}
</div>
<h1 class="lc-idcard__name" id="identity-name">{{ identity.name }}</h1>
<p class="lc-idcard__meta">{{ identity.meta }}</p>
<p class="lc-idcard__actions">
<a class="lc-btn lc-btn--dark" href="{{ identity.practice_href }}">{{ fam.icon_play() }}Practice</a>
<a class="lc-iconbtn" href="/problem-list/" aria-label="All problem lists">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="m8 2 1.8 3.9 4.2.5-3.1 2.9.8 4.2L8 11.4 4.3 13.5l.8-4.2L2 6.4l4.2-.5Z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>
</a>
<a class="lc-iconbtn" href="{{ identity.share_href }}" aria-label="Open the full problem set">
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="M9 2.5h4.5V7" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.5 2.5 7 9" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/><path d="M12 9.5v3a1 1 0 0 1-1 1H3.5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg>
</a>
</p>
{% if identity.updated %}
<p class="lc-idcard__updated">{{ fam.icon_bolt() }}{{ identity.updated }}</p>
{% endif %}
{% if progress %}
<hr class="lc-idcard__rule">
<p class="lc-progress__title">Progress</p>
<div class="lc-progress__grid">
<p class="lc-progress__ring">
<span class="lc-progress__count"><b>{{ progress.solved }}</b>/{{ progress.total }}</span>
<span class="lc-progress__solved">Solved</span>
<span class="lc-progress__attempting">{{ progress.attempting }} Attempting</span>
</p>
<div class="lc-progress__tiers">
{% for tier in progress.tiers %}
<p class="lc-progress__tier lc-progress__tier--{{ tier.key }}"><b>{{ tier.label }}</b><span>{{ tier.solved }}/{{ tier.total }}</span></p>
{% endfor %}
</div>
</div>
<p class="lc-idcard__foot">{{ progress.note }}</p>
{% endif %}
<hr class="lc-idcard__rule">
<a class="lc-idcard__discuss" href="{{ identity.discuss_href }}">
<span>Discuss</span>{{ fam.icon_arrow_right() }}
</a>
</section>
<section class="lc-panel" aria-label="{{ panel.label }}">
<form class="lc-panel__controls" method="get" action="{{ panel.search_action }}">
<label class="lc-search">
<span class="visually-hidden">Search questions</span>
{{ fam.icon_search() }}
<input type="search" name="q" placeholder="Search questions" value="{{ panel.query|default('') }}" autocomplete="off">
</label>
<button class="lc-chip" type="submit">Search</button>
{% for chip in panel.chips %}
<a class="lc-chip{% if chip.accent %} lc-chip--accent{% endif %}{% if loop.first %} lc-chip--spacer{% endif %}" href="{{ chip.href }}">{{ chip.label }}</a>
{% endfor %}
</form>
{% if panel.claim %}
<p class="lc-claim">
<span>{{ panel.claim.text }}</span>
<span class="lc-claim__spacer"></span>
<a class="lc-claim__button" href="{{ panel.claim.href }}">{{ panel.claim.label }}</a>
</p>
{% endif %}
{% if panel.note %}<p class="lc-note">{{ panel.note }}</p>{% endif %}
{% if panel.rows %}
{{ fam.question_rows(panel.rows) }}
{% else %}
<p class="lc-empty">{{ panel.empty|default("No problem in this clone's 1,000-problem catalogue matches this collection.") }}</p>
{% endif %}
{% if panel.premium %}
<section class="lc-premium-panel" aria-label="Premium">
<svg class="lc-premium-panel__art" viewBox="0 0 200 140" width="200" height="140" role="img" aria-label="Rising bar chart on a plinth">
<path d="M40 130 100 100l60 30-60 8Z" fill="rgb(160, 121, 24)"/>
<path d="M40 118 100 88l60 30-60 12Z" fill="rgb(206, 160, 46)"/>
<rect x="66" y="70" width="26" height="34" rx="3" fill="rgb(253, 212, 122)"/>
<rect x="96" y="52" width="26" height="46" rx="3" fill="rgb(252, 200, 88)"/>
<rect x="126" y="34" width="26" height="58" rx="3" fill="rgb(250, 189, 60)"/>
<path d="M52 46 78 28l14 12 24-24" fill="none" stroke="rgb(250, 189, 60)" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M104 14h18v18" fill="none" stroke="rgb(250, 189, 60)" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<p class="lc-premium-panel__copy">{{ panel.premium.blurb }}</p>
<a class="lc-premium-panel__cta" href="/subscribe/">Subscribe</a>
<a class="lc-premium-panel__more" href="/subscribe/">Learn More</a>
</section>
{% endif %}
</section>
</div>
{{ fam.boundary(boundary) }}
{{ fam.provenance(provenance) }}
</div>
</div>
{% endblock %}