Configure shop app, admin sidebar, media routing, and Stripe dependencies

This commit is contained in:
zach committed 2026-11-24 00:16:35 +00:00
commit 93d83a0d63
188 files changed
+9220

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
{% extends 'admin/base_site.html' %}
{% block content %}
<p><a href="{{ chapter_url }}">{{ chapter }}</a> · {{ page_count }} saved page{{ page_count|pluralize }}</p>
<p>Get a private editorial score, page-specific feedback, and revision priorities based on the saved artwork. The review is a second opinion; it does not affect public ratings.</p>
{% if stale %}<p><strong>The artwork, reading order, or chapter details have changed since this review.</strong></p>{% endif %}
{% if review.result %}
<article class="traffic-panel">
<h2>{{ review.result.rating }}/10 · Editorial review</h2>
<p>{{ review.updated_at|date:'M j, Y · g:i a' }} · {{ review.model_name }}</p>
<h3>First impression</h3>{{ review.result.summary|linebreaks }}
<h3>What works</h3>{{ review.result.strengths|linebreaks }}
<h3>Revision priorities</h3>{{ review.result.revision_priorities|linebreaks }}
<h3>What the AI could not assess</h3>{{ review.result.limitations|linebreaks }}
</article>
{% endif %}
{% if enabled and page_count %}
<form method="post">
{% csrf_token %}
<p><label><input type="checkbox" name="confirm_send" value="yes" required> Send saved chapter artwork to the configured OpenAI API for this review.</label></p>
<p><button class="studio-button studio-primary" type="submit">Run private review</button> The request may take up to a minute or more. API usage fees may apply.</p>
</form>
{% elif not enabled %}
<p>Set <code>SLX_OPENAI_API_KEY</code> on the server and recreate the web service to enable reviews.</p>
{% else %}<p>Upload the chapter pages first.</p>{% endif %}
{% endblock %}
+20
View File
@@ -0,0 +1,20 @@
{% extends "admin/base.html" %}
{% load static slx_brand %}
{% block title %}{{ title }} · Slump X Land Studio{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" href="{% static 'brand.css' %}"><link rel="stylesheet" href="{% static 'studio-theme.css' %}"><link rel="stylesheet" href="{% static 'studio.css' %}"><link rel="stylesheet" href="{% static 'editorial-desk.css' %}">{% if studio_theme_vars %}<style>:root{ {{ studio_theme_vars }} }</style>{% endif %}{% endblock %}
{% block extrahead %}{{ block.super }}<script defer src="{% static 'studio-art.js' %}"></script>{% endblock %}
{% block branding %}<div id="site-name"><a class="studio-brand" href="{% url 'admin:index' %}"><span class="studio-monogram" aria-hidden="true">SX</span><span>{{ "SLUMP X LAND"|slx_brand }} <small>EDITORIAL STUDIO</small></span></a></div>{% endblock %}
{% block nav-sidebar %}
<nav id="nav-sidebar" class="studio-nav" aria-label="Studio menu">
<div class="studio-nav-inner">
<a class="studio-nav-link{% if request.path == studio_home %} is-current{% endif %}" href="{{ studio_home }}" {% if request.path == studio_home %}aria-current="page"{% endif %}><span aria-hidden="true">⌂</span> Overview</a>
{% for group in studio_groups %}<div class="studio-nav-label">{% if group.name == "SLUMP X LAND" %}<span class="studio-wordmark">{{ group.name|slx_brand }}</span>{% else %}{{ group.name }}{% endif %}</div>{% for link in group.links %}<a class="studio-nav-link{% if link.active %} is-current{% endif %}" href="{{ link.url }}" {% if link.active %}aria-current="page"{% endif %}><span aria-hidden="true">{{ link.icon }}</span> {{ link.title }}</a>{% endfor %}{% endfor %}
{% if perms.catalog.view_trafficdaily %}<a class="studio-nav-link{% if request.resolver_match.url_name == 'traffic' %} is-current{% endif %}" href="{% url 'admin:traffic' %}"><span aria-hidden="true">◉</span> Readership analytics</a>{% endif %}
{% if can_edit_theme %}<a class="studio-nav-link{% if request.resolver_match.url_name == 'public_menu' %} is-current{% endif %}" href="{% url 'admin:public_menu' %}"><span aria-hidden="true">≡</span> Public menu</a>{% endif %}
{% if can_edit_theme %}<a class="studio-nav-link{% if request.resolver_match.url_name == 'site_theme' %} is-current{% endif %}" href="{% url 'admin:site_theme' %}" {% if request.resolver_match.url_name == 'site_theme' %}aria-current="page"{% endif %}><span aria-hidden="true">◈</span> Website &amp; Studio colors</a>{% endif %}
{% if perms.auth.view_user or perms.auth.change_user %}<a class="studio-nav-link" href="{% url 'admin:auth_user_changelist' %}"><span aria-hidden="true">◎</span> Staff accounts</a>{% endif %}
{% if perms.auth.view_group or perms.auth.change_group %}<a class="studio-nav-link" href="{% url 'admin:auth_group_changelist' %}"><span aria-hidden="true">◉</span> Staff groups</a>{% endif %}
<a class="studio-nav-link studio-public-link" href="{% url 'home' %}"><span aria-hidden="true">↗</span> View public site</a>
</div>
</nav>
{% endblock %}
@@ -0,0 +1,35 @@
{% extends 'admin/change_form.html' %}
{% load static %}
{% block extrahead %}{{ block.super }}{% endblock %}
{% block bodyclass %}{{ block.super }} desk-manuscript{% endblock %}
{% block form_top %}
{{ block.super }}
<section class="manuscript-header" aria-label="Manuscript desk">
<span class="desk-eyebrow">SLX Editorial / Manuscript desk</span>
<h2>{% if add %}New chapter{% else %}{{ original.title }}{% endif %}</h2>
<p>{% if not add %}Chapter #{{ original.number|stringformat:'03d' }} · {% endif %}Set the reading order, check your artwork, and prepare the release.</p>
{% if ai_url %}<a class="studio-button" href="{{ ai_url }}">AI reader</a>{% endif %}
{% for inline in inline_admin_formsets %}<a class="studio-button manuscript-jump" href="#{{ inline.formset.prefix }}-group">Go to page uploads ↓</a>{% endfor %}
</section>
{% endblock %}
{% block inline_field_sets %}
{% if inline_admin_formsets %}
<div class="manuscript-guide">
<span class="studio-kicker">03 / PAGE UPLOADS</span>
<h2>Manuscript intake</h2>
{% if bulk_url %}<p><a class="studio-button studio-primary" href="{{ bulk_url }}">Open art organizer</a></p>
{% elif add %}<p>Save the chapter as a draft to unlock bulk uploads.</p>{% endif %}
<p>Still JPG, PNG, and WebP artwork is saved as WebP automatically.</p>
<p>Add each image in reading order. Pick <strong>Double spread</strong> for one wide file, or <strong>Start a new pair</strong> for the first of two separate images.</p>
<p>Drag the thumbnail cards to set reading order. Use the × on an image to remove it, then save the chapter to apply.</p>
<input type="hidden" name="studio_inline_order" value="{{ request.POST.studio_inline_order|default:'' }}">
{% if perms.catalog.add_page %}<div class="studio-inline-drop" data-inline-drop hidden>
<label for="studio-batch-picker">Add several pages here</label>
<input type="file" id="studio-batch-picker" accept="image/jpeg,image/png,image/webp" multiple>
<p data-inline-drop-status role="status"></p>
</div>{% endif %}
<ol class="art-board" data-inline-art {% if perms.catalog.change_page or add and perms.catalog.add_page %}data-can-sort{% endif %} aria-label="Page thumbnails"></ol>
</div>
{% endif %}
{{ block.super }}
{% endblock %}
+30
View File
@@ -0,0 +1,30 @@
{% extends 'admin/base_site.html' %}
{% block content %}
<p><a href="{{ chapter_url }}">{{ chapter }}</a></p>
{% if chapter.cover %}<div class="studio-fixed-cover"><img src="{{ chapter.cover.url }}" alt="Separate chapter cover"><span>Cover · edit in chapter details</span></div>{% endif %}
<section class="traffic-panel"><h2>Saved pages</h2>
{% if pages %}
<p>Drag a thumbnail or use Earlier and Later. Select <strong>Save page changes</strong> to apply. Spread settings stay with their artwork.</p>
<form method="post" data-saved-art>
{% csrf_token %}
<input type="hidden" name="action" value="reorder">
<input type="hidden" name="deleted_pages">
<input type="hidden" name="original_order" value="{% for page in pages %}{{ page.pk }}{% if not forloop.last %},{% endif %}{% endfor %}">
<input type="hidden" name="page_order" value="{% for page in pages %}{{ page.pk }}{% if not forloop.last %},{% endif %}{% endfor %}">
<ol class="art-board" {% if can_reorder %}data-sort-art{% endif %}>
{% for page in pages %}<li data-art-id="{{ page.pk }}"><img src="{{ page.art.url }}" alt="Original page {{ page.number }}" loading="lazy" decoding="async">{% if can_remove %}<button type="button" class="art-remove" data-art-remove aria-label="Remove page {{ page.number }}">×</button><button type="button" class="art-undo" data-art-undo hidden>Undo removal</button>{% endif %}<strong>Page <span data-art-position>{{ forloop.counter }}</span></strong><small>{{ page.get_layout_display }}</small>
{% if can_reorder %}<div data-art-controls hidden><button type="button" data-shift="-1">Earlier</button><button type="button" data-shift="1">Later</button></div>{% endif %}</li>{% endfor %}
</ol>
{% if can_reorder %}<button class="studio-button studio-primary" type="submit">Save page changes</button>{% endif %}
</form>
{% else %}<p>No inside pages yet.</p>{% endif %}
</section>
{% if can_upload %}<section class="traffic-panel art-upload"><h2>Add pages</h2>
<p>Up to 24 JPG, PNG, or WebP images, 48 MB per batch and 12 MB per file. Drag to arrange the files or select × to leave a file out before saving. They will be converted to WebP and appended in this order.</p>
<form method="post" enctype="multipart/form-data" data-staged-art>
{% csrf_token %}{{ form.as_p }}
<ol class="art-board" data-sort-art></ol>
<div class="submit-row"><button class="studio-button studio-primary" type="submit">Convert and add pages</button></div>
</form>
</section>{% endif %}
{% endblock %}
+7
View File
@@ -0,0 +1,7 @@
{% extends "admin/change_form.html" %}
{% block form_top %}
<p>Upload a separate image for each piece of artwork you want to float. You can add several to the same page.</p>
<datalist id="slx-background-pages">
{% for path, label in background_page_choices %}<option value="{{ path }}">{{ label }}</option>{% endfor %}
</datalist>
{% endblock %}
+36
View File
@@ -0,0 +1,36 @@
{% extends 'admin/base_site.html' %}{% load static %}
{% block extrahead %}{{ block.super }}<script defer src="{% static 'editorial-colors.js' %}"></script>{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url 'admin:index' %}">Studio</a> &rsaquo; Homepage Countdown</div>{% endblock %}
{% block content %}
<section class="studio-content-panel studio-timer">
<p>Show the timer beneath your hero or switch to a dedicated cover landing page. Both display your released chapters first. This does not change the separate Coming Soon page or schedule any chapters.</p>
<form method="post" enctype="multipart/form-data">{% csrf_token %}
{{ form.non_field_errors }}
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
{% for field in form.visible_fields %}
{% if field.name == 'homepage_countdown_tint' %}
{{ field.errors }}
<p>{{ field.label_tag }}</p>
<div class="studio-palette-field">{{ field }} <input type="color" data-default="#0c1020" aria-label="Pick the landing background tint" hidden></div>
{% elif field.name == 'homepage_countdown_bar_color' %}
<div class="countdown-setting">
{{ field.errors }}{{ field.label_tag }}
<div class="studio-palette-field">{{ field }} <input type="color" data-default="#4395de" aria-label="Pick the countdown progress bar color" hidden></div>
<p>{{ field.help_text }}</p>
</div>
{% elif field.name|slice:":16" != 'homepage_social_' %}
<div class="countdown-setting">{{ field.as_field_group }}</div>
{% endif %}
{% endfor %}
<fieldset class="studio-social-fields">
<legend>Social links below the author’s comment</legend>
<p>Enter your HTTPS profile links. Only platforms with a saved link will appear.</p>
{{ form.homepage_social_color.errors }}
<p>{{ form.homepage_social_color.label_tag }}</p>
<div class="studio-palette-field">{{ form.homepage_social_color }} <input type="color" data-default="#ffdd00" aria-label="Pick the social icon color" hidden></div>
{% for field in form.social_fields %}<div class="countdown-setting">{{ field.as_field_group }}</div>{% endfor %}
</fieldset>
<div class="studio-actions"><button class="studio-button studio-primary" type="submit">Save countdown</button><a class="studio-button" href="{% url 'admin:index' %}">Cancel</a></div>
</form>
</section>
{% endblock %}
+32
View File
@@ -0,0 +1,32 @@
{% extends "admin/base_site.html" %}
{% load static slx_brand %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" href="{% static 'editorial-login.css' %}">{{ form.media }}{% endblock %}
{% block bodyclass %}desk-login{% endblock %}
{% block usertools %}{% endblock %}
{% block nav-global %}{% endblock %}
{% block nav-sidebar %}{% endblock %}
{% block nav-breadcrumbs %}{% endblock %}
{% block content_title %}{% endblock %}
{% block content %}
<div id="content-main" class="desk-login-wrap">
<section class="desk-login-cover" aria-label="SLX Editorial Studio">
<p class="desk-eyebrow">Internal edition / 01</p>
<p class="desk-login-hero">{{ "SLUMP X LAND"|slx_brand }}<span>.</span></p>
<p class="desk-login-strap">MANAA · EDITORIAL STUDIO</p>
</section>
<section class="desk-login-form" aria-labelledby="desk-login-title">
<p class="desk-eyebrow">SLX Editorial</p>
<h1 id="desk-login-title">Take your seat.</h1>
<p>Sign in to manage chapters, artwork, and releases.</p>
{% for error in form.non_field_errors %}<p class="errornote">{{ error }}</p>{% endfor %}
<form action="{{ app_path }}" method="post" id="login-form">
{% csrf_token %}
<div class="desk-login-input">{{ form.username.label_tag }}{{ form.username.errors }}{{ form.username }}</div>
<div class="desk-login-input">{{ form.password.label_tag }}{{ form.password.errors }}{{ form.password }}</div>
<input type="hidden" name="next" value="{{ next }}">
<button class="studio-button studio-primary" type="submit">Enter Studio <span aria-hidden="true">↗</span></button>
</form>
<a class="desk-login-home" href="{% url 'home' %}">← Public site</a>
</section>
</div>
{% endblock %}
+45
View File
@@ -0,0 +1,45 @@
{% extends 'admin/base_site.html' %}{% load slx_brand %}
{% block content %}
<div class="traffic-filters">
<a href="{% url 'admin:catalog_newslettercampaign_changelist' %}">All campaigns</a>
{% if can_edit %}<a href="{{ edit_url }}">Edit draft</a>{% endif %}
<a href="{{ signup_url }}">Public signup page</a>
</div>
<section class="traffic-panel">
<p class="kicker">SLX Studio Dispatch · Email preview</p>
<h2>{{ campaign.subject }}</h2>
{% if campaign.preheader %}<p><strong>Inbox preview:</strong> {{ campaign.preheader }}</p>{% endif %}
{{ campaign.body|linebreaks }}
{% if campaign.link_url %}<p><a class="studio-button studio-primary" href="{{ campaign.link_url }}">{{ campaign.link_label }}</a></p>{% endif %}
<hr><p><span class="studio-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span><br>{{ address|default:'Set a postal address before sending.'|linebreaksbr }}</p>
<p>Each live email includes a personal unsubscribe link.</p>
</section>
{% if campaign.queued_at %}
<section class="traffic-panel" style="margin-top:1rem">
<h2>Delivery status</h2><p>Queued {{ campaign.queued_at|date:"M j, Y, P" }}. Reload for current totals. SMTP acceptance does not guarantee inbox delivery.</p>
<dl>{% for label, count in progress %}<div><dt>{{ label }}</dt><dd>{{ count }}</dd></div>{% endfor %}</dl>
</section>
{% endif %}
{% if not available %}<p><strong>Sending is offline.</strong> Connect an authenticated SMTP relay and set the verified sender, public site address, and postal address.</p>
{% elif can_send %}
<div class="traffic-grid">
<section class="traffic-panel">
<h2>Send a test</h2><p>Only the test address below receives this copy.</p>
<form method="post">{% csrf_token %}{{ test_form.as_p }}
<button class="studio-button" type="submit" name="action" value="test">Send test email</button>
</form>
</section>
{% if can_edit %}
<section class="traffic-panel">
<h2>Send to subscribers</h2>
<p><strong>{{ recipient_count }}</strong> confirmed subscriber{{ recipient_count|pluralize }} now. The worker checks subscription status again before sending each email.</p>
<form method="post">{% csrf_token %}
<input type="hidden" name="version" value="{{ version }}">
<p><label><input type="checkbox" name="confirm" value="yes" required> I reviewed this issue and want to send it to all confirmed subscribers.</label></p>
<button class="studio-button studio-primary" type="submit" name="action" value="queue"{% if not recipient_count %} disabled{% endif %}>Queue newsletter</button>
</form>
</section>
{% endif %}
</div>
{% endif %}
{% endblock %}
@@ -0,0 +1,6 @@
{% extends "admin/change_list.html" %}
{% block object-tools-items %}
<li><a href="{% url 'admin:catalog_newslettersubscriber_export' %}">Export confirmed CSV</a></li>
<li><a href="{% url 'admin:catalog_newslettersubscriber_export' %}?scope=all" title="Includes pending and unsubscribed addresses. For recordkeeping only.">Export all signups CSV</a></li>
{{ block.super }}
{% endblock %}
+8
View File
@@ -0,0 +1,8 @@
{% extends "admin/change_form.html" %}
{% block form_top %}
{{ block.super }}
<p>Customize this exact page. Other pages keep their current backgrounds.</p>
<datalist id="slx-background-pages">
{% for path, label in background_page_choices %}<option value="{{ path }}">{{ label }}</option>{% endfor %}
</datalist>
{% endblock %}
+8
View File
@@ -0,0 +1,8 @@
{% extends "admin/change_form.html" %}
{% block form_top %}
<p>Set what people see when this page’s link is shared. Your uploaded preview image is public. It does not replace the artwork on the page.</p>
{% if share_page_path %}<p><a href="{{ share_page_path }}" target="_blank" rel="noopener">Open the saved page ↗</a></p>{% endif %}
<datalist id="slx-share-pages">
{% for url, label in share_page_choices %}<option value="{{ url }}">{{ label }}</option>{% endfor %}
</datalist>
{% endblock %}
+8
View File
@@ -0,0 +1,8 @@
{% extends 'admin/base_site.html' %}
{% block content %}
<p>Choose which tabs appear in the website header. Hidden tabs are still available by direct link. The site logo always links home.</p>
<form method="post">
{% csrf_token %}{{ form.as_p }}
<div class="submit-row"><button class="studio-button studio-primary" type="submit">Save public menu</button></div>
</form>
{% endblock %}
+23
View File
@@ -0,0 +1,23 @@
{% extends 'admin/base_site.html' %}{% load static %}
{% block extrahead %}{{ block.super }}<script defer src="{% static 'editorial-colors.js' %}"></script>{% endblock %}
{% block content %}
<p>Set colors for the public site and Studio independently. Blank fields use the SLX brand palette shown in the swatches.</p>
<div class="brand-key" aria-label="SLX brand palette">
<span class="key-navy">Ink navy</span><span class="key-blue">SLUMP blue</span><span class="key-yellow">X yellow</span><span class="key-orange">LAND orange</span>
</div>
<form method="post" id="studio-palette">{% csrf_token %}{{ form.non_field_errors }}
{% for group, fields in form.groups %}
<fieldset class="module aligned"><h2>{{ group }}</h2>
{% if group == "Public site · Author comments" %}<p><button type="button" class="studio-button" data-reference-note-colors hidden>Use reference gold and white</button></p>{% endif %}
<div class="studio-palette-grid">
{% for field, default in fields %}
<div>{{ field.errors }}{{ field.label_tag }}
<div class="studio-palette-field">{{ field }}<input type="color" data-default="{{ default }}" aria-label="Pick {{ field.label|lower }}" hidden></div></div>
{% endfor %}
</div></fieldset>
{% endfor %}
<div class="submit-row"><button class="studio-button studio-primary" type="submit">Save colors</button> <a class="studio-button" href="{% url 'home' %}">View public site</a></div>
</form>
<form method="post" class="palette-reset">{% csrf_token %}<button class="studio-button" name="palette_action" value="reset">Reset all colors to SLX defaults</button><p>Clears saved color overrides for both the public site and Studio.</p>
</form>
{% endblock %}
+39
View File
@@ -0,0 +1,39 @@
{% extends "admin/base_site.html" %}
{% load static slx_brand %}
{% block extrahead %}{{ block.super }}<script defer src="{% static 'countdown.js' %}"></script>{% endblock %}
{% block bodyclass %}studio-index{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content_title %}{% endblock %}
{% block content %}
<main id="content-main" class="studio-main">
<section class="desk-masthead" aria-labelledby="desk-title">
<div class="desk-issue"><span>SLX Editorial</span><span>{{ desk_date|date:"D · M j, Y" }}</span></div>
<div class="desk-cover">
<div class="desk-lead"><span class="desk-eyebrow">Publishing overview</span><h1 id="desk-title">Editor’s Desk</h1><p>Line up your next release. Review the schedule, edit Sol’Terra’s archive, or open a manuscript.</p>
{% if actions %}<div class="studio-actions">{% for action in actions %}<a class="studio-button {% if forloop.first %}studio-primary{% endif %}" href="{{ action.url }}"><span aria-hidden="true">+</span> {{ action.title }}</a>{% endfor %}</div>{% endif %}</div>
<div class="desk-cover-mark" aria-hidden="true"><span>SLX</span><small>MANAA EDITORIAL</small></div>
</div>
<div class="desk-footer"><span>Internal publishing workspace</span><span class="studio-wordmark">{{ "SLUMP X LAND"|slx_brand }} · STUDIO</span></div>
</section>
{% if metrics %}<section class="studio-grid" aria-label="Publishing totals">
{% for item in metrics %}<a class="studio-panel" href="{{ item.url }}"><span class="studio-tile-icon" aria-hidden="true">{{ item.icon }}</span><strong>{{ item.title }}</strong><span class="studio-total">{{ item.live }} <small>live</small></span><span class="studio-meta">{{ item.queued }} scheduled &nbsp;·&nbsp; {{ item.drafts }} drafts <span aria-hidden="true">↗</span></span></a>{% endfor %}
{% if perms.catalog.view_sitesettings or perms.catalog.change_sitesettings or perms.catalog.add_sitesettings %}<a class="studio-panel studio-settings-panel" href="{% url 'admin:catalog_sitesettings_changelist' %}"><span class="studio-tile-icon" aria-hidden="true">◈</span><strong>Site design</strong><span>Update your hero art, background blur, and next release countdown.</span><span class="studio-meta">Open settings <span aria-hidden="true">↗</span></span></a>{% endif %}
</section>{% endif %}
<div class="desk-workgrid">
<section class="studio-content-panel" aria-labelledby="studio-content-heading"><div class="studio-panel-head"><div><span class="studio-kicker">01 / RELEASES</span><h2 id="studio-content-heading">Publishing queue</h2></div><span class="studio-subtle">Chicago time</span></div>
{% for row in recent %}<a class="studio-row" href="{{ row.url }}"><div><strong>{{ row.title }}</strong><small>{{ row.kind }} · {{ row.date|date:"M j, Y · g:i a" }}</small></div><span class="studio-status status-{{ row.status|lower }}">{{ row.status }}</span></a>{% empty %}<p class="studio-empty">Your publishing queue is empty. Add a chapter or editorial entry to get started.</p>{% endfor %}
</section>
{% if homepage_timer or can_edit_timer %}
<section class="studio-content-panel studio-timer" aria-labelledby="studio-timer-heading">
<div class="studio-timer-head"><div><span class="studio-kicker">PUBLIC HOMEPAGE</span><h2 id="studio-timer-heading">Homepage Countdown</h2></div>
{% if can_edit_timer %}<a class="studio-button studio-primary" href="{% url 'admin:homepage_countdown' %}">Edit countdown</a>{% endif %}</div>
{% if homepage_timer.homepage_countdown_at %}
<div class="studio-timer-status"><strong>{{ homepage_timer.homepage_countdown_title|default:"Next release" }}</strong>
<span class="studio-status {% if homepage_timer.homepage_countdown_enabled and timer_active %}status-live{% endif %}">{% if not timer_active %}Ended{% elif homepage_timer.homepage_countdown_enabled %}Visible on homepage{% else %}Hidden · preview only{% endif %}</span></div>
<p><time datetime="{{ homepage_timer.homepage_countdown_at|date:'c' }}" {% if timer_active %}data-countdown{% endif %}>{{ homepage_timer.homepage_countdown_at|date:'M j, Y · g:i a T' }}</time> <span class="studio-timer-digits" data-output aria-hidden="true"></span></p>
{% else %}<p>No timer set. Add a date and time to preview a countdown.</p>{% endif %}
</section>
{% endif %}
</div>
</main>
{% endblock %}
+38
View File
@@ -0,0 +1,38 @@
{% extends 'admin/base_site.html' %}{% load slx_brand %}{% load static %}
{% block extrahead %}{{ block.super }}<script defer src="{% static 'studio-traffic.js' %}"></script>{% endblock %}
{% block content %}
<main class="traffic-desk">
<p>Readership across <span class="studio-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span>. Counts reflect eligible page loads, including repeat visits.</p>
{% if not analytics_enabled %}<p class="messagelist">New collection is disabled. Historical totals remain available.</p>{% endif %}
<form method="get" class="traffic-filters">
<label>Range <select name="days"><option value="7" {% if days == 7 %}selected{% endif %}>7 days</option><option value="30" {% if days == 30 %}selected{% endif %}>30 days</option><option value="90" {% if days == 90 %}selected{% endif %}>90 days</option></select></label>
<label>Content <select name="kind"><option value="all">Entire site</option><option value="chapter" {% if kind == 'chapter' %}selected{% endif %}>Chapter reader</option><option value="blog" {% if kind == 'blog' %}selected{% endif %}>Blog posts</option></select></label>
<button class="studio-button" type="submit">Apply</button></form>
<div class="traffic-totals">
<div><span>Pageviews in selection</span><strong>{{ total }}</strong></div>
<div><span>Chapter reader views</span><strong>{{ chapters }}</strong></div>
<div><span>Blog post views</span><strong>{{ blogs }}</strong></div>
</div>
<section class="traffic-panel" aria-labelledby="traffic-map-heading">
<h2 id="traffic-map-heading">Where readers are</h2>
{% if not geo_configured %}<p>Connect a GeoLite Country database to locate new visits by country. Earlier and unresolved visits appear as Unknown.</p>{% endif %}
<div data-world-map data-map-url="{% static 'world-countries.json' %}"></div>
<p data-map-status aria-live="polite">Select a highlighted country to see its pageviews.</p>
{{ countries|json_script:"country-traffic" }}
<table class="traffic-table"><thead><tr><th scope="col">Country or territory</th><th scope="col">Pageviews</th></tr></thead><tbody>
{% for row in countries %}<tr><td data-country-name="{{ row.country }}">{{ row.country|default:'Unknown' }}</td><td>{{ row.views }}</td></tr>{% empty %}<tr><td colspan="2">No visits in this range yet.</td></tr>{% endfor %}
</tbody></table><small>Map boundaries: Natural Earth. Location is approximate.</small>
</section>
<div class="traffic-grid">
<section class="traffic-panel"><h2>Traffic sources</h2><p>Referring origins only. Direct visits and missing referrers are grouped together.</p>
<table class="traffic-table"><thead><tr><th scope="col">Source</th><th scope="col">Views</th></tr></thead><tbody>
{% for row in sources %}<tr><td>{% if row.source == 'internal' %}SLX site{% elif row.source %}<a href="{{ row.source }}" rel="noreferrer noopener" target="_blank">{{ row.source }}</a>{% else %}Direct / unavailable{% endif %}</td><td>{{ row.views }}</td></tr>{% empty %}<tr><td colspan="2">No sources in this range yet.</td></tr>{% endfor %}
</tbody></table></section>
<section class="traffic-panel"><h2>Most viewed chapters and posts</h2>
<table class="traffic-table"><thead><tr><th scope="col">Title</th><th scope="col">Views</th></tr></thead><tbody>
{% for row in top %}<tr><td>{{ row.title }}</td><td>{{ row.views }}</td></tr>{% empty %}<tr><td colspan="2">No chapter or post views yet.</td></tr>{% endfor %}
</tbody></table></section>
</div>
<section class="traffic-panel"><details><summary>Pageviews by date</summary><table class="traffic-table"><thead><tr><th>Date</th><th>Views</th></tr></thead><tbody>{% for row in series %}<tr><td>{{ row.day|date:'M j, Y' }}</td><td>{{ row.views }}</td></tr>{% empty %}<tr><td colspan="2">No visits yet.</td></tr>{% endfor %}</tbody></table></details></section>
</main>
{% endblock %}
+19
View File
@@ -0,0 +1,19 @@
{% load slx_brand %}
{% if comment %}
{% with author_name=settings.author_comment_name|default:"Receo Thomas Gibson" %}
<figure class="slx-author-note" aria-label="Author comment">
<blockquote class="slx-author-note-copy">{{ comment|slx_brand|linebreaks }}</blockquote>
<figcaption class="slx-author-note-signoff">
{% if settings.author_comment_signature %}
<img class="slx-author-signature" src="{{ settings.author_comment_signature.url }}" alt="{{ author_name }}’s signature" loading="lazy" decoding="async">
{% endif %}
<div class="slx-author-note-identity">
{% if settings.author_comment_avatar %}
<img class="slx-author-avatar" src="{{ settings.author_comment_avatar.url }}" alt="" width="132" height="132" loading="lazy" decoding="async">
{% endif %}
<span class="slx-author-note-name">{{ author_name }}</span>
</div>
</figcaption>
</figure>
{% endwith %}
{% endif %}
+22
View File
@@ -0,0 +1,22 @@
{% load static slx_brand share_meta %}<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><title>{% block title %}SLUMP X LAND · Official{% endblock %}</title>{% share_metadata %}{% block meta %}{% endblock %}<link rel="stylesheet" href="{% static 'brand.css' %}"><link rel="stylesheet" href="{% static 'site.css' %}"><script defer src="{% static 'countdown.js' %}"></script>{% block scripts %}{% endblock %}<link rel="stylesheet" href="{% static 'site-theme.css' %}">{% if floating_top_art or floating_bottom_art %}<script defer src="{% static 'floating-artwork.js' %}"></script>{% endif %}{% if newsletter_popup_form %}<script defer src="{% static 'newsletter-popup.js' %}"></script>{% endif %}</head><body{% if page_backdrop %} class="has-page-background"{% endif %}{% if site_theme_vars or page_backdrop %} style="{{ site_theme_vars }}{% if page_backdrop %};--slx-page-color:{{ page_backdrop.color }};--slx-page-tint:{{ page_tint }}%{% endif %}"{% endif %}>
{% if page_backdrop %}
<div class="slx-page-backdrop" aria-hidden="true">
{% if page_backdrop.art %}<img src="{{ page_backdrop.art.url }}" alt="" decoding="async"><span></span>{% endif %}
</div>
{% endif %}
{% block header %}
<header class="site-header">
<a class="brand" href="{% url 'home' %}">{{ "SLUMP X LAND"|slx_brand }}</a>
<nav aria-label="Main">
{% for tab in public_menu %}
<a href="{{ tab.url }}"{% if tab.active %} aria-current="page"{% endif %}{% if tab.key == 'notices' %} aria-label="{{ tab.label }}{% if fan_unread %} ({{ fan_unread }} unread){% endif %}"{% endif %}>{% if tab.key == 'notices' %}♢{% if fan_unread %} <span class="notice-count">{{ fan_unread }}</span>{% endif %}{% else %}{{ tab.label }}{% endif %}</a>
{% endfor %}
</nav>
</header>
{% endblock %}
{% block floating_top %}{% include 'floating-artwork.html' with band=floating_top_art position='top' only %}{% endblock %}
{% block content %}{% endblock %}
{% include 'floating-artwork.html' with band=floating_bottom_art position='bottom' only %}
{% block footer %}<footer>{{ "SLUMP X LAND"|slx_brand }} <span class="footer-separator">·</span> The official ManaA site{% if newsletter_signup_open %} <span class="footer-separator">·</span> <a href="{% url 'newsletter-signup' %}" data-newsletter-open>Newsletter</a>{% endif %}</footer>{% endblock %}
{% if newsletter_popup_form %}{% include 'newsletter/popup.html' %}{% endif %}
</body></html>
+49
View File
@@ -0,0 +1,49 @@
{% extends 'base.html' %}{% load slx_brand static %}
{% block title %}Shop · SLUMP X LAND{% endblock %}
{% block scripts %}<script defer src="{% static 'shop.js' %}"></script>{% endblock %}
{% block content %}
<main class="section theme-shop product-shop">
<p class="kicker">{{ "SLUMP X LAND"|slx_brand }} · OFFICIAL SHOP</p><h1>Shop</h1>
{% if product_groups %}
<nav class="shop-categories" aria-label="Product categories">
{% for group in product_groups %}<a href="#shop-{{ group.key }}">{{ group.name }}</a>{% endfor %}
</nav>
{% endif %}
{% for group in product_groups %}
<section class="shop-group" aria-labelledby="shop-{{ group.key }}">
<div class="section-head"><h2 id="shop-{{ group.key }}">{{ group.name }}</h2></div>
<div class="shop-grid">
{% for product in group.products %}
<article class="card shop-product" data-product>
<header>
<h3>{{ product.title|slx_brand }}</h3>
{% if product.description %}<p>{{ product.description|slx_brand|linebreaksbr }}</p>{% endif %}
</header>
{% if product.store_variants %}
<label class="shop-variant-label" hidden>
<strong>Choose a format or option</strong>
<select data-variant-picker>
{% for variant in product.store_variants %}<option value="{{ variant.pk }}">{{ variant }}</option>{% endfor %}
</select>
</label>
{% for variant in product.store_variants %}
<section class="shop-option" data-variant-panel="{{ variant.pk }}">
{% include 'shop-image.html' with primary=variant.art fallback=product.cover title=product.title only %}
<p class="shop-format">{{ variant }}{% if variant.price_usd != None %} <span>· ${{ variant.price_usd|floatformat:"2" }}</span>{% endif %}</p>
<a class="cta" href="{{ variant.paypal_url }}">Buy {{ variant.get_format_display }} on PayPal →</a>
</section>
{% endfor %}
{% else %}
<section class="shop-option">
{% include 'shop-image.html' with primary=product.cover title=product.title only %}
{% if product.legacy_checkout %}<a class="cta" href="{{ product.legacy_checkout }}">Buy on PayPal →</a>
{% else %}<p class="shop-format">Currently unavailable</p>{% endif %}
</section>
{% endif %}
</article>
{% endfor %}
</div>
</section>
{% empty %}<p>No products are listed right now.</p>{% endfor %}
</main>
{% endblock %}
+2
View File
@@ -0,0 +1,2 @@
{% load slx_brand %}
<div class="cards">{% for chapter in chapters %}<article class="card chapter-card"><a class="card-main" href="{% url 'chapter' chapter.number %}">{% if chapter.cover %}<img src="{{ chapter.cover.url }}" alt="" loading="lazy">{% endif %}<div><span class="kicker">#{{ chapter.number|stringformat:"03d" }}</span><h3>{{ chapter.title|slx_brand }}</h3><time datetime="{{ chapter.publish_at|date:'c' }}">{{ chapter.publish_at|date:"M j, Y" }}</time> {% if chapter.public_views != None %}{% include "view-eye.html" with views=chapter.public_views %}{% endif %}</div></a><div class="card-foot"><a href="{% url 'chapter-discussion' chapter.number %}#discussion">Fan discussion →</a></div></article>{% empty %}<p>{{ empty_text|default:"Chapters will appear here when they’re published." }}</p>{% endfor %}</div>
+1
View File
@@ -0,0 +1 @@
{% if chapter.cover %}<figure id="chapter-cover" class="reactable-cover chapter-art"><img src="{{ chapter.cover.url }}" alt=""><figcaption>React to the chapter cover{% include 'reaction-strip.html' with group=cover_reactions reaction_for='React to chapter cover art' %}</figcaption></figure>{% endif %}
+2
View File
@@ -0,0 +1,2 @@
{% extends 'base.html' %}{% load slx_brand %}{% block title %}{{ chapter.title }} · Discussion · SLUMP X LAND{% endblock %}
{% block content %}<main class="section article"><p class="kicker">Chapter #{{ chapter.number|stringformat:"03d" }}</p><h1>{{ chapter.title|slx_brand }}</h1>{% if chapter.summary %}<p>{{ chapter.summary|slx_brand }}</p>{% endif %}<a class="cta" href="{% url 'chapter' chapter.number %}">{% if chapter.publisher_url %}Read on ONSOL-GO! ↗{% else %}Read chapter{% endif %}</a>{% include 'chapter-cover.html' %}{% include 'chapter-reviews.html' %}{% include 'fan-section.html' %}</main>{% endblock %}
+26
View File
@@ -0,0 +1,26 @@
{% 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>
+19
View File
@@ -0,0 +1,19 @@
{% extends 'base.html' %}{% load slx_brand %}
{% block title %}{{ chapter.title }} · SLUMP X LAND{% endblock %}
{% block content %}
<main class="section article theme-shop">
<p class="kicker">Chapter {{ chapter.number }} · Paid chapter</p><h1>{{ chapter.title|slx_brand }}</h1>
{% if chapter.cover %}<img class="book-cover" src="{{ chapter.cover.url }}" alt="">{% endif %}
{% if chapter.summary %}<p>{{ chapter.summary|slx_brand }}</p>{% endif %}
<p><strong>${{ chapter.price_usd|floatformat:2 }} USD</strong> · One-time purchase</p>
{% if paypal_ready %}
{% if user.is_authenticated %}
<form method="post" action="{% url 'paypal-start' chapter.number %}">{% csrf_token %}
<button class="cta" type="submit">Continue to PayPal →</button></form>
<p>PayPal will show the payment methods available to you.</p>
{% else %}<a class="cta" href="{% url 'fan-login' %}?next={% url 'chapter' chapter.number %}">Sign in to buy</a>
<p>New to SLX? <a href="{% url 'fan-signup' %}">Create a reader account</a>.</p>{% endif %}
{% else %}<p>Online checkout is currently unavailable.</p>{% endif %}
<p><a href="{% url 'chapter-discussion' chapter.number %}">Fan discussion</a> · <a href="{% url 'chapters' %}">All chapters</a></p>
</main>
{% endblock %}
+6
View File
@@ -0,0 +1,6 @@
<section class="fan-panel" id="chapter-reviews" aria-labelledby="chapter-review-heading">
<div class="section-head"><h2 id="chapter-review-heading">Chapter reviews</h2><span>{{ review_count }} approved</span></div>
{% for message in messages %}{% if 'review-status' in message.tags %}<p class="fan-message" role="status">{{ message }}</p>{% endif %}{% endfor %}
<div class="fan-toolbar"><a class="cta" href="{% url 'slx-review-write' chapter.number %}">Write or edit your review</a>{% if review_count %}<a href="{% url 'slx-reviews' chapter.number %}">All chapter reviews →</a>{% endif %}</div>
{% include 'review-cards.html' with reviews=chapter_reviews %}
<p><a href="{% url 'slx-series-review-write' %}?favorite_chapter={{ chapter.pk }}">Review the series with this chapter as your favorite →</a></p></section>
+49
View File
@@ -0,0 +1,49 @@
{% extends "base.html" %}{% load static slx_brand %}{% block title %}{{ chapter.title }} · SLUMP X LAND{% endblock %}
{% block scripts %}<link rel="stylesheet" href="{% static 'manaa-reader.css' %}"><script defer src="{% static 'manaa-reader.js' %}"></script>{% endblock %}
{% block content %}<main class="section reader manaa-reader">
{% if frames %}
<section class="reading-deck" data-reader data-direction="{{ chapter.reader_direction }}" aria-label="ManaA reader">
<div class="reading-heading"><h1><span class="kicker">#{{ chapter.number|stringformat:"03d" }}</span> {{ chapter.title|slx_brand }}</h1>{% include "view-eye.html" with views=chapter.public_views %}<a href="#discussion">Discussion ↓</a></div>
<div class="reading-tools" data-reader-tools hidden>
<button type="button" class="fan-button reading-fullscreen" data-fullscreen aria-pressed="false">⛶ Fullscreen</button>
<div class="reading-move" aria-label="Page navigation">
<button type="button" class="fan-button" data-step="{% if chapter.reader_direction == 'rtl' %}1{% else %}-1{% endif %}" aria-label="{% if chapter.reader_direction == 'rtl' %}Next pages{% else %}Previous pages{% endif %}">←</button>
<span data-page-output aria-live="polite"></span>
<button type="button" class="fan-button" data-step="{% if chapter.reader_direction == 'rtl' %}-1{% else %}1{% endif %}" aria-label="{% if chapter.reader_direction == 'rtl' %}Previous pages{% else %}Next pages{% endif %}">→</button>
</div>
<label class="reading-view">View <select data-reader-mode>
<option value="double" selected>Double page</option><option value="single">Single page</option><option value="scroll">Scroll</option>
</select></label>
<div class="reading-zoom" aria-label="Zoom controls">
<button type="button" class="fan-button" data-zoom="-1" aria-label="Zoom out">−</button>
<button type="button" class="fan-button" data-zoom="0" aria-label="Reset zoom to fit">Fit</button>
<button type="button" class="fan-button" data-zoom="1" aria-label="Zoom in">+</button>
</div>
</div>
<div class="reading-window" data-reader-window tabindex="0" aria-label="Chapter art. Swipe, drag horizontally, or use the arrow keys to turn fitted pages. Scroll or swipe to explore zoomed artwork.">
<div class="reading-strip">
{% for frame in frames %}
<div class="reading-frame frame-{{ frame.kind }}" data-frame="{{ frame.kind }}">
{% for page in frame.pages %}
<figure data-page data-number="{{ page.number }}" id="page-{{ page.number }}" class="reactable-page">
<img src="{{ page.art.url }}" alt="{% if frame.kind == 'cover' %}Chapter cover{% elif frame.kind == 'spread' %}Double spread, page {{ page.number }}{% else %}Page {{ page.number }}{% endif %}" {% if not forloop.first or not forloop.parentloop.first %}loading="lazy"{% endif %} decoding="async">
<figcaption>{% if frame.kind == 'cover' %}Cover{% elif frame.kind == 'spread' %}Double spread · Page {{ page.number }}{% else %}Page {{ page.number }}{% endif %}
{% include 'reaction-strip.html' with group=page.reactions reaction_for='React to chapter page art' %}</figcaption>
</figure>
{% empty %}
{% include 'chapter-cover.html' %}
{% endfor %}
</div>
{% endfor %}
<div data-reader-end aria-hidden="true"></div>
</div></div>
{% include 'chapter-finish.html' %}
</section>
{% else %}<h1>{{ chapter.title|slx_brand }}</h1>{% include "view-eye.html" with views=chapter.public_views %}<p>No pages have been posted for this chapter yet.</p>{% endif %}
{% if chapter.summary %}<p>{{ chapter.summary|slx_brand }}</p>{% endif %}
<nav class="actions" aria-label="Chapter navigation">
{% if previous_chapter %}<a class="cta secondary" href="{% url 'chapter' previous_chapter.number %}">Previous chapter</a>{% endif %}
<a class="cta secondary" href="{% url 'chapters' %}">Chapter archive</a>
{% if next_chapter %}<a class="cta" href="{% url 'chapter' next_chapter.number %}">Next chapter</a>{% endif %}
</nav>
{% include 'chapter-reviews.html' %}{% include 'fan-section.html' %}</main>{% endblock %}
+1
View File
@@ -0,0 +1 @@
{% extends "base.html" %}{% block title %}Chapters · SLUMP X LAND{% endblock %}{% block content %}<main class="section theme-archive"><h1>Chapters</h1>{% include "chapter-cards.html" %}</main>{% endblock %}
+7
View File
@@ -0,0 +1,7 @@
{% load slx_community %}
<header class="manga-byline">
<span class="avatar-mark" aria-hidden="true">{{ comment.author.username|slice:":1"|upper }}</span>
<strong><a href="{% url 'slx-profile' comment.author_id %}">{{ comment.author.username }}</a></strong>
{% rank_badge comment.author %}
<time datetime="{{ comment.created_at|date:'c' }}">{{ comment.created_at|date:'M j, Y' }}</time>
</header>
+26
View File
@@ -0,0 +1,26 @@
{% extends 'base.html' %}{% load slx_community slx_brand %}
{% block title %}Community · SLUMP X LAND{% endblock %}
{% block content %}
<main class="section theme-account">
<p class="kicker">{{ "SLUMP X LAND"|slx_brand }} · Fan community</p>
<h1>Community</h1>
<p>Read along, leave reviews, and join the discussion. Your highest rank appears beside your name.</p>
{% if user.is_authenticated %}
<p><a href="{% url 'slx-profile' user.pk %}">{{ user.username }}</a> {% rank_badge user %}</p>
{% endif %}
<div class="actions">
{% if not user.is_authenticated %}<a class="cta" href="{% url 'fan-signup' %}">Join as a Djinn</a>{% endif %}
{% if settings.support_url %}<a class="cta{% if not user.is_authenticated %} secondary{% endif %}" href="{{ settings.support_url }}">Membership &amp; support</a>{% endif %}
<a class="cta secondary" href="{% url 'chapters' %}">Read and discuss</a>
</div>
<section class="community-ranks" aria-labelledby="ranks"><div class="section-head"><h2 id="ranks">Community ranks</h2></div>
<div class="cards">
<article class="card"><div><h3><span class="rank-badge rank-djinn">Djinn</span></h3><p>Every registered reader starts here.</p></div></article>
<article class="card"><div><h3><span class="rank-badge rank-scout">Sol-Scout</span></h3><p>Readers with an active, verified subscription.</p></div></article>
<article class="card"><div><h3><span class="rank-badge rank-caster">Sol-Caster</span></h3><p>${{ settings.caster_threshold|floatformat:2 }} in verified support.</p></div></article>
<article class="card"><div><h3><span class="rank-badge rank-striker">Sol-Striker</span></h3><p>${{ settings.striker_threshold|floatformat:2 }} in verified support.</p></div></article>
<article class="card"><div><h3><span class="rank-badge rank-seat">Sol Seat</span></h3><p>{% if settings.seat_threshold %}${{ settings.seat_threshold|floatformat:2 }} in verified support, or designated by Studio.{% else %}Designated by Studio.{% endif %}</p></div></article>
</div>
</section>
</main>
{% endblock %}
+30
View File
@@ -0,0 +1,30 @@
{% load slx_brand %}
{% if countdown_chapters %}
<section 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">Current 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 %}
+40
View File
@@ -0,0 +1,40 @@
{% extends 'base.html' %}
{% load static slx_brand %}
{% block scripts %}<script defer src="{% static 'chapter-shelf.js' %}"></script>{% endblock %}
{% block title %}Coming soon · SLUMP X LAND{% endblock %}
{% block header %}{% endblock %}
{% block footer %}{% endblock %}
{% block floating_top %}{% endblock %}
{% block content %}
<main class="release-landing countdown-showcase">
{% if settings.homepage_countdown_background and not page_backdrop %}
<div class="showcase-background" aria-hidden="true">
<img src="{{ settings.homepage_countdown_background.url }}" alt="" decoding="async">
<div class="showcase-tint" style="background-color:{{ countdown_tint }};opacity:{{ countdown_tint_strength }}%"></div>
</div>
{% endif %}
{% include 'countdown-chapter-shelf.html' %}
{% include 'floating-artwork.html' with band=floating_top_art position='top' only %}
<section class="showcase-release" aria-label="Release countdown">
<div class="release-stage">
<div class="release-hover">
<img class="release-cover" src="{{ settings.homepage_countdown_cover.url }}" alt="Chapter cover">
<div class="release-reflection" aria-hidden="true"><img src="{{ settings.homepage_countdown_cover.url }}" alt=""></div>
</div>
</div>
<div class="release-copy">
<div class="release-timer-panel">
<p class="kicker">{{ "SLUMP X LAND"|slx_brand }} · UPCOMING RELEASE</p>
<h1>{{ settings.homepage_countdown_title|default:"Next release"|slx_brand }}</h1>
<p class="release-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></p>
{% include 'countdown-progress.html' %}
</div>
{% include 'author-comment.html' with comment=settings.homepage_countdown_note %}
{% include 'countdown-social.html' %}
{% if settings.homepage_countdown_cta_url %}<a class="cta release-cta" href="{{ settings.homepage_countdown_cta_url }}">{{ settings.homepage_countdown_cta_label|default:"Join the mailing list" }} →</a>{% elif newsletter_signup_open %}<a class="cta release-cta" href="{% url 'newsletter-signup' %}" data-newsletter-open>Join the newsletter</a>{% endif %}
<div class="actions">{% include 'read-manaa.html' %}</div>
</div>
</section>
</main>
{% endblock %}
+9
View File
@@ -0,0 +1,9 @@
{% if release_progress %}
<div class="release-progress" data-release-progress data-start-at="{{ release_progress.start|date:'c' }}" style="--slx-progress-fill:{{ release_progress.color }}">
<div class="release-progress-labels">
<span id="release-progress-label">Release progress</span>
<span data-progress-remaining>{{ release_progress.remaining }}% left</span>
</div>
<progress class="release-meter" aria-labelledby="release-progress-label" max="100" value="{{ release_progress.elapsed }}">{{ release_progress.elapsed }}%</progress>
</div>
{% endif %}
+28
View File
@@ -0,0 +1,28 @@
{% if settings.homepage_social_instagram or settings.homepage_social_facebook or settings.homepage_social_youtube or settings.homepage_social_tiktok or settings.homepage_social_x or settings.homepage_social_twitch %}
<nav class="countdown-social" aria-label="Social media" style="--countdown-social-color:{{ countdown_social_color }}">
{% if settings.homepage_social_instagram %}
<a href="{{ settings.homepage_social_instagram }}" aria-label="Instagram" title="Instagram">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.5" cy="6.5" r="1.1" fill="currentColor" stroke="none"/></svg>
</a>{% endif %}
{% if settings.homepage_social_facebook %}
<a href="{{ settings.homepage_social_facebook }}" aria-label="Facebook" title="Facebook">
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M14 22v-9h3l.5-3.5H14V7.3c0-1 .3-1.7 1.8-1.7h1.9V2.5c-.9-.1-1.9-.2-2.8-.2-2.9 0-4.9 1.8-4.9 5.1v2.1H7v3.5h3v9z"/></svg>
</a>{% endif %}
{% if settings.homepage_social_youtube %}
<a href="{{ settings.homepage_social_youtube }}" aria-label="YouTube" title="YouTube">
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M5.5 5h13A3.5 3.5 0 0 1 22 8.5v7a3.5 3.5 0 0 1-3.5 3.5h-13A3.5 3.5 0 0 1 2 15.5v-7A3.5 3.5 0 0 1 5.5 5zM10 8.5v7l6-3.5z"/></svg>
</a>{% endif %}
{% if settings.homepage_social_tiktok %}
<a href="{{ settings.homepage_social_tiktok }}" aria-label="TikTok" title="TikTok">
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M14 2h3c.3 2.6 2 4.3 4.5 4.5v3.2A8.3 8.3 0 0 1 17 8v8a6 6 0 1 1-6-6h.8v3.2A2.9 2.9 0 1 0 14 16z"/></svg>
</a>{% endif %}
{% if settings.homepage_social_x %}
<a href="{{ settings.homepage_social_x }}" aria-label="X" title="X">
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M3 3h5.4l5.1 6.9L19.4 3h2.1l-7.1 8.3L22 21h-5.4l-5.5-7.3L4.9 21H2.7l7.4-8.6L3 3zm3 1.7 11.5 14.6H19L7.6 4.7z"/></svg>
</a>{% endif %}
{% if settings.homepage_social_twitch %}
<a href="{{ settings.homepage_social_twitch }}" aria-label="Twitch" title="Twitch">
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M6 2h15v12l-5 5h-4l-3 3H6v-3H3V5l3-3zm1 2v12h4v3l3-3h3l2-2V4H7zm4 3h2v5h-2zm5 0h2v5h-2z"/></svg>
</a>{% endif %}
</nav>
{% endif %}
+2
View File
@@ -0,0 +1,2 @@
{% extends "base.html" %}{% load slx_brand %}{% block title %}{{ title }} · SLUMP X LAND{% endblock %}
{% block content %}<main class="section theme-editorial"><p class="kicker">{{ "SLUMP X LAND"|slx_brand }}</p><h1>{{ title }}</h1>{% if kind == 'news' %}<p>Creator notes, announcements, and a look behind the pages.</p>{% if category %}<p>Filed under <strong>{{ category }}</strong> · <a href="{% url 'blog' %}">All posts</a></p>{% endif %}{% endif %}{% include "entry-cards.html" %}</main>{% endblock %}
+2
View File
@@ -0,0 +1,2 @@
{% load slx_brand %}
<div class="cards">{% for item in items %}<a class="card" href="{{ item.get_absolute_url }}">{% if item.art %}<img src="{{ item.art.url }}" alt="" loading="lazy">{% endif %}<div>{% if item.category %}<span class="kicker">{{ item.category }}</span>{% endif %}<h3>{{ item.title|slx_brand }}</h3>{% if item.summary %}<p>{{ item.summary|slx_brand }}</p>{% endif %}{% if item.kind == 'news' %}<time datetime="{{ item.publish_at|date:'c' }}">{{ item.publish_at|date:"M j, Y" }}</time> {% include "view-eye.html" with views=item.public_views %}{% endif %}</div></a>{% empty %}<p>No entries yet.</p>{% endfor %}</div>
+7
View File
@@ -0,0 +1,7 @@
{% extends "base.html" %}{% load slx_brand %}{% block title %}{{ item.title }} · SLUMP X LAND{% endblock %}
{% block content %}<main class="section theme-editorial article"><p class="kicker">{% if item.kind == 'news' %}{{ item.category|default:'Behind the pages' }}{% else %}{{ item.get_kind_display }}{% endif %}</p><h1>{{ item.title|slx_brand }}</h1>
{% if item.summary %}<p class="intro">{{ item.summary|slx_brand }}</p>{% endif %}
<p class="article-byline">{% if item.byline %}By {{ item.byline }} · {% endif %}<time datetime="{{ item.publish_at|date:'c' }}">{{ item.publish_at|date:"M j, Y" }}</time>{% if item.kind == "news" %} · {% include "view-eye.html" with views=item.public_views %}{% endif %}</p>
{% if item.art %}<figure id="post-cover" class="reactable-cover"><img src="{{ item.art.url }}" alt=""><figcaption>React to the cover{% include 'reaction-strip.html' with group=cover_reactions reaction_for='React to blog cover art' %}</figcaption></figure>{% endif %}<div class="article-copy">{{ item.body|slx_brand|linebreaks }}</div>
{% if item.category and item.kind == 'news' %}<p><a href="{% url 'blog' %}?category={{ item.category|urlencode }}">More from {{ item.category }} →</a></p>{% endif %}
{% include 'fan-section.html' %}</main>{% endblock %}
+11
View File
@@ -0,0 +1,11 @@
{% load slx_brand %}
<article id="comment-{{ comment.pk }}" class="fan-comment manga-comment{% if reply %} fan-reply{% endif %}">
{% include 'comment-byline.html' %}
<div class="manga-balloon"><p>{{ comment.body|slx_brand|linebreaksbr }}</p></div>
<div class="manga-comment-actions">
{% include 'reaction-strip.html' with group=comment.reactions reaction_for='React to comment' %}
{% if user.is_authenticated %}
{% if not reply %}<details class="fan-compose"><summary>Reply</summary><form method="post" action="{% url 'fan-action' fan.target_kind fan.target_id %}">{% csrf_token %}<input type="hidden" name="parent" value="{{ comment.pk }}"><label for="reply-{{ comment.pk }}" class="screen-only">Reply to {{ comment.author.username }}</label><textarea id="reply-{{ comment.pk }}" name="body" rows="3" maxlength="1800" required></textarea><button class="fan-button" name="action" value="comment">Post reply</button></form></details>{% endif %}
{% endif %}
</div>
</article>
+27
View File
@@ -0,0 +1,27 @@
{% load slx_community slx_brand %}<section id="discussion" class="fan-panel" aria-labelledby="fan-heading">
<div class="section-head"><h2 id="fan-heading">Fan discussion</h2><span>{{ "SLUMP X LAND"|slx_brand }}</span></div>
{% for message in messages %}{% if 'review-status' not in message.tags %}<p class="fan-message" role="status">{{ message }}</p>{% endif %}{% endfor %}
{% include 'reaction-strip.html' with group=fan.reactions reaction_for='React to this chapter or post' %}
<div class="fan-toolbar">
{% if user.is_authenticated %}
{% if fan.target_kind == 'chapter' %}
<form method="post" action="{% url 'fan-action' fan.target_kind fan.target_id %}">{% csrf_token %}<button class="fan-button" name="action" value="{% if fan.shelf.saved %}unsave{% else %}save{% endif %}">{% if fan.shelf.saved %}Saved · remove{% else %}Save chapter{% endif %}</button> <button class="fan-button" name="action" value="{% if fan.shelf.favorite %}unfavorite{% else %}favorite{% endif %}" title="Favorites appear on your reader profile">{% if fan.shelf.favorite %}★ Remove favorite{% else %}☆ Favorite publicly{% endif %}</button> <button class="fan-button" name="action" value="{% if fan.shelf.finished %}unfinish{% else %}finish{% endif %}">{% if fan.shelf.finished %}✓ Marked read{% else %}Mark read{% endif %}</button></form>
<form method="post" action="{% url 'fan-action' fan.target_kind fan.target_id %}">{% csrf_token %}<label>Rating <select name="score" aria-label="Rating out of five" required><option value="">—</option>{% for n in '12345' %}<option value="{{ n }}"{% if fan.my_rating|stringformat:'s' == n %} selected{% endif %}>{{ n }} / 5</option>{% endfor %}</select></label> <button class="fan-button" name="action" value="rate">Save rating</button></form>
{% endif %}
{% else %}
<a href="{% url 'fan-login' %}?next={{ request.path|urlencode }}%23discussion">Sign in to join in</a>
{% endif %}
{% if fan.rating.count %}<span>★ {{ fan.rating.average|floatformat:1 }} / 5 · {{ fan.rating.count }} rating{{ fan.rating.count|pluralize }}</span>{% endif %}
</div>
{% if fan.can_comment %}
{% if user.is_authenticated %}
<form class="fan-compose" method="post" action="{% url 'fan-action' fan.target_kind fan.target_id %}">
{% csrf_token %}<label for="id_body">Leave a comment</label>{{ fan.comment_form.body }}<button class="cta" name="action" value="comment">Post comment</button><small>New fan comments appear after moderation.</small>
</form>
{% endif %}
{% prime_ranks fan.threads True %}{% for comment in fan.threads %}
{% include 'fan-comment.html' %}
{% for comment in comment.thread %}{% include 'fan-comment.html' with reply=True %}{% endfor %}
{% empty %}<p>No public comments yet. Start the conversation.</p>{% endfor %}
{% else %}<p>Comments are closed for this post.</p>{% endif %}
</section>
+17
View File
@@ -0,0 +1,17 @@
{% load l10n %}
{% if band %}
<div class="floating-artwork floating-artwork--{{ position }}" data-floating-artwork>
<div class="floating-artwork-grid">
{% for alignment, images in band.items %}
<div class="floating-artwork-column floating-artwork-column--{{ alignment }}">
{% for item in images %}
<img class="floating-artwork-image{% if item.lift %} can-float{% endif %}" src="{{ item.art.url }}"
alt="{{ item.alt }}" width="{{ item.width|unlocalize }}" loading="lazy" decoding="async"
style="--float-cycle:{{ item.cycle_seconds|unlocalize }}s;--float-lift:{{ item.lift|unlocalize }}px">
{% endfor %}
</div>
{% endfor %}
</div>
<button class="fan-button floating-artwork-control" type="button" data-float-control hidden>Pause artwork motion</button>
</div>
{% endif %}
+53
View File
@@ -0,0 +1,53 @@
{% 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 %}
+6
View File
@@ -0,0 +1,6 @@
{% extends 'base.html' %}{% load slx_community slx_brand %}{% block title %}Your library · SLUMP X LAND{% endblock %}
{% block content %}<main class="section theme-account"><p class="kicker">The fan corner</p><h1>Your library</h1><p>Signed in as {{ user.username }} {% rank_badge user %}. <a href="{% url 'slx-profile' user.pk %}">View your reader profile →</a></p>
{% for message in messages %}<p class="fan-message" role="status">{{ message|slx_brand }}</p>{% endfor %}
<form method="post" action="{% url 'fan-follow' %}">{% csrf_token %}
<button class="cta" name="action" value="{% if following_title %}unfollow{% else %}follow{% endif %}">{% if following_title %}✓ Following <span class="slx-cta-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span> · Unfollow{% else %}Follow <span class="slx-cta-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span>{% endif %}</button>
</form><p>Get in-site updates for new chapters and blog posts.</p><p><a href="{% url 'fan-notices' %}">Activity &amp; notifications →</a></p><form method="post" action="{% url 'fan-logout' %}">{% csrf_token %}<button class="fan-button">Sign out</button></form><section><h2>Saved chapters</h2>{% include 'chapter-cards.html' with chapters=saved empty_text="No saved chapters yet." %}</section><section><h2>Finished chapters</h2>{% include 'chapter-cards.html' with chapters=finished empty_text="No chapters marked read yet." %}</section></main>{% endblock %}
+19
View File
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ campaign.subject }}</title></head>
<body style="margin:0;background:#f0f3f7;color:#182338;font-family:Arial,sans-serif">
{% if campaign.preheader %}<div style="display:none;max-height:0;overflow:hidden">{{ campaign.preheader }}</div>{% endif %}
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#f0f3f7">
<tr><td align="center" style="padding:24px 10px">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;background:#fff">
<tr><td style="background:#121623;color:#fff;padding:20px 24px;font-size:16px;font-weight:bold;letter-spacing:.08em">SLUMP <span style="color:#ffdd00">X</span> LAND · STUDIO DISPATCH</td></tr>
<tr><td style="padding:22px 24px;font-size:16px;line-height:1.55">
{% if test %}<p style="color:#59687d;font-size:13px">Test preview</p>{% endif %}
<h1 style="font-size:30px;line-height:1.12;margin:0 0 20px">{{ campaign.subject }}</h1>
{{ campaign.body|linebreaks }}
{% if campaign.link_url %}<p><a href="{{ campaign.link_url }}" style="display:inline-block;background:#ffdd00;color:#121623;padding:10px 17px;border-radius:4px;font-weight:bold;text-decoration:none">{{ campaign.link_label }}</a></p>{% endif %}
</td></tr>
<tr><td style="padding:16px 24px;background:#e8edf4;font-size:13px;line-height:1.45">
<strong>SLUMP X LAND</strong><br>{{ address|linebreaksbr }}{% if unsubscribe_url %}<p style="margin-bottom:0">You opted in to SLX updates. <a href="{{ unsubscribe_url }}" style="color:#125998">Unsubscribe</a></p>{% elif test %}<p style="margin-bottom:0">Live issues include a personal unsubscribe link.</p>{% endif %}
</td></tr></table></td></tr></table>
</body></html>
+17
View File
@@ -0,0 +1,17 @@
{% autoescape off %}
SLUMP X LAND · STUDIO DISPATCH
{% if campaign.preheader %}{{ campaign.preheader }}
{% endif %}{{ campaign.subject }}
{{ campaign.body }}
{% if campaign.link_url %}
{{ campaign.link_label }}: {{ campaign.link_url }}
{% endif %}
—
SLUMP X LAND
{{ address }}
{% if unsubscribe_url %}You received this newsletter because you confirmed your subscription.
Unsubscribe: {{ unsubscribe_url }}{% elif test %}Test email. No subscriber was contacted.{% endif %}
{% endautoescape %}
+16
View File
@@ -0,0 +1,16 @@
{% load slx_brand %}
<dialog class="newsletter-popup" data-newsletter-popup{% if request.resolver_match.url_name == 'home' %} data-auto-open{% endif %} aria-labelledby="newsletter-popup-title">
<div class="newsletter-popup-hero">
<form method="dialog"><button class="newsletter-popup-close" type="submit" autofocus aria-label="Close newsletter">×</button></form>
<p class="kicker">SLX STUDIO DISPATCH</p>
<h2 id="newsletter-popup-title">Get the next drop.</h2>
<p>New chapters, production notes, and announcements from the {{ "SLUMP X LAND"|slx_brand }} studio.</p>
</div>
<div class="newsletter-popup-body">
<form method="post" action="{% url 'newsletter-signup' %}" class="account-form" data-newsletter-form>
{% include 'newsletter/signup-fields.html' with form=newsletter_popup_form %}
</form>
<p data-newsletter-status role="status" tabindex="-1" hidden></p>
<div class="newsletter-popup-actions">{% include 'read-manaa.html' %}<a href="{% url 'newsletter-signup' %}">Newsletter page</a></div>
</div>
</dialog>
+31
View File
@@ -0,0 +1,31 @@
{% extends "base.html" %}{% load slx_brand %}
{% block title %}SLX Newsletter{% endblock %}
{% block content %}
<main class="section article">
<p class="kicker">SLX Studio · Newsletter</p>
{% if mode == 'signup' %}
<h1>Get SLX release notes</h1>
<p>Chapter drops, production notes, and announcements from {{ "SLUMP X LAND"|slx_brand }}.</p>
{% if not available %}<p>Newsletter signup is not open right now.</p>
{% elif check %}
{% if delivery_ready %}<p>If this address can be subscribed, look for a confirmation email shortly. Check spam if you don’t see it.</p>
{% else %}<p>Thanks! Your signup request was received. You can confirm your subscription by email once newsletter delivery is available.</p>{% endif %}
{% else %}
<form method="post" class="account-form">
{% include 'newsletter/signup-fields.html' %}
</form>
{% endif %}
{% elif mode == 'confirm' %}
{% if done %}<h1>You’re on the list</h1><p>Your email is confirmed. Look out for the next SLX update.</p>
{% elif valid %}<h1>Confirm your signup</h1><p>Use the button below to start receiving the SLX newsletter.</p>
<form method="post">{% csrf_token %}<button class="cta" type="submit">Confirm subscription</button></form>
{% else %}<h1>This link isn’t active</h1><p><a href="{% url 'newsletter-signup' %}">Request a new confirmation</a> if you still want to join.</p>{% endif %}
{% else %}
{% if done %}<h1>You’re unsubscribed</h1><p>You won’t receive future SLX newsletters.</p>
{% else %}<h1>Unsubscribe from SLX updates?</h1>
<form method="post">{% csrf_token %}<button class="cta" type="submit">Unsubscribe</button></form>
{% endif %}
{% endif %}
<p><a href="{% url 'home' %}">Back to {{ "SLUMP X LAND"|slx_brand }}</a></p>
</main>
{% endblock %}
+7
View File
@@ -0,0 +1,7 @@
{% load slx_brand %}
{% csrf_token %}{{ form.non_field_errors }}
<p>{{ form.name.label_tag }} {{ form.name }} {{ form.name.errors }}</p>
<p>{{ form.email.label_tag }} {{ form.email }} {{ form.email.errors }}</p>
<p><label class="newsletter-consent">{{ form.consent }} <span>{{ form.consent.label|slx_brand }}</span></label>{{ form.consent.errors }}</p>
<p class="body-muted">We save your signup to the SLX mailing list. Confirm by email to receive updates. You can unsubscribe from any issue.</p>
<button class="cta" type="submit">Join the newsletter</button>
+16
View File
@@ -0,0 +1,16 @@
{% extends 'base.html' %}{% load slx_brand %}{% block title %}Fan activity · SLUMP X LAND{% endblock %}
{% block content %}
<main class="section article theme-account fan-notices">
<h1>Fan activity</h1>
<form method="post">{% csrf_token %}<button class="fan-button">Mark all read</button></form>
{% for item in notices %}
<article class="fan-comment notice-banner">
{% if item.art_url %}<img class="notice-art" src="{{ item.art_url }}" alt="" loading="lazy" decoding="async">{% endif %}
<a class="notice-link" href="{{ item.link }}">
<strong>{{ item.text|slx_brand }}</strong>{% if item.unread %}<span class="notice-new">New</span>{% endif %}
<time datetime="{{ item.date|date:'c' }}">{{ item.date|date:"M j, Y · g:i a T" }}</time>
</a>
</article>
{% empty %}<p>No activity yet.</p>{% endfor %}
</main>
{% endblock %}
+15
View File
@@ -0,0 +1,15 @@
{% extends 'base.html' %}{% load slx_brand %}
{% block title %}Chapter checkout · SLUMP X LAND{% endblock %}
{% block content %}
<main class="section article theme-shop"><p class="kicker">{{ "SLUMP X LAND"|slx_brand }} · PayPal checkout</p><h1>{{ purchase.chapter.title|slx_brand }}</h1>
<p><strong>${{ purchase.amount|floatformat:2 }} USD</strong></p>
{% if revoked %}<p>This order is closed. Contact SLX Studio if you need help with a payment.</p>
{% elif start_failed %}<p>PayPal checkout could not start. Return to the chapter to try again.</p>
{% else %}
{% if verify_failed %}<p>We couldn’t confirm the payment yet. Retry the verification below; it uses the same PayPal order.</p>{% else %}
<p>Complete checkout to confirm the PayPal payment and unlock this chapter on your account.</p>{% endif %}
<form method="post" action="{% url 'paypal-finish' purchase.checkout_id %}">{% csrf_token %}<button class="cta" type="submit">Complete checkout</button></form>
{% endif %}
<p><a href="{% url 'chapter' purchase.chapter.number %}">Return to chapter</a></p>
</main>
{% endblock %}
+1
View File
@@ -0,0 +1 @@
<span class="rank-badge rank-{{ kind }}">{{ name }}</span>
+7
View File
@@ -0,0 +1,7 @@
{% if option.icon == 'thumb-up' or option.icon == 'thumb-down' %}
<svg class="reaction-icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M1.5 10H5v11H1.5zm5 0 5-7c.4-.6.9-.9 1.5-.9 1 0 1.7.8 1.7 1.8l-.1 4.7H20c1.4 0 2.4 1.2 2.1 2.5l-1.8 7.5c-.3 1.4-1.3 2.4-2.8 2.4h-11z"/></svg>
{% elif option.icon == 'sage' %}
<svg class="reaction-icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M21 2c.1 6.6-1.1 13.5-6.2 17-3 2-7.9 1.8-9.2-2.5C3.7 10.2 12.1 5.9 21 2z"/><path fill="none" stroke="#133625" stroke-width="1.4" stroke-linecap="round" d="M4 22 17 7m-7 9 5 .1m-2.3-3.4-.3-3"/></svg>
{% elif option.icon == 'wow' %}<span class="reaction-icon" aria-hidden="true">😮</span>
{% elif option.icon == 'sad' %}<span class="reaction-icon" aria-hidden="true">😢</span>
{% elif option.icon == 'laugh' %}<span class="reaction-icon" aria-hidden="true">😂</span>{% endif %}
+8
View File
@@ -0,0 +1,8 @@
{% if group %}<div class="reaction-strip">
{% if user.is_authenticated %}<form method="post" action="{% url 'slx-react' group.kind group.pk %}" aria-label="{{ reaction_for|default:'React' }}">{% csrf_token %}
{% if request.resolver_match.url_name == 'chapter' %}<input type="hidden" name="surface" value="reader">{% endif %}
{% for option in group.options %}<button class="react-chip react-{{ option.icon }}" type="submit" name="value" value="{% if option.active %}0{% else %}{{ option.value }}{% endif %}" aria-pressed="{% if option.active %}true{% else %}false{% endif %}" aria-label="{{ option.label }}: {{ option.count }}{% if option.active %}, remove reaction{% endif %}" title="{{ option.label }}">
{% include 'reaction-icon.html' %}<span>{{ option.count }}</span></button>{% endfor %}
</form>{% else %}
<div class="reaction-totals" aria-label="Reaction totals">{% for option in group.options %}{% if option.count %}<span class="react-chip react-{{ option.icon }}" aria-label="{{ option.label }}: {{ option.count }}" title="{{ option.label }}">{% include 'reaction-icon.html' %}{{ option.count }}</span>{% endif %}{% endfor %}</div>
{% endif %}</div>{% endif %}
+4
View File
@@ -0,0 +1,4 @@
<a class="read-manaa" href="{% url 'chapters' %}">
<span class="read-manaa-label">Read Slump X Land</span>
<svg class="read-manaa-motion" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h14m-6-6 6 6-6 6" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</a>
+6
View File
@@ -0,0 +1,6 @@
{% extends 'base.html' %}{% load slx_community slx_brand %}{% block title %}{{ reader.username }} · Reader profile · SLUMP X LAND{% endblock %}
{% block content %}<main class="section theme-account"><p class="kicker">{{ "SLUMP X LAND"|slx_brand }} reader</p><div class="profile-name"><h1>{{ reader.username }}</h1>{% rank_badge reader %}</div>
{% if series_reviews %}<section><h2>Series review</h2>{% include 'review-cards.html' with reviews=series_reviews series_review=True %}</section>{% endif %}
<section><h2>Chapter reviews</h2>{% include 'review-cards.html' with reviews=review_page %}{% include 'review-pagination.html' %}</section>
<section><h2>Favorite chapters</h2>{% include 'chapter-cards.html' with chapters=favorites empty_text="No public favorite chapters yet." %}</section>
</main>{% endblock %}
+2
View File
@@ -0,0 +1,2 @@
{% extends 'base.html' %}{% block title %}Fan sign in · SLUMP X LAND{% endblock %}
{% block content %}<main class="section article theme-account"><p class="kicker">The fan corner</p><h1>Sign in</h1><form class="account-form" method="post">{% csrf_token %}{{ form.as_p }}<input type="hidden" name="next" value="{{ next }}"><button class="cta" type="submit">Sign in</button></form><p>New here? <a href="{% url 'fan-signup' %}">Create a reader account</a>.</p></main>{% endblock %}
+2
View File
@@ -0,0 +1,2 @@
{% extends 'base.html' %}{% load slx_brand %}{% block title %}Join the fan corner · SLUMP X LAND{% endblock %}
{% block content %}<main class="section article theme-account"><p class="kicker">The fan corner</p><h1>Join {{ "SLUMP X LAND"|slx_brand }}</h1><p>Save chapters, leave reactions, and join the discussion.</p><form class="account-form" method="post">{% csrf_token %}{{ form.as_p }}<button class="cta" type="submit">Create account</button></form><p>Already a reader? <a href="{% url 'fan-login' %}">Sign in</a>.</p></main>{% endblock %}
+7
View File
@@ -0,0 +1,7 @@
{% load slx_community slx_brand %}{% prime_ranks reviews %}<div class="review-cards">{% for review in reviews %}<article class="review-card">
<div class="review-card-line">
<div><p class="kicker">{% if series_review %}Series review{% else %}Chapter #{{ review.chapter.number|stringformat:"03d" }}{% endif %}</p><h3><a href="{% if series_review %}{% url 'slx-series-review' review.pk %}{% else %}{% url 'slx-review' review.chapter.number review.pk %}{% endif %}">{% if review.contains_spoilers %}Review with spoilers{% else %}{{ review.headline|slx_brand }}{% endif %}</a></h3></div>
<span class="review-score" aria-label="{{ review.score }} out of 5">{{ review.score }}/5</span>
</div>
<p class="review-byline"><a href="{% url 'slx-profile' review.author_id %}">{{ review.author.username }}</a> {% rank_badge review.author %}<span aria-hidden="true">·</span><time datetime="{{ review.updated_at|date:'c' }}">{{ review.updated_at|date:"M j" }}</time></p>
</article>{% empty %}<p class="muted-copy">No reviews yet.</p>{% endfor %}</div>
+4
View File
@@ -0,0 +1,4 @@
{% if chosen_page %}
<figure class="review-art"><img src="{{ chosen_page.art.url }}" alt="Selected page from chapter {{ review_chapter.number }}" loading="lazy">
<figcaption>Chapter #{{ review_chapter.number|stringformat:"03d" }} · Page {{ chosen_page.number }}</figcaption></figure>
{% endif %}
+1
View File
@@ -0,0 +1 @@
{% if review_page.paginator.num_pages > 1 %}<nav class="fan-toolbar" aria-label="Review pages">{% if review_page.has_previous %}<a href="?page={{ review_page.previous_page_number }}">Previous page</a>{% endif %}<span>Page {{ review_page.number }} of {{ review_page.paginator.num_pages }}</span>{% if review_page.has_next %}<a href="?page={{ review_page.next_page_number }}">Next page</a>{% endif %}</nav>{% endif %}
+17
View File
@@ -0,0 +1,17 @@
{% extends 'base.html' %}{% load static slx_brand %}
{% block title %}Write a review · SLUMP X LAND{% endblock %}
{% block scripts %}<script defer src="{% static 'review-pages.js' %}"></script>{% endblock %}
{% block content %}
<main class="section article">
<p class="kicker">{% if series_review %}{{ "SLUMP X LAND"|slx_brand }} · Series review{% else %}Chapter #{{ chapter.number|stringformat:"03d" }} · {{ chapter.title|slx_brand }}{% endif %}</p>
<h1>{% if existing %}Edit your review{% else %}Write a review{% endif %}</h1>
<p>{% if series_review %}Choose your favorite chapter and an optional page from it.{% else %}Choose an optional page from this chapter.{% endif %} Reviews and edits go to moderation before appearing publicly.</p>
{% if existing %}<p>Current status: <strong>{{ existing.get_status_display }}</strong>.</p>{% endif %}
<form method="post" class="account-form review-form" data-review-form{% if series_review %} data-page-endpoint="{% url 'slx-review-pages' 0 %}"{% endif %}>
{% csrf_token %}{{ form.as_p }}
<figure data-review-preview hidden><img alt="Selected chapter page" loading="lazy"><figcaption></figcaption></figure>
<p data-review-page-status role="status"></p><button type="submit" class="cta">Submit review</button>
</form>
{% if series_review %}<noscript><p>To choose artwork, first open the <a href="{% url 'chapters' %}">chapter archive</a>, then use that chapter’s series review link.</p></noscript>{% endif %}
{{ page_choices|json_script:'review-page-data' }}
</main>{% endblock %}
+11
View File
@@ -0,0 +1,11 @@
{% extends 'base.html' %}{% load slx_community slx_brand %}{% load static %}
{% block title %}{% if review.contains_spoilers %}{% if series_review %}Series reader review{% else %}Chapter {{ review.chapter.number }} reader review{% endif %}{% else %}{{ review.headline }}{% endif %} · SLUMP X LAND{% endblock %}
{% block scripts %}<script defer src="{% static 'review-share.js' %}"></script>{% endblock %}
{% block content %}<main class="section article"><p class="kicker">Reader review · {% if series_review %}{{ "SLUMP X LAND"|slx_brand }} series{% else %}Chapter #{{ review.chapter.number|stringformat:"03d" }}{% endif %}</p>
<h1>{% if review.contains_spoilers %}Review with spoilers{% else %}{{ review.headline|slx_brand }}{% endif %}</h1>
<p class="article-byline">By <a href="{% url 'slx-profile' review.author_id %}">{{ review.author.username }}</a> {% rank_badge review.author %} · {{ review.updated_at|date:"M j, Y" }} · <strong>{{ review.score }}/5</strong></p>
{% if series_review and review_chapter %}<p>Favorite chapter: <a href="{% url 'chapter' review_chapter.number %}">#{{ review_chapter.number|stringformat:"03d" }} · {{ review_chapter.title }}</a></p>{% endif %}
{% if review.contains_spoilers %}<details class="fan-panel"><summary>Reveal the review and spoilers</summary><h2>{{ review.headline|slx_brand }}</h2>{{ review.body|slx_brand|linebreaks }}{% include 'review-image.html' %}</details>{% else %}<div class="article-copy">{{ review.body|slx_brand|linebreaks }}{% include 'review-image.html' %}</div>{% endif %}
<div class="review-share" data-share><label for="review-url">Share this review</label><div class="fan-toolbar"><input id="review-url" type="url" readonly value="{{ share_url }}"><button type="button" class="fan-button" data-share-button hidden>Share</button><button type="button" class="fan-button" data-copy-button hidden>Copy link</button></div><p data-share-status role="status"></p></div>
{% if series_review %}<a href="{% url 'slx-series-reviews' %}">All series reviews →</a>{% else %}<a href="{% url 'slx-reviews' review.chapter.number %}">All reviews for this chapter →</a>{% endif %}
</main>{% endblock %}
+12
View File
@@ -0,0 +1,12 @@
{% extends 'base.html' %}{% load slx_brand %}
{% block title %}{% if series_review %}Series reviews{% else %}Chapter reviews{% endif %} · SLUMP X LAND{% endblock %}
{% block content %}
<main class="section article">
<p class="kicker">{% if series_review %}{{ "SLUMP X LAND"|slx_brand }}{% else %}Chapter #{{ chapter.number|stringformat:"03d" }} · {{ chapter.title|slx_brand }}{% endif %}</p>
<h1>{% if series_review %}Series reviews{% else %}Chapter reviews{% endif %}</h1>
{% for message in messages %}<p role="status">{{ message }}</p>{% endfor %}
<a class="cta" href="{% if series_review %}{% url 'slx-series-review-write' %}{% else %}{% url 'slx-review-write' chapter.number %}{% endif %}">Write or edit your review</a>
{% include 'review-cards.html' with reviews=review_page %}
{% include 'review-pagination.html' %}
</main>
{% endblock %}
+2
View File
@@ -0,0 +1,2 @@
{% extends 'base.html' %}{% block title %}Search · SLUMP X LAND{% endblock %}
{% block content %}<main class="section"><p class="kicker">Find it in the archive</p><h1>Search</h1><form method="get" class="fan-toolbar"><label for="slx-q">Search the site</label><input id="slx-q" name="q" value="{{ query }}" maxlength="100" placeholder="Title, chapter number, or topic"><button class="fan-button">Search</button></form>{% if query %}<h2>Chapters</h2>{% include 'chapter-cards.html' with empty_text="No matching chapters." %}<h2>Blog, cast &amp; world archive</h2>{% include 'entry-cards.html' %}{% endif %}</main>{% endblock %}
+15
View File
@@ -0,0 +1,15 @@
{% if preview %}
<link rel="canonical" href="{{ preview.url }}">
<meta name="description" content="{{ preview.excerpt }}">
<meta property="og:site_name" content="SLUMP X LAND">
<meta property="og:type" content="{{ preview.type }}">
<meta property="og:url" content="{{ preview.url }}">
<meta property="og:title" content="{{ preview.title }}">
<meta property="og:description" content="{{ preview.excerpt }}">
<meta property="og:image" content="{{ preview.image }}">
{% if preview.jpeg %}<meta property="og:image:type" content="image/jpeg">{% endif %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ preview.title }}">
<meta name="twitter:description" content="{{ preview.excerpt }}">
<meta name="twitter:image" content="{{ preview.image }}">
{% endif %}
+8
View File
@@ -0,0 +1,8 @@
<div class="shop-image" data-shop-image>
<span class="shop-image-placeholder" aria-hidden="true">SX</span>
{% if primary %}
<img src="{{ primary.url }}"{% if fallback %} data-image-fallback="{{ fallback.url }}"{% endif %} alt="{{ title }}" loading="lazy" decoding="async">
{% elif fallback %}
<img src="{{ fallback.url }}" alt="{{ title }}" loading="lazy" decoding="async">
{% endif %}
</div>
+50
View File
@@ -0,0 +1,50 @@
{% extends 'base.html' %}
{% block title %}Cart · Shop · SLUMP X LAND{% endblock %}
{% block content %}
<main class="page-shell">
<h1>Shopping Cart</h1>
{% if items %}
<table style="width:100%;border-collapse:collapse;margin-bottom:1.5rem;">
<thead>
<tr><th align="left">Item</th><th align="left">Qty</th><th align="right">Total</th></tr>
</thead>
<tbody>
{% for row in items %}
<tr>
<td>{{ row.product.title }}</td>
<td>
<form method="post" action="{% url 'shop-cart-update' row.product.pk %}" style="display:inline-flex;gap:.4rem;">
{% csrf_token %}
<input type="number" name="quantity" value="{{ row.quantity }}" min="0" max="20" style="width:64px;">
<button type="submit">Update</button>
</form>
</td>
<td align="right">${{ row.line_total }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>Subtotal: <strong>${{ subtotal }}</strong></p>
{% if has_physical %}<p>Shipping: <strong>${{ shipping }}</strong></p>{% endif %}
<p style="font-size:1.25rem;">Total: <strong>${{ total }}</strong></p>
<form method="post" action="{% url 'shop-checkout' %}" style="margin-top:1.5rem;display:grid;gap:.75rem;max-width:380px;">
{% csrf_token %}
{% if not request.user.is_authenticated or not request.user.email %}
<label>Email (for receipt &amp; digital downloads)
<input type="email" name="email" required placeholder="you@example.com">
</label>
{% endif %}
{% if stripe_enabled %}
<button type="submit" name="gateway" value="stripe" class="btn">Checkout with Card / Apple Pay (Stripe)</button>
{% endif %}
{% if paypal_enabled %}
<button type="submit" name="gateway" value="paypal" class="btn">Checkout with PayPal</button>
{% endif %}
</form>
{% else %}
<p>Your cart is empty. <a href="{% url 'shop-index' %}">Browse the shop &rarr;</a></p>
{% endif %}
</main>
{% endblock %}
+40
View File
@@ -0,0 +1,40 @@
{% extends 'base.html' %}
{% block title %}Shop · SLUMP X LAND{% endblock %}
{% block content %}
<main class="page-shell theme-shop">
<header class="section-head" style="display:flex;justify-content:space-between;align-items:center;gap:1rem;">
<h1>Shop</h1>
<a class="btn" href="{% url 'shop-cart' %}">Cart ({{ cart_count }})</a>
</header>
{% if request.GET.subscribed %}
<p class="notice">Thank you! Your subscription is processing and will activate momentarily.</p>
{% endif %}
<div class="shop-grid">
{% for product in products %}
<article class="card shop-product">
<a href="{% url 'shop-product' product.slug %}" style="text-decoration:none;color:inherit;display:block;padding:1rem 1rem 0;">
<div class="shop-image{% if product.image %} has-shop-image{% endif %}" data-shop-image>
{% if product.image %}
<img src="{{ product.image.url }}" alt="{{ product.title }}" onerror="this.style.display='none';this.parentElement.classList.remove('has-shop-image');">
{% endif %}
<div class="shop-image-placeholder">SLX</div>
</div>
</a>
<header>
<span class="badge">{{ product.get_kind_display }}</span>
<h2 style="margin-top:.4rem;"><a href="{% url 'shop-product' product.slug %}">{{ product.title }}</a></h2>
{% if product.summary %}<p>{{ product.summary }}</p>{% endif %}
</header>
<div class="shop-option" style="display:flex;justify-content:space-between;align-items:center;gap:.75rem;">
<strong>${{ product.price_usd }}{% if product.kind == 'subscription' %} / {{ product.billing_interval }}{% endif %}</strong>
<a class="btn" href="{% url 'shop-product' product.slug %}">View Details</a>
</div>
</article>
{% empty %}
<p>No shop items are live yet. Check back soon.</p>
{% endfor %}
</div>
</main>
{% endblock %}
+21
View File
@@ -0,0 +1,21 @@
{% extends 'base.html' %}
{% block title %}Order {{ order.order_id|slice:":8" }} · SLUMP X LAND{% endblock %}
{% block content %}
<main class="page-shell">
<h1>Order #{{ order.order_id|slice:":8" }}</h1>
<p>Status: <strong>{{ order.get_status_display }}</strong> · Total: <strong>${{ order.total_usd }}</strong></p>
{% if order.tracking_number %}<p>Tracking: <strong>{{ order.tracking_number }}</strong></p>{% endif %}
<ul>
{% for item in order.items.all %}
<li>
{{ item.quantity }} &times; {{ item.title_snapshot }} (${{ item.line_total }})
{% if item.product.kind == 'digital' and order.status in 'paid,shipped,delivered' %}
— <a href="{% url 'shop-download' order.order_id item.pk %}"><strong>Download File</strong></a>
{% endif %}
</li>
{% endfor %}
</ul>
<p><a href="{% url 'shop-index' %}">&larr; Return to Shop</a></p>
</main>
{% endblock %}
+45
View File
@@ -0,0 +1,45 @@
{% extends 'base.html' %}
{% block title %}{{ product.title }} · Shop · SLUMP X LAND{% endblock %}
{% block content %}
<main class="page-shell">
<p><a href="{% url 'shop-index' %}">&larr; Back to Shop</a></p>
<article class="product-detail" style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;">
{% if product.image %}
<div><img src="{{ product.image.url }}" alt="{{ product.title }}" style="width:100%;border-radius:8px;"></div>
{% endif %}
<div>
<span class="badge">{{ product.get_kind_display }}</span>
<h1>{{ product.title }}</h1>
<p style="font-size:1.35rem;"><strong>${{ product.price_usd }}{% if product.kind == 'subscription' %} / {{ product.billing_interval }}{% endif %}</strong></p>
{% if product.description %}<div class="prose">{{ product.description|linebreaks }}</div>{% endif %}
{% if product.kind == 'subscription' %}
<form method="post" action="{% url 'shop-subscribe' product.slug %}" style="margin-top:1.5rem;display:grid;gap:.75rem;max-width:360px;">
{% csrf_token %}
{% if not request.user.is_authenticated or not request.user.email %}
<label>Email for membership receipts
<input type="email" name="email" required placeholder="you@example.com">
</label>
{% endif %}
{% if stripe_enabled %}
<button type="submit" name="gateway" value="stripe" class="btn">Subscribe with Card (Stripe)</button>
{% endif %}
{% if paypal_enabled and product.paypal_plan_id %}
<button type="submit" name="gateway" value="paypal" class="btn">Subscribe with PayPal</button>
{% endif %}
</form>
{% else %}
{% if product.in_stock %}
<form method="post" action="{% url 'shop-cart-add' product.pk %}" style="margin-top:1.5rem;display:flex;gap:.75rem;align-items:center;">
{% csrf_token %}
<input type="number" name="quantity" value="1" min="1" max="20" style="width:72px;">
<button type="submit" class="btn">Add to Cart</button>
</form>
{% else %}
<p><strong>Sold Out</strong></p>
{% endif %}
{% endif %}
</div>
</article>
</main>
{% endblock %}
+3
View File
@@ -0,0 +1,3 @@
{% extends "base.html" %}{% load static slx_brand %}{% block title %}Coming Soon · SLUMP X LAND{% endblock %}{% block header %}{% endblock %}{% block footer %}{% endblock %}
{% block content %}<main class="hero landing{% if settings.countdown_art and settings.blur_countdown or not settings.countdown_art and settings.blur_hero %} blurred{% endif %}">{% if settings.countdown_art and not page_backdrop %}<img class="hero-art" src="{{ settings.countdown_art.url }}" alt="">{% elif 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">{{ "SLUMP X LAND"|slx_brand }}</p><h1>Coming soon</h1>{% if settings.next_release_title %}<p>{{ settings.next_release_title|slx_brand }}</p>{% endif %}{% if settings.next_release_at %}<p><time datetime="{{ settings.next_release_at|date:'c' }}" data-countdown>{{ settings.next_release_at|date:"M j, Y · g:i a T" }}</time><span id="time-left" class="countdown ticker" data-output aria-hidden="true"></span></p>{% else %}<p>Release date to be announced.</p>{% endif %}{% include 'author-comment.html' with comment=settings.countdown_creator_note %}</div></main>{% endblock %}
+10
View File
@@ -0,0 +1,10 @@
{% extends 'base.html' %}{% load slx_brand %}
{% block title %}Invite required · SLX Live{% endblock %}
{% block content %}
<main class="section article theme-account">
<p class="kicker">{{ "SLUMP X LAND"|slx_brand }} · Broadcasts</p>
<h1>SLX Live is invite-only</h1>
<p>This account doesn’t have access to the watch page. If you were invited, sign in with the approved account.</p>
<a class="cta" href="{% url 'home' %}">Back to <span class="slx-cta-wordmark">{{ "SLUMP X LAND"|slx_brand }}</span></a>
</main>
{% endblock %}
+55
View File
@@ -0,0 +1,55 @@
{% extends 'base.html' %}{% load slx_community slx_brand %}
{% block title %}SLX Live · SLUMP X LAND{% endblock %}
{% block content %}
<main class="section live-landing">
<header class="live-hero">
<div class="live-hero-content">
<div class="live-kicker"><span class="kicker">{{ "SLUMP X LAND"|slx_brand }} · Broadcasts</span>
<span class="live-state live-state-{{ settings.stream_status }}"><span aria-hidden="true"></span>{{ settings.get_stream_status_display }}</span></div>
<h1>{{ settings.stream_title|default:'SLX Live'|slx_brand }}</h1>
{% if settings.stream_description %}<p>{{ settings.stream_description|slx_brand|linebreaksbr }}</p>
{% else %}<p>Draw with Seji, go behind the pages, and watch {{ "SLUMP X LAND"|slx_brand }} come together.</p>{% endif %}
{% if settings.stream_status == 'upcoming' and settings.stream_starts_at %}
<div class="live-clock"><time datetime="{{ settings.stream_starts_at|date:'c' }}" data-countdown>{{ settings.stream_starts_at|date:'M j, Y · g:i a T' }}</time>
<span class="countdown ticker" data-output aria-hidden="true"></span></div>
{% endif %}
</div>
</header>
<div class="live-grid">
<section class="live-watch" aria-labelledby="live-watch-title">
<h2 id="live-watch-title">Watch the broadcast</h2><p class="muted-copy">Invite-only viewing for approved SLX accounts.</p>
{% if embed and settings.stream_status != 'offline' %}
<div class="stream-embed {% if settings.stream_provider == 'twitch' %}twitch-embed{% endif %}"><iframe src="{{ embed }}" title="SLX Live stream player" loading="lazy" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin"></iframe></div>
{% if settings.stream_provider == 'twitch' %}<p class="twitch-small-note">Open SLX Live on a larger screen to watch here.</p>{% endif %}
{% else %}
<div class="live-poster">{% if settings.stream_cover %}<img src="{{ settings.stream_cover.url }}" alt="">{% endif %}
<div><strong>{% if settings.stream_status != 'offline' %}The player is unavailable{% else %}The studio is offline{% endif %}</strong>
<p>Check back for the next broadcast.</p></div>
</div>
{% endif %}
</section>
<section id="stream-discussion" class="fan-panel live-discussion" aria-labelledby="stream-discussion-heading">
<div class="section-head"><h2 id="stream-discussion-heading">Stream discussion</h2></div>
{% for message in messages %}<p class="fan-message" role="status">{{ message }}</p>{% endfor %}
{% if settings.stream_comments_open %}
<form class="fan-compose" method="post" action="{% url 'stream-comment' %}">{% csrf_token %}
<input type="hidden" name="discussion_key" value="{{ discussion_key }}">
<label for="stream-comment-body">Leave a comment</label>
<textarea id="stream-comment-body" name="body" rows="3" maxlength="1800" required></textarea>
<button class="cta" type="submit">Post comment</button>
</form>
<p class="muted-copy">Comments appear after moderation.</p>
{% else %}<p>Comments are closed for this broadcast.</p>{% endif %}
{% prime_ranks comments %}{% for comment in comments %}
<article class="fan-comment manga-comment">{% include 'comment-byline.html' %}
<div class="manga-balloon"><p>{{ comment.body|slx_brand|linebreaksbr }}</p></div>
</article>
{% empty %}<p class="muted-copy">No published comments yet.</p>{% endfor %}
{% if comments.has_other_pages %}<nav class="live-comment-pages" aria-label="Comment pages">
{% if comments.has_previous %}<a href="?page={{ comments.previous_page_number }}#stream-discussion">Newer comments</a>{% endif %}
{% if comments.has_next %}<a href="?page={{ comments.next_page_number }}#stream-discussion">Older comments</a>{% endif %}
</nav>{% endif %}
</section>
</div>
</main>
{% endblock %}
+4
View File
@@ -0,0 +1,4 @@
{% load slx_brand %}
<div class="cards">
{% for chapter in upcoming %}<article class="card upcoming-card"><div class="upcoming-cover">{% if chapter.cover %}<img src="{{ chapter.cover.url }}" alt="">{% endif %}<div class="upcoming-clock"><time datetime="{{ chapter.publish_at|date:'c' }}" data-countdown>{{ chapter.publish_at|date:'M j, Y · g:i a T' }}</time><span class="countdown ticker" data-output aria-hidden="true"></span></div></div><div><span class="kicker">#{{ chapter.number|stringformat:'03d' }} · Upcoming chapter</span><h3>{{ chapter.title|slx_brand }}</h3><a data-release-link href="{% url 'chapter' chapter.number %}" hidden>Read chapter →</a></div></article>{% empty %}<p>No chapters have been announced yet.</p>{% endfor %}
</div>
+2
View File
@@ -0,0 +1,2 @@
{% extends 'base.html' %}{% block title %}Upcoming chapters · SLUMP X LAND{% endblock %}
{% block content %}<main class="section"><p class="kicker">Release forecast</p><h1>Upcoming chapters</h1>{% include 'upcoming-cards.html' %}</main>{% endblock %}
+1
View File
@@ -0,0 +1 @@
<span class="view-eye" aria-label="{{ views|default:'0' }} view{{ views|pluralize }}" title="{{ views|default:'0' }} view{{ views|pluralize }}"><svg aria-hidden="true" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75"><path d="M2 12s3.6-6 10-6 10 6 10 6-3.6 6-10 6S2 12 2 12Z"/><circle cx="12" cy="12" r="2.7"/></svg> <span aria-hidden="true">{{ views|default:'0' }}</span></span>