31 lines
1.9 KiB
HTML
31 lines
1.9 KiB
HTML
{% load slx_brand %}
|
|
{% if countdown_chapters %}
|
|
<section{% if request.resolver_match.url_name == "home" %} id="map-chapters" tabindex="-1"{% endif %} class="chapter-shelf" data-chapter-shelf aria-labelledby="chapter-shelf-title">
|
|
<div class="chapter-shelf-header">
|
|
<div><p class="kicker">{{ "SLUMP X LAND"|slx_brand }}</p><h2 id="chapter-shelf-title">Latest Chapters</h2></div>
|
|
<div class="chapter-shelf-actions">
|
|
<a href="{% url 'chapters' %}">Chapter archive</a>
|
|
<div class="chapter-shelf-controls" data-shelf-controls hidden>
|
|
<button class="fan-button" type="button" data-shelf-move="-1" aria-controls="chapter-shelf-track" aria-label="Show earlier covers">←</button>
|
|
<button class="fan-button" type="button" data-shelf-move="1" aria-controls="chapter-shelf-track" aria-label="Show more covers">→</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul class="chapter-shelf-track" id="chapter-shelf-track" data-shelf-track>
|
|
{% for chapter in countdown_chapters %}
|
|
<li class="chapter-shelf-slot{% if forloop.first %} shelf-featured{% endif %}">
|
|
<a class="chapter-shelf-card" href="{% url 'chapter' chapter.number %}">
|
|
<span class="chapter-shelf-label"><small>Chapter #{{ chapter.number|stringformat:"03d" }}{% if forloop.first %} · Latest{% endif %}</small><strong>{{ chapter.title|slx_brand }}</strong></span>
|
|
{% if chapter.shelf_cover_url %}
|
|
<img class="chapter-shelf-cover" src="{{ chapter.shelf_cover_url }}" alt="" loading="lazy" decoding="async">
|
|
{% else %}
|
|
<span class="chapter-shelf-cover chapter-shelf-placeholder" aria-hidden="true">SLX<span>#{{ chapter.number|stringformat:"03d" }}</span></span>
|
|
{% endif %}
|
|
{% if forloop.first %}<span class="chapter-shelf-cta" aria-hidden="true">Open chapter <span>→</span></span>{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endif %}
|