Files
slump-x-land-studio/templates/home.html
T

54 lines
5.9 KiB
HTML

{% extends "base.html" %}{% load slx_community slx_brand static %}
{% block scripts %}{% if homepage_countdown %}<script defer src="{% static 'chapter-shelf.js' %}"></script>{% endif %}{% endblock %}
{% block floating_top %}{% endblock %}
{% block content %}
<main>
{% if countdown_chapters %}
{% include 'countdown-chapter-shelf.html' %}
{% elif chapters %}
<section class="section home-released-chapters" aria-labelledby="home-released-title">
<div class="section-head"><h2 id="home-released-title">Released chapters</h2><a href="{% url 'chapters' %}">View all →</a></div>
{% include "chapter-cards.html" %}
</section>
{% endif %}
{% include 'floating-artwork.html' with band=floating_top_art position='top' only %}
<section class="hero{% if settings.blur_hero %} blurred{% endif %}">
{% if settings.hero_art and not page_backdrop %}<img class="hero-art" src="{{ settings.hero_art.url }}" alt="">{% endif %}
<div class="hero-copy"><p class="kicker">{{ settings.tagline|slx_brand }}</p><h1 class="hero-title">{{ "SLUMP X LAND"|slx_brand }}</h1><p class="credit">{{ settings.credit|slx_brand }}</p>{% if settings.intro %}<p class="intro">{{ settings.intro|slx_brand|linebreaksbr }}</p>{% endif %}
<div class="actions">{% include 'read-manaa.html' %}{% if settings.publisher_url %}<a class="cta secondary" href="{{ settings.publisher_url }}">Read on ONSOL-GO!</a>{% endif %}{% if settings.next_release_at %}<a class="cta secondary" href="{% url 'coming-soon' %}">Upcoming release</a>{% endif %}<a class="cta secondary" href="{% url 'library' %}">{% if following_title %}My SLX library{% else %}Follow <span class="slx-cta-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span>{% endif %}</a></div></div>
</section>
{% if homepage_countdown %}
<section class="homepage-countdown" aria-labelledby="homepage-countdown-heading">
<div class="inline-timer-panel">
<div><p class="kicker">{{ "SLUMP X LAND"|slx_brand }} · COUNTDOWN</p><h2 id="homepage-countdown-heading">{{ settings.homepage_countdown_title|default:"Next release"|slx_brand }}</h2></div>
<div class="homepage-countdown-clock">
<span class="countdown ticker" data-output aria-hidden="true"></span>
<time datetime="{{ settings.homepage_countdown_at|date:'c' }}" data-countdown data-reload-home data-server-now="{{ countdown_now|date:'c' }}">{{ settings.homepage_countdown_at|date:'M j, Y · g:i a T' }}</time>
</div>
{% include 'countdown-progress.html' %}
</div>
{% if settings.homepage_countdown_note %}<div class="countdown-author-inline">{% include 'author-comment.html' with comment=settings.homepage_countdown_note %}</div>{% endif %}
{% include 'countdown-social.html' %}
</section>
{% endif %}
<div class="home-grid"><div class="home-primary">
{% if perms.catalog.watch_slx_live and settings.stream_status != 'offline' and settings.stream_provider %}<section class="section live-announcement"><div class="section-head"><h2>SLX Live</h2><span class="kicker">{{ settings.get_stream_status_display }}</span></div><div class="card"><div><h3>{{ settings.stream_title|default:'Behind the pages, live' }}</h3>{% if settings.stream_starts_at and settings.stream_status == 'upcoming' %}<p><time datetime="{{ settings.stream_starts_at|date:'c' }}">{{ settings.stream_starts_at|date:'M j, Y · g:i a T' }}</time></p>{% endif %}<p><a href="{% url 'stream' %}">Open the watch page →</a></p></div></div></section>{% endif %}
{% if news %}<section class="section"><div class="section-head"><h2>Latest from the blog</h2><a href="{% url 'blog' %}">View all →</a></div>{% include "entry-cards.html" with items=news %}</section>{% endif %}
{% if not countdown_chapters and not chapters %}<section class="section"><div class="section-head"><h2>Chapters</h2><a href="{% url 'chapters' %}">View all →</a></div>{% include "chapter-cards.html" %}</section>{% endif %}
{% if upcoming %}<section class="section"><div class="section-head"><h2>Next up</h2><a href="{% url 'upcoming' %}">Release forecast →</a></div>{% include 'upcoming-cards.html' %}</section>{% endif %}
{% if cast %}<section class="section"><div class="section-head"><h2>Meet the cast</h2><a href="{% url 'entries' 'cast' %}">View all →</a></div>{% include "entry-cards.html" with items=cast %}</section>{% endif %}
{% if world %}<section class="section"><div class="section-head"><h2>World archive</h2><a href="{% url 'entries' 'world' %}">View all →</a></div>{% include "entry-cards.html" with items=world %}</section>{% endif %}
</div>
<aside class="home-reviews" aria-labelledby="home-review-heading">
{% if newsletter_signup_open %}<section class="newsletter-home"><p class="kicker">Studio dispatch</p><h2>Get the next drop</h2><p>SLX chapter launches and studio news in your inbox.</p><a class="cta" href="{% url 'newsletter-signup' %}" data-newsletter-open>Join the newsletter</a></section>{% endif %}
<div class="home-reviews-head"><p class="kicker">Fan corner</p><h2 id="home-review-heading">Recent Reviews</h2><a href="{% url 'slx-series-reviews' %}">Series reviews →</a></div>
{% prime_ranks recent_reviews %}{% for review in recent_reviews %}
<article class="mini-review">
{% if review.chapter.cover %}<img src="{{ review.chapter.cover.url }}" alt="" loading="lazy">{% else %}<span class="mini-review-art" aria-hidden="true">SX</span>{% endif %}
<div><p class="kicker">Chapter #{{ review.chapter.number|stringformat:"03d" }}</p><h3><a href="{% url 'slx-review' review.chapter.number review.pk %}">{% if review.contains_spoilers %}Review with spoilers{% else %}{{ review.headline|slx_brand }}{% endif %}</a></h3><small><a href="{% url 'slx-profile' review.author_id %}">{{ review.author.username }}</a> {% rank_badge review.author %}</small></div>
<span class="review-score" aria-label="{{ review.score }} out of 5">{{ review.score }}/5</span>
</article>
{% empty %}<p class="muted-copy">The first reader reviews will appear here. <a href="{% url 'chapters' %}">Pick a chapter to review →</a></p>{% endfor %}
</aside></div>
</main>{% endblock %}