| 1 | <%
|
|---|
| 2 | var _slug = (typeof postSlug !== 'undefined' && postSlug) ? postSlug : '';
|
|---|
| 3 | var _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : '';
|
|---|
| 4 | var _patron = (typeof patronUrl !== 'undefined' && patronUrl) ? patronUrl : '';
|
|---|
| 5 | %>
|
|---|
| 6 | <section class="pr">
|
|---|
| 7 | <div class="pr-card">
|
|---|
| 8 | <div class="pr-ic">🔒</div>
|
|---|
| 9 | <% if (reason === 'notpatron') { %>
|
|---|
| 10 | <h1 class="pr-h1">Nog geen supporter</h1>
|
|---|
| 11 | <p class="pr-sub">Je bent (nog) geen actieve supporter van deze site op Patreon. Word supporter en probeer het daarna opnieuw vanaf de post.</p>
|
|---|
| 12 | <% } else if (reason === 'tier') { %>
|
|---|
| 13 | <h1 class="pr-h1">Een niveau hoger nodig</h1>
|
|---|
| 14 | <p class="pr-sub">
|
|---|
| 15 | Deze post vraagt vanaf €<%= ((typeof neededCents !== 'undefined' ? neededCents : 0)/100).toFixed(2) %>.
|
|---|
| 16 | Jouw steun is nu €<%= ((typeof haveCents !== 'undefined' ? haveCents : 0)/100).toFixed(2) %>. Verhoog je steun en probeer opnieuw.
|
|---|
| 17 | </p>
|
|---|
| 18 | <% } else if (reason === 'expired') { %>
|
|---|
| 19 | <h1 class="pr-h1">Aanvraag verlopen</h1>
|
|---|
| 20 | <p class="pr-sub">Deze ontgrendel-link is verlopen of al gebruikt. Ga terug naar de post en probeer het opnieuw.</p>
|
|---|
| 21 | <% } else { %>
|
|---|
| 22 | <h1 class="pr-h1">Ontgrendelen afgebroken</h1>
|
|---|
| 23 | <p class="pr-sub">Er is niets gekoppeld. Je kunt het opnieuw proberen vanaf de post.</p>
|
|---|
| 24 | <% } %>
|
|---|
| 25 |
|
|---|
| 26 | <div class="pr-actions">
|
|---|
| 27 | <% if ((reason === 'notpatron' || reason === 'tier') && _patron) { %>
|
|---|
| 28 | <a class="pr-btn" href="<%= _patron %>" target="_blank" rel="noopener">Word supporter op Patreon</a>
|
|---|
| 29 | <% } %>
|
|---|
| 30 | <% if (_slug) { %>
|
|---|
| 31 | <a class="pr-btn pr-btn-ghost" href="<%= _base %>/<%= _slug %>">Terug naar de post</a>
|
|---|
| 32 | <% } else { %>
|
|---|
| 33 | <a class="pr-btn pr-btn-ghost" href="<%= _base %>/">Terug naar de site</a>
|
|---|
| 34 | <% } %>
|
|---|
| 35 | </div>
|
|---|
| 36 | </div>
|
|---|
| 37 | </section>
|
|---|
| 38 |
|
|---|
| 39 | <style>
|
|---|
| 40 | .pr { max-width: 460px; margin: 0 auto; padding: 56px 18px; text-align: center; }
|
|---|
| 41 | .pr-card { border: 1px solid color-mix(in srgb, var(--ink,#000) 16%, transparent); border-radius: 18px; padding: 34px 26px; }
|
|---|
| 42 | .pr-ic { font-size: 38px; margin-bottom: 6px; }
|
|---|
| 43 | .pr-h1 { font-size: 23px; margin: 0 0 8px; }
|
|---|
| 44 | .pr-sub { opacity: .85; line-height: 1.6; margin: 0 0 20px; }
|
|---|
| 45 | .pr-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
|
|---|
| 46 | .pr-btn { display: inline-block; padding: 11px 20px; border-radius: 10px; background: var(--accent,#6b8f71); color: #fff; text-decoration: none; font-weight: 600; }
|
|---|
| 47 | .pr-btn-ghost { background: transparent; color: var(--ink,#222); border: 1px solid color-mix(in srgb, var(--ink,#000) 22%, transparent); }
|
|---|
| 48 | </style>
|
|---|