Configure PayPal integration and cart checkout error display
This commit is contained in:
1 parent
62065828e1
commit
cf07fc5d9b
98 files changed
+1430
-281
No files matched your search
@@ -0,0 +1,10 @@
|
||||
{% extends "admin/change_form.html" %}
|
||||
{% load static %}
|
||||
{% block after_field_sets %}
|
||||
<h2>Place the marker</h2>
|
||||
<p>Click or tap the map to set the position, or enter X and Y above as percentages.</p>
|
||||
<div style="position:relative;max-width:900px">
|
||||
<img data-studio-map-picker src="{% static 'solterra-map.jpg' %}" width="2048" height="1170" alt="Sol’Terra map" style="display:block;width:100%;height:auto;cursor:crosshair">
|
||||
<span data-studio-map-pin aria-hidden="true" hidden style="position:absolute;width:16px;height:16px;border:3px solid #ffde31;border-radius:50%;background:#ad1414;transform:translate(-50%,-50%);pointer-events:none"></span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url 'admin:index' %}">Studio</a> › 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>
|
||||
<p>Enable the countdown cover landing and upload a cover to combine it with the Sol’Terra map. Choose whether the map appears above or below the countdown content.</p>
|
||||
<form method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||
{{ form.non_field_errors }}
|
||||
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</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 %}
|
||||
{% if not geo_configured %}<p>Connect a GeoLite2 City 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" }}
|
||||
@@ -24,6 +24,34 @@
|
||||
</tbody></table><small>Map boundaries: Natural Earth. Location is approximate.</small>
|
||||
</section>
|
||||
<div class="traffic-grid">
|
||||
<section class="traffic-panel">
|
||||
<h2>Regions and states</h2>
|
||||
<table class="traffic-table">
|
||||
<thead><tr><th scope="col">Country</th><th scope="col">Region / State</th><th scope="col">Views</th></tr></thead>
|
||||
<tbody>
|
||||
{% for row in regions %}
|
||||
<tr><td>{{ row.country|default:'Unknown' }}</td><td>{{ row.region|default:'Unknown' }}</td><td>{{ row.views }}</td></tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="3">No region data available yet.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<section class="traffic-panel">
|
||||
<h2>Cities</h2>
|
||||
<table class="traffic-table">
|
||||
<thead><tr><th scope="col">City</th><th scope="col">Region</th><th scope="col">Country</th><th scope="col">Views</th></tr></thead>
|
||||
<tbody>
|
||||
{% for row in cities %}
|
||||
<tr><td>{{ row.city|default:'Unknown' }}</td><td>{{ row.region|default:'Unknown' }}</td><td>{{ row.country|default:'Unknown' }}</td><td>{{ row.views }}</td></tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="4">No city data available yet.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<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 %}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'manaa-reader.css' %}">
|
||||
<dialog class="chapter-finish" data-archive-reminder aria-labelledby="archive-reminder-title">
|
||||
<div class="chapter-finish-card"><div>
|
||||
<p class="kicker">Slump X Land Monthly</p>
|
||||
<h2 id="archive-reminder-title">Read the entire archive</h2>
|
||||
<p>The newest three chapters are free to read in full. Create an account and join Slump X Land Monthly to unlock every chapter, new and old, as they’re published.</p>
|
||||
<div class="actions">
|
||||
<a class="cta" href="{% url 'fan-signup' %}">Create an account</a>
|
||||
<a class="cta secondary" href="{% url 'membership' %}">See monthly plans</a>
|
||||
<a href="{% url 'fan-login' %}">Sign in</a>
|
||||
<form method="dialog"><button class="fan-button" autofocus>Keep browsing</button></form>
|
||||
</div></div></div>
|
||||
</dialog>
|
||||
<script defer src="{% static 'archive-reminder.js' %}"></script>
|
||||
+8
-4
@@ -1,4 +1,4 @@
|
||||
{% 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 %}>
|
||||
{% 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><link rel="stylesheet" href="{% static 'djinnii.css' %}">{% 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 class="{% if page_backdrop %}has-page-background{% endif %}{% block body_class %}{% endblock %}"{% 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 %}
|
||||
@@ -11,14 +11,15 @@
|
||||
{% 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 %}
|
||||
<a href="{% url 'djinnii' %}"{% if request.resolver_match.url_name == 'djinnii' %} aria-current="page"{% endif %}>Djinnii</a>
|
||||
</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 floating_bottom %}{% include 'floating-artwork.html' with band=floating_bottom_art position='bottom' only %}{% endblock %}
|
||||
{% 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' %}
|
||||
{% block popups %}{% if newsletter_popup_form %}{% include 'newsletter/popup.html' %}
|
||||
{% if settings.membership_popup and request.resolver_match.url_name == 'home' %}
|
||||
<dialog class="newsletter-popup" data-membership-popup aria-labelledby="membership-popup-title">
|
||||
<div class="newsletter-popup-hero"><form method="dialog"><button class="newsletter-popup-close" autofocus aria-label="Close membership">×</button></form>
|
||||
@@ -27,5 +28,8 @@
|
||||
</div>
|
||||
<div class="newsletter-popup-body"><a class="read-manaa" href="{% url 'membership' %}">Explore membership →</a></div>
|
||||
</dialog>
|
||||
{% endif %}{% endif %}
|
||||
{% endif %}{% endif %}{% endblock %}
|
||||
{% if not user.is_authenticated and request.resolver_match.url_name == 'chapters' or not user.is_authenticated and request.resolver_match.url_name == 'chapter' %}
|
||||
{% include 'archive-reminder.html' %}
|
||||
{% endif %}
|
||||
</body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
{% if chapter.price_usd >= 0.50 and stripe_enabled %}
|
||||
{% if user.is_authenticated %}<form method="post" action="{% url 'buy-chapter' chapter.number %}">{% csrf_token %}<button type="submit" class="cta">Buy digital chapter · ${{ chapter.price_usd|floatformat:2 }}</button></form>
|
||||
{% else %}<a class="cta" href="{% url 'fan-login' %}?next={% url 'chapter' chapter.number %}">Sign in to buy · ${{ chapter.price_usd|floatformat:2 }}</a>{% endif %}
|
||||
{% endif %}
|
||||
{% if physical_edition %}<a class="cta secondary" href="{% url 'shop-product' physical_edition.slug %}">Buy the physical book</a>{% endif %}
|
||||
<a class="cta secondary" href="{% url 'membership' %}">Join Slump X Land’s Monthly Fan Club</a>
|
||||
@@ -1,2 +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>
|
||||
<div class="cards">{% for chapter in chapters %}<article class="card chapter-card"><a class="card-main" href="{% url 'chapter' chapter.number %}">{% if chapter.search_cover %}<img src="{{ chapter.search_cover }}" alt="" loading="lazy">{% elif 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>{% if show_archive_status %}<span class="badge">{% if chapter.pk in rolling_free_ids %}Free to read{% else %}Archive{% endif %}</span>{% endif %}<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>
|
||||
@@ -21,6 +21,7 @@
|
||||
{% 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>
|
||||
@@ -2,18 +2,12 @@
|
||||
{% 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>
|
||||
<p class="kicker">#{{ chapter.number|stringformat:"03d" }} · Rolling archive</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>
|
||||
<p>The newest three chapters are free. Sign in with an active Slump X Land Monthly membership to read the full archive.</p>
|
||||
<div class="actions">{% include 'chapter-access-actions.html' %}{% if not user.is_authenticated %}<a class="cta secondary" href="{% url 'fan-signup' %}">Create an account</a><a href="{% url 'fan-login' %}?next={% url 'chapter' chapter.number %}">Sign in</a>{% endif %}</div>
|
||||
<p><a href="{% url 'chapters' %}">See the latest free chapters →</a></p>
|
||||
</main>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}Collector recognition · SLUMP X LAND{% endblock %}
|
||||
{% block content %}<main class="section"><h1>Collector recognition</h1><p>After a paid shop order, you can choose to appear on the public thank-you list. Leave the display name blank to use your username.</p>
|
||||
<form method="post" enctype="multipart/form-data">{% csrf_token %}{{ form.as_p }}<button class="cta">Save preferences</button></form></main>{% endblock %}
|
||||
@@ -0,0 +1,6 @@
|
||||
<section class="section" aria-label="Collector appreciation"><h2>Thank You To Our Collectors, Investors & Readers</h2>
|
||||
{% if collectors %}<ul style="display:flex;flex-wrap:wrap;gap:1rem;list-style:none;padding:0">
|
||||
{% for collector in collectors %}<li class="card" style="display:flex;align-items:center;gap:.55rem;padding:.6rem">
|
||||
{% if collector.photo %}<img src="{{ collector.photo.url }}" alt="" loading="lazy" width="48" height="48" style="width:48px;height:48px;border-radius:50%;object-fit:cover">{% else %}<span aria-hidden="true">◆</span>{% endif %}
|
||||
<strong>{{ collector.display_name|default:collector.user.username }}</strong></li>{% endfor %}</ul>{% endif %}
|
||||
{% if user.is_authenticated %}<p><a href="{% url 'collector-preferences' %}">Manage your collector recognition →</a></p>{% endif %}</section>
|
||||
@@ -22,5 +22,5 @@
|
||||
<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>
|
||||
{% include 'collector-thanks.html' %}</main>
|
||||
{% endblock %}
|
||||
@@ -1,8 +1,8 @@
|
||||
{% load slx_brand %}
|
||||
{% if countdown_chapters %}
|
||||
<section class="chapter-shelf" data-chapter-shelf aria-labelledby="chapter-shelf-title">
|
||||
<section{% if request.resolver_match.url_name == "home" %} id="map-chapters" tabindex="-1"{% endif %} class="chapter-shelf" data-chapter-shelf aria-labelledby="chapter-shelf-title">
|
||||
<div class="chapter-shelf-header">
|
||||
<div><p class="kicker">{{ "SLUMP X LAND"|slx_brand }}</p><h2 id="chapter-shelf-title">Current chapters</h2></div>
|
||||
<div><p class="kicker">{{ "SLUMP X LAND"|slx_brand }}</p><h2 id="chapter-shelf-title">Latest Chapters</h2></div>
|
||||
<div class="chapter-shelf-actions">
|
||||
<a href="{% url 'chapters' %}">Chapter archive</a>
|
||||
<div class="chapter-shelf-controls" data-shelf-controls hidden>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static slx_brand %}
|
||||
{% block scripts %}<script defer src="{% static 'chapter-shelf.js' %}"></script>{% endblock %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'countdown-layout.css' %}">{% if with_world_map %}<link rel="stylesheet" href="{% static 'world-map.css' %}"><script defer src="{% static 'world-map.js' %}"></script>{% endif %}<script defer src="{% static 'chapter-shelf.js' %}"></script>{% endblock %}
|
||||
{% block title %}Coming soon · SLUMP X LAND{% endblock %}
|
||||
{% block header %}{% endblock %}
|
||||
{% block header %}{% if with_world_map %}{{ block.super }}{% endif %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{% block floating_top %}{% endblock %}
|
||||
{% block content %}
|
||||
@@ -13,9 +13,11 @@
|
||||
<div class="showcase-tint" style="background-color:{{ countdown_tint }};opacity:{{ countdown_tint_strength }}%"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if with_world_map and settings.countdown_map_position == 'above' %}{% include 'world-map.html' %}{% 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">
|
||||
<section id="map-start" tabindex="-1" class="showcase-release compact-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">
|
||||
@@ -23,18 +25,23 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="release-copy">
|
||||
<div class="release-timer-panel">
|
||||
<div id="map-release" tabindex="-1" 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>
|
||||
{% if settings.homepage_countdown_note %}<div class="release-message">
|
||||
{% include 'author-comment.html' with comment=settings.homepage_countdown_note %}
|
||||
</div>{% endif %}
|
||||
</section>
|
||||
|
||||
|
||||
{% if with_world_map and settings.countdown_map_position != 'above' %}{% include 'world-map.html' %}{% endif %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1 @@
|
||||
{% load static %}<span class="djinn-sol-spelling" aria-hidden="true">{% for word in words %}{% if word %}<span class="djinn-sol-word">{% for glyph in word %}<img class="djinn-sol-glyph" src="{% static glyph %}" alt="" decoding="async">{% endfor %}</span>{% endif %}{% endfor %}</span>
|
||||
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}Djinnii · SLUMP X LAND{% endblock %}
|
||||
{% block content %}
|
||||
<main class="section djinnii-page">
|
||||
<p class="kicker">The languages of Sol’Terra</p>
|
||||
<h1>Djinnii</h1>
|
||||
<p>Djinnii is the spoken language. Djinn-Sol is its written alphabet. Use the chart to decode the lettering on the Sol’Terra map.</p>
|
||||
<img class="djinnii-chart" src="{% static 'djinn-sol/chart.png' %}" width="1199" height="1312" alt="Djinn-Sol Pixel 12 alphabet decoder, showing the glyph for each letter from A to Z.">
|
||||
<p><a href="{% url 'world-map' %}#explore-solterra">← Back to the Sol’Terra map</a></p>
|
||||
</main>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,20 @@
|
||||
{% load slx_community slx_brand %}
|
||||
<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" id="map-live" tabindex="-1"><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" id="map-blog" tabindex="-1"><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" id="map-chapters" tabindex="-1"><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" id="map-upcoming" tabindex="-1"><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" id="map-cast" tabindex="-1"><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" id="map-world" tabindex="-1"><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" id="map-reviews" tabindex="-1" aria-labelledby="home-review-heading">
|
||||
{% if newsletter_signup_open %}<section class="newsletter-home" id="map-newsletter" tabindex="-1"><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>
|
||||
+7
-52
@@ -1,53 +1,8 @@
|
||||
{% extends "base.html" %}{% load slx_community slx_brand static %}
|
||||
{% block scripts %}{% if homepage_countdown %}<script defer src="{% static 'chapter-shelf.js' %}"></script>{% endif %}{% endblock %}
|
||||
{% extends "base.html" %}{% load static %}
|
||||
{% block body_class %} map-landing{% endblock %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'world-map.css' %}"><script defer src="{% static 'world-map.js' %}"></script>{% 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 %}
|
||||
{% block floating_bottom %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{% block popups %}{% endblock %}
|
||||
{% block content %}<main class="map-landing-main">{% include "world-map.html" %}</main>{% endblock %}
|
||||
@@ -1,5 +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>
|
||||
<p><a href="{% url 'collector-preferences' %}">Collector recognition settings →</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>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ page.title }} · SLUMP X LAND{% endblock %}
|
||||
{% block content %}<main class="section"><h1>{{ page.title }}</h1><div class="prose">{{ page.body|linebreaks }}</div></main>{% endblock %}
|
||||
@@ -1,17 +1,17 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends 'base.html' %}{% load static %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'membership-cards.css' %}">{% endblock %}
|
||||
{% block title %}Slump X Land Monthly{% endblock %}
|
||||
{% block content %}
|
||||
<main class="section">
|
||||
<p class="kicker">MEMBER EDITION</p><h1>Slump X Land Monthly</h1>
|
||||
<p>Both tiers unlock the full chapter library. Studio Vault also includes selected draft pages and process notes.</p>
|
||||
<div class="shop-grid">
|
||||
<article class="card"><div><h2>Early Access</h2><p>Read new chapters before the public drop and get occasional creator notes.</p>
|
||||
{% if settings.member_scout_url %}<a class="cta" href="{{ settings.member_scout_url }}">Choose Early Access</a>{% endif %}</div></article>
|
||||
<article class="card"><div><h2>Studio Vault</h2><p>Everything in Early Access, plus a curated selection of draft pages and process notes.</p>
|
||||
{% if settings.member_vault_url %}<a class="cta" href="{{ settings.member_vault_url }}">Choose Studio Vault</a>{% endif %}</div></article>
|
||||
{% for plan in plans %}<article class="card member-plan{% if plan.image %} member-plan-with-art{% endif %}">{% if plan.image %}<img class="member-plan-art" src="{{ plan.image.url }}" alt="" decoding="async">{% endif %}<div class="member-plan-copy"><h2>{{ plan.title }}</h2><p>${{ plan.price_usd }} / {{ plan.billing_interval }}</p><a class="cta" href="{% url 'shop-product' plan.slug %}">View plan</a></div></article>
|
||||
{% empty %}<p>Online membership checkout is not open yet.</p>{% endfor %}
|
||||
</div>
|
||||
{% if settings.member_vault_url or settings.member_scout_url %}
|
||||
<p>Access is activated by the studio after payment is verified. Enter your SLX username at checkout if prompted.</p>
|
||||
{% endif %}
|
||||
{% if comparison_rows %}<section class="section" id="compare-plans"><h2>Compare plans</h2><div style="overflow-x:auto"><table class="plan-comparison">
|
||||
<caption>Benefits by membership plan</caption><thead><tr><th scope="col">Benefit</th>{% for plan in plans %}<th scope="col">{{ plan.title }}<br>${{ plan.price_usd }} / {{ plan.billing_interval }}</th>{% endfor %}</tr></thead>
|
||||
<tbody>{% for feature, values in comparison_rows %}<tr><th scope="row">{{ feature }}</th>{% for value in values %}<td>{{ value }}</td>{% endfor %}</tr>{% endfor %}</tbody></table></div></section>{% endif %}
|
||||
{% if not user.is_authenticated %}<p><a href="{% url 'fan-login' %}?next={% url 'membership' %}">Sign in</a> or <a href="{% url 'fan-signup' %}">create an SLX account</a>.</p>{% endif %}
|
||||
{% if posts %}<h2>Your member content</h2><ul>{% for post in posts %}<li>{{ post.get_kind_display }} · <a href="{% url 'member-post' post.pk %}">{{ post.title }}</a></li>{% endfor %}</ul>{% endif %}
|
||||
</main>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}{% load slx_brand %}
|
||||
{% block title %}Series introduction · SLUMP X LAND{% endblock %}
|
||||
{% block content %}<main><section id="map-start" tabindex="-1" 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>
|
||||
</main>{% endblock %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% if product.verified_by_seller %}
|
||||
<span style="display:inline-block;border:1px solid #a7f3d0;border-radius:999px;background:#064e3b;color:#ecfdf5;padding:.2rem .55rem;font-size:.8rem;font-weight:700;"><span aria-hidden="true">✓</span> Verified by Seller</span>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,10 @@
|
||||
<article class="store-card">
|
||||
<a class="store-cover" href="{% url 'shop-product' product.slug %}">{% if product.image %}<img src="{{ product.image.url }}" alt="{{ product.title }}" loading="lazy">{% else %}<span>SLX</span>{% endif %}</a>
|
||||
<h2><a href="{% url 'shop-product' product.slug %}">{{ product.title }}</a></h2>
|
||||
<small>{{ product.get_kind_display }}</small>
|
||||
{% include 'shop/_seller_badge.html' %}
|
||||
<p class="store-stock">{% if product.kind == 'physical' %}{% if product.in_stock %}In stock{% else %}Sold out{% endif %}{% elif product.kind == 'digital' %}Digital edition{% else %}Fan Club{% endif %}</p>
|
||||
<strong>${{ product.price_usd }}{% if product.kind == 'subscription' %} / {{ product.billing_interval }}{% endif %}</strong>
|
||||
{% if product.kind != 'subscription' and product.in_stock %}<form method="post" action="{% url 'shop-cart-add' product.pk %}">{% csrf_token %}<input type="hidden" name="quantity" value="1"><button class="store-button">Add to cart</button></form>
|
||||
{% else %}<a class="store-button" href="{% url 'shop-product' product.slug %}">View details</a>{% endif %}
|
||||
</article>
|
||||
@@ -1,40 +1,9 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends 'base.html' %}{% load static %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'storefront.css' %}">{% endblock %}
|
||||
{% 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>
|
||||
<main class="section slx-store"><div class="store-bar"><a href="{% url 'world-map' %}">← Sol’Terra map</a><a href="{% url 'shop-cart' %}">Cart ({{ cart_count }})</a></div>
|
||||
<header class="store-banner"><h1>Slump X Land Shop</h1><p>Books, digital editions, and the Monthly Fan Club.</p></header>
|
||||
{% if request.GET.subscribed %}<p>Your access will update after Stripe confirms the subscription.</p>{% endif %}
|
||||
<div class="store-grid">{% for product in products %}{% include 'shop/card.html' %}{% empty %}<p>No products are available yet.</p>{% endfor %}</div></main>
|
||||
{% endblock %}
|
||||
@@ -10,12 +10,13 @@
|
||||
{% for item in order.items.all %}
|
||||
<li>
|
||||
{{ item.quantity }} × {{ item.title_snapshot }} (${{ item.line_total }})
|
||||
{% if item.product.kind == 'digital' and order.status in 'paid,shipped,delivered' %}
|
||||
{% if item.chapter %} — <a href="{% url 'chapter' item.chapter.number %}">Open chapter reader</a>{% elif item.product.digital_file 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>
|
||||
{% if user.is_authenticated and order.user_id == user.pk %}<p><a href="{% url 'collector-preferences' %}">Choose how you appear on the collector thank-you list →</a></p>{% endif %}
|
||||
<p><a href="{% url 'shop-index' %}">← Return to Shop</a></p>
|
||||
</main>
|
||||
{% endblock %}
|
||||
+24
-41
@@ -1,45 +1,28 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends 'base.html' %}{% load static %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'storefront.css' %}">{% endblock %}
|
||||
{% block title %}{{ product.title }} · Shop · SLUMP X LAND{% endblock %}
|
||||
{% block content %}
|
||||
<main class="page-shell">
|
||||
<p><a href="{% url 'shop-index' %}">← 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 class="section slx-store">
|
||||
<div class="store-bar"><a href="{% url 'shop-index' %}">← Back to Shop</a><a href="{% url 'shop-cart' %}">Cart ({{ cart_count }})</a></div>
|
||||
<article class="store-detail">
|
||||
<div class="store-cover">{% if product.image %}<img src="{{ product.image.url }}" alt="{{ product.title }}">{% else %}<span>SLX</span>{% endif %}</div>
|
||||
<div class="store-product-info"><h1>{{ product.title }}</h1><p>{{ product.get_kind_display }}</p>{% include "shop/_seller_badge.html" %}
|
||||
<p>{{ product.summary }}</p><p class="store-price">${{ product.price_usd }}{% if product.kind == 'subscription' %} / {{ product.billing_interval }}{% endif %}</p>
|
||||
{% if product.kind == 'subscription' %}
|
||||
<p><a href="{% url 'membership' %}#compare-plans">Compare Fan Club plans →</a></p>
|
||||
{% if not user.is_authenticated %}<a class="store-button" href="{% url 'fan-login' %}?next={% url 'shop-product' product.slug %}">Sign in to subscribe</a>
|
||||
{% else %}<form method="post" action="{% url 'shop-subscribe' product.slug %}">{% csrf_token %}
|
||||
{% if not user.email %}<label>Email for receipts <input type="email" name="email" required></label>{% endif %}
|
||||
{% if stripe_enabled %}<button name="gateway" value="stripe" class="store-button">Subscribe with Stripe</button>{% endif %}
|
||||
{% if not product.member_tier and paypal_enabled and product.paypal_plan_id %}<button name="gateway" value="paypal" class="store-button">Subscribe with PayPal</button>{% endif %}
|
||||
</form>{% endif %}
|
||||
{% elif product.in_stock %}
|
||||
<form method="post" action="{% url 'shop-cart-add' product.pk %}">{% csrf_token %}<label>Quantity <input type="number" name="quantity" value="1" min="1" max="20"></label><button class="store-button">Add to cart</button></form>
|
||||
{% else %}<p>Sold out</p>{% endif %}
|
||||
</div>
|
||||
<aside class="store-format"><h2>Format & delivery</h2>{% if product.kind == 'physical' %}<p>Ships to you · {% if product.in_stock %}In stock{% else %}Sold out{% endif %}</p>{% elif product.kind == 'digital' %}<p>Digital edition</p>{% else %}<p>Recurring membership · {{ product.get_member_tier_display }}</p>{% endif %}{% if sample_chapter %}<a href="{% url 'chapter' sample_chapter.number %}">Open chapter reader →</a>{% endif %}</aside>
|
||||
</article>
|
||||
{% if product.description %}<section class="store-section"><h2>Overview</h2><div>{{ product.description|linebreaks }}</div></section>{% endif %}
|
||||
{% if related_products %}<section class="store-section"><h2>You may also like</h2><div class="store-grid">{% for product in related_products %}{% include 'shop/card.html' %}{% endfor %}</div></section>{% endif %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,13 @@
|
||||
<section class="section slx-world-resources" aria-label="More from Slump X Land">
|
||||
{% if not upcoming %}<div class="card" id="map-upcoming" tabindex="-1"><a href="{% url 'upcoming' %}">Next releases →</a></div>{% endif %}
|
||||
{% if not cast %}<div class="card" id="map-cast" tabindex="-1"><a href="{% url 'entries' 'cast' %}">Meet the cast →</a></div>{% endif %}
|
||||
{% if not world %}<div class="card" id="map-world" tabindex="-1"><a href="{% url 'entries' 'world' %}">World archive →</a></div>{% endif %}
|
||||
{% if not news %}<div class="card" id="map-blog" tabindex="-1"><a href="{% url 'blog' %}">Studio blog →</a></div>{% endif %}
|
||||
{% if perms.catalog.watch_slx_live and settings.stream_status != 'offline' and settings.stream_provider %}{% else %}<div class="card" id="map-live" tabindex="-1"><a href="{% url 'stream' %}">SLX Live →</a></div>{% endif %}
|
||||
<div class="card" id="map-membership" tabindex="-1"><a href="{% url 'membership' %}">Membership →</a></div>
|
||||
<div class="card" id="map-shop" tabindex="-1"><a href="{% url 'shop-index' %}">Shop →</a></div>
|
||||
<div class="card" id="map-cart" tabindex="-1"><a href="{% url 'shop-cart' %}">Shopping cart →</a></div>
|
||||
{% if not newsletter_signup_open %}<div class="card" id="map-newsletter" tabindex="-1"><span>Newsletter signup is currently closed.</span></div>{% endif %}
|
||||
<div class="card" id="map-library" tabindex="-1"><a href="{% url 'library' %}">My library →</a></div>
|
||||
{% if not homepage_countdown %}<div class="card" id="map-release" tabindex="-1"><a href="{% url 'coming-soon' %}">Release countdown →</a></div>{% endif %}
|
||||
</section>
|
||||
@@ -0,0 +1,16 @@
|
||||
{% load static djinn_sol %}
|
||||
<nav id="explore-solterra" class="slx-world-map" aria-labelledby="slx-world-title">
|
||||
<div class="slx-map-controls"><h1 id="slx-world-title">Explore Sol’Terra</h1><button type="button" data-map-sound aria-pressed="true" hidden>Radar sound</button></div>
|
||||
<div class="slx-map-viewport">
|
||||
<div class="slx-world-stage"><img src="{% static 'solterra-map.jpg' %}" width="2048" height="1170" alt="Original Slump X Land map of Sol’Terra" decoding="async">
|
||||
{% for marker in map_locations %}
|
||||
<a class="slx-world-marker" href="{{ marker.url }}" data-map-destination="{{ marker.key }}" style="--x:{{ marker.x }}%;--y:{{ marker.y }}%" aria-label="{{ marker.title }}" title="{{ marker.title }}"><span class="slx-map-label" aria-hidden="true">{% djinn_sol marker.title %}<span class="slx-map-english">{{ marker.title }}</span></span></a>
|
||||
{% endfor %}
|
||||
<img class="slx-map-avatar" src="{% static 'ahkai-map-standing.png' %}" alt="" aria-hidden="true" hidden>
|
||||
<img class="slx-map-avatar slx-map-avatar-selected" src="{% static 'ahkai-map-selected.png' %}" alt="" aria-hidden="true" hidden>
|
||||
</div></div>
|
||||
<details class="slx-map-list"><summary>Destinations</summary><ul class="slx-world-directory">
|
||||
{% for marker in map_locations %}<li><a href="{{ marker.url }}">{{ marker.title }}</a></li>{% endfor %}
|
||||
<li><a href="{% url 'djinnii' %}">Djinnii alphabet decoder</a></li>
|
||||
</ul></details>
|
||||
</nav>
|
||||
Reference in new issue
Block a user