Configure shop app, admin sidebar, media routing, and Stripe dependencies
This commit is contained in:
commit
93d83a0d63
188 files changed
+9220
No files matched your search
@@ -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>
|
||||
@@ -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 %}
|
||||
@@ -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>
|
||||
@@ -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 %}
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user