Files
slump-x-land-studio/templates/chapter-finish.html
T

27 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% load slx_brand %}
<dialog class="chapter-finish" data-chapter-finish aria-labelledby="chapter-finish-title">
<div class="chapter-finish-card">
<form method="dialog"><button class="fan-button chapter-finish-close" aria-label="Close chapter prompt" autofocus>×</button></form>
{% if next_readable and next_cover %}<img class="chapter-finish-cover" src="{{ next_cover.url }}" alt="Cover for {{ next_chapter.title }}" loading="lazy" decoding="async">{% endif %}
<div>
<p class="kicker">Chapter complete</p>
{% if next_readable %}
<h2 id="chapter-finish-title">Read the next chapter?</h2>
<p>#{{ next_chapter.number|stringformat:"03d" }} · {{ next_chapter.title|slx_brand }}</p>
{% elif next_chapter %}
<h2 id="chapter-finish-title">The next chapter is locked</h2>
<p>You’ll need access before you can read it.</p>
{% else %}
<h2 id="chapter-finish-title">You’re caught up</h2>
<p>There’s no next chapter available right now.</p>
{% endif %}
<div class="actions">
{% if next_readable %}<a class="cta" href="{% url 'chapter' next_chapter.number %}">Read now</a>
{% elif next_chapter %}<a class="cta" href="{% url 'chapter' next_chapter.number %}">See access options</a>
{% else %}<a class="cta secondary" href="{% url 'chapters' %}">Chapter archive</a>{% endif %}
<form method="dialog"><button class="fan-button" type="submit">Back to page</button></form>
</div>
</div>
</div>
</dialog>