| 1 | <div class="container pg-navwrap">
|
|---|
| 2 | <%- include('../partials/post-nav', { newerPost: (typeof newerPost !== 'undefined' ? newerPost : null), olderPost: (typeof olderPost !== 'undefined' ? olderPost : null) }) %>
|
|---|
| 3 | </div>
|
|---|
| 4 |
|
|---|
| 5 | <article class="pg-page" id="pg-page">
|
|---|
| 6 | <% if (typeof pgTitle !== 'undefined' && pgTitle) { %><h1 class="pg-title"><%= pgTitle %></h1><% } %>
|
|---|
| 7 |
|
|---|
| 8 | <% if (typeof pgTeaser !== 'undefined' && pgTeaser) { %>
|
|---|
| 9 | <div class="pg-teaser"><p><%= pgTeaser %></p></div>
|
|---|
| 10 | <% } %>
|
|---|
| 11 |
|
|---|
| 12 | <% var _hasPatron = (typeof pgPatronUrl !== 'undefined' && pgPatronUrl); %>
|
|---|
| 13 | <section class="pg-card">
|
|---|
| 14 | <div class="pg-lock">💶</div>
|
|---|
| 15 | <h2 class="pg-h2"><%= t('pgate.h') %></h2>
|
|---|
| 16 | <p class="pg-sub">
|
|---|
| 17 | <% if (typeof pgCents !== 'undefined' && pgCents) { %><%= t('pgate.sub_cents', { eur: (pgCents/100).toFixed(2) }) %><% } else { %><%= t('pgate.sub') %><% } %>
|
|---|
| 18 | </p>
|
|---|
| 19 |
|
|---|
| 20 | <div class="pg-actions">
|
|---|
| 21 | <% if (_hasPatron) { %>
|
|---|
| 22 | <a class="pg-btn" href="<%= pgPatronUrl %>" target="_blank" rel="noopener"><%= t('pgate.join') %></a>
|
|---|
| 23 | <button type="button" id="pg-unlock" class="pg-btn pg-btn-ghost"><%= t('pgate.unlock_have') %></button>
|
|---|
| 24 | <% } else { %>
|
|---|
| 25 | <button type="button" id="pg-unlock" class="pg-btn"><%= t('pgate.unlock') %></button>
|
|---|
| 26 | <% } %>
|
|---|
| 27 | </div>
|
|---|
| 28 | <p id="pg-status" class="pg-status" hidden></p>
|
|---|
| 29 | </section>
|
|---|
| 30 | </article>
|
|---|
| 31 |
|
|---|
| 32 | <script src="/assets/vendor/simplewebauthn-browser.umd.min.js"></script>
|
|---|
| 33 | <%# Het script staat in assets/js/mod/paid-gate.js; de gegevens via partials/page-data.ejs (shaer-bqr). %>
|
|---|
| 34 |
|
|---|
| 35 | <style>
|
|---|
| 36 | .pg-navwrap { max-width: 720px; margin: 0.5rem auto 1.5rem; padding: 0 1rem; }
|
|---|
| 37 | .pg-page { max-width: 720px; margin: 0 auto 3rem; padding: 0 1rem; }
|
|---|
| 38 | .pg-title { font-family: var(--font-display, serif); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1rem; }
|
|---|
| 39 | .pg-teaser { font-family: var(--font-body, serif); font-size: 1.1rem; line-height: 1.7; color: var(--ink); opacity: .95;
|
|---|
| 40 | -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
|
|---|
| 41 | .pg-card { margin: 1.5rem 0 0; border: 1px solid color-mix(in srgb, var(--ink, #000) 16%, transparent); border-radius: 18px; padding: 30px 26px; text-align: center; }
|
|---|
| 42 | .pg-lock { font-size: 38px; margin-bottom: 6px; }
|
|---|
| 43 | .pg-h2 { font-size: 22px; margin: 0 0 8px; }
|
|---|
| 44 | .pg-sub { opacity: .85; line-height: 1.6; margin: 0 auto 12px; max-width: 34em; }
|
|---|
| 45 | .pg-btn { display: inline-block; text-align: center; text-decoration: none; padding: 12px 24px; border: none; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
|
|---|
| 46 | background: var(--accent, #6b8f71); color: #fff; }
|
|---|
| 47 | .pg-btn:disabled { opacity: .6; cursor: default; }
|
|---|
| 48 | .pg-btn:hover { filter: brightness(1.05); }
|
|---|
| 49 | .pg-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 320px; margin: 0 auto; }
|
|---|
| 50 | .pg-btn-ghost { background: transparent; color: var(--ink, #222); border: 1px solid color-mix(in srgb, var(--ink, #000) 22%, transparent); }
|
|---|
| 51 | .pg-status { margin: 12px 0 0; opacity: .9; }
|
|---|
| 52 | .pg-status.is-err { color: #c0392b; }
|
|---|
| 53 | </style>
|
|---|
| 54 | <%- include('../partials/page-data', { pageData: { base: (typeof siteUrlBase !== 'undefined' && siteUrlBase ? siteUrlBase : ''), slug: pgSlug, hasPatron: !!_hasPatron, i18n: { join: t('pgate.join_short'), confirm: t('pgate.confirm'), failed: t('pgate.failed'), error: t('pgate.error') } } }) %>
|
|---|