Changeset 4885eab in Klonkt for src/views/pages/newsletter.ejs
- Timestamp:
- 06/21/2026 03:05:14 PM (3 months ago)
- Branches:
- main
- Children:
- 5e61b17
- Parents:
- bbf9d1a
- File:
-
- 1 edited
-
src/views/pages/newsletter.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/newsletter.ejs
rbbf9d1a r4885eab 1 1 <% 2 2 var _site = site || {}; 3 var _title = _site.title || 'deze artiest';3 var _title = _site.title || t('news.this_artist'); 4 4 var st = (typeof nlState !== 'undefined') ? nlState : 'form'; 5 5 %> … … 7 7 <div class="nl-card"> 8 8 <% if (st === 'form') { %> 9 <h1 class="nl-h1"> Blijf op de hoogte</h1>10 <p class="nl-sub"> Schrijf je in voor de nieuwsbrief van <strong><%= _title %></strong> — nieuwe muziek, shows en updates, rechtstreeks in je inbox. Uitschrijven kan altijd met één klik.</p>9 <h1 class="nl-h1"><%= t('news.form_title') %></h1> 10 <p class="nl-sub"><%= t('news.form_sub_before') %><strong><%= _title %></strong><%= t('news.form_sub_after') %></p> 11 11 <form method="POST" action="<%= siteUrlBase %>/nieuwsbrief" class="nl-form"> 12 <input type="email" name="email" required placeholder=" jouw@email.nl" value="<%= (typeof nlPrefill !== 'undefined') ? nlPrefill : '' %>" autocomplete="email">13 <button type="submit" class="nl-btn"> Inschrijven</button>12 <input type="email" name="email" required placeholder="<%= t('news.email_ph') %>" value="<%= (typeof nlPrefill !== 'undefined') ? nlPrefill : '' %>" autocomplete="email"> 13 <button type="submit" class="nl-btn"><%= t('news.subscribe') %></button> 14 14 </form> 15 15 <% } else if (st === 'check') { %> 16 <h1 class="nl-h1"> Bijna klaar ✉</h1>17 <p class="nl-sub"> We hebben een bevestigingsmail gestuurd naar <strong><%= (typeof nlEmail!=='undefined')?nlEmail:'je adres' %></strong>. Klik op de link in die mail om je inschrijving te bevestigen.</p>16 <h1 class="nl-h1"><%= t('news.check_title') %></h1> 17 <p class="nl-sub"><%= t('news.check_sub_before') %><strong><%= (typeof nlEmail!=='undefined')?nlEmail:t('news.your_address') %></strong><%= t('news.check_sub_after') %></p> 18 18 <% } else if (st === 'done') { %> 19 <h1 class="nl-h1"> Je bent ingeschreven ✓</h1>20 <p class="nl-sub"> Bedankt — je staat op de lijst van <strong><%= _title %></strong>.</p>19 <h1 class="nl-h1"><%= t('news.done_title') %></h1> 20 <p class="nl-sub"><%= t('news.done_sub_before') %><strong><%= _title %></strong><%= t('news.done_sub_after') %></p> 21 21 <% } else if (st === 'confirmed') { %> 22 <h1 class="nl-h1"> Inschrijving bevestigd ✓</h1>23 <p class="nl-sub"> Top! Je ontvangt voortaan de nieuwsbrief van <strong><%= _title %></strong>.</p>22 <h1 class="nl-h1"><%= t('news.confirmed_title') %></h1> 23 <p class="nl-sub"><%= t('news.confirmed_sub_before') %><strong><%= _title %></strong><%= t('news.confirmed_sub_after') %></p> 24 24 <% } else if (st === 'unsubbed') { %> 25 <h1 class="nl-h1"> Uitgeschreven</h1>26 <p class="nl-sub"> Je bent afgemeld. Je ontvangt geen nieuwsbrieven meer. Van gedachten veranderd? Je kunt je altijd opnieuw inschrijven.</p>25 <h1 class="nl-h1"><%= t('news.unsubbed_title') %></h1> 26 <p class="nl-sub"><%= t('news.unsubbed_sub') %></p> 27 27 <% } else if (st === 'invalid') { %> 28 <h1 class="nl-h1"> Ongeldig e-mailadres</h1>29 <p class="nl-sub"> Controleer je adres en probeer 't opnieuw.</p>30 <p><a class="nl-btn nl-btn-ghost" href="<%= siteUrlBase %>/nieuwsbrief"> ← Terug</a></p>28 <h1 class="nl-h1"><%= t('news.invalid_title') %></h1> 29 <p class="nl-sub"><%= t('news.invalid_sub') %></p> 30 <p><a class="nl-btn nl-btn-ghost" href="<%= siteUrlBase %>/nieuwsbrief"><%= t('news.back') %></a></p> 31 31 <% } else if (st === 'smtperror') { %> 32 <h1 class="nl-h1"> Even niet gelukt</h1>33 <p class="nl-sub"> De bevestigingsmail kon niet verstuurd worden. Probeer 't later nog eens.</p>32 <h1 class="nl-h1"><%= t('news.smtperror_title') %></h1> 33 <p class="nl-sub"><%= t('news.smtperror_sub') %></p> 34 34 <% } else if (st === 'badtoken') { %> 35 <h1 class="nl-h1"> Link ongeldig of verlopen</h1>36 <p class="nl-sub"> Deze link werkt niet meer. Schrijf je eventueel opnieuw in.</p>37 <p><a class="nl-btn nl-btn-ghost" href="<%= siteUrlBase %>/nieuwsbrief"> Naar inschrijven</a></p>35 <h1 class="nl-h1"><%= t('news.badtoken_title') %></h1> 36 <p class="nl-sub"><%= t('news.badtoken_sub') %></p> 37 <p><a class="nl-btn nl-btn-ghost" href="<%= siteUrlBase %>/nieuwsbrief"><%= t('news.to_subscribe') %></a></p> 38 38 <% } else { %> 39 <h1 class="nl-h1"> Er ging iets mis</h1>40 <p class="nl-sub"> Probeer 't later nog eens.</p>39 <h1 class="nl-h1"><%= t('news.error_title') %></h1> 40 <p class="nl-sub"><%= t('news.error_sub') %></p> 41 41 <% } %> 42 42 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)