| 1 | <!DOCTYPE html>
|
|---|
| 2 | <html lang="<%= lang %>">
|
|---|
| 3 | <head>
|
|---|
| 4 | <meta charset="utf-8">
|
|---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
|---|
| 6 | <title><%= t('guardian.app_name') %></title>
|
|---|
| 7 | <link rel="manifest" href="/guardian/manifest.webmanifest">
|
|---|
| 8 | <link rel="icon" href="/guardian/icon.svg" type="image/svg+xml">
|
|---|
| 9 | <meta name="theme-color" content="#ff6b35">
|
|---|
| 10 | <link rel="stylesheet" href="/guardian/app.css">
|
|---|
| 11 | </head>
|
|---|
| 12 | <body>
|
|---|
| 13 | <header class="g-head">
|
|---|
| 14 | <span class="g-buoy">🛟</span>
|
|---|
| 15 | <div class="g-head-txt">
|
|---|
| 16 | <h1><%= t('guardian.app_name') %></h1>
|
|---|
| 17 | <p class="g-sub"><%= t('guardian.tagline') %></p>
|
|---|
| 18 | </div>
|
|---|
| 19 | <% if (sites.length > 1) { %>
|
|---|
| 20 | <select id="site-picker" aria-label="<%= t('guardian.acting_as') %>">
|
|---|
| 21 | <% for (const s of sites) { %>
|
|---|
| 22 | <option value="<%= s.slug %>" <%= s.slug === state.site ? 'selected' : '' %>>@<%= s.slug %></option>
|
|---|
| 23 | <% } %>
|
|---|
| 24 | </select>
|
|---|
| 25 | <% } else { %>
|
|---|
| 26 | <span class="g-me" title="<%= t('guardian.acting_as') %>">@<%= state.site %></span>
|
|---|
| 27 | <% } %>
|
|---|
| 28 | </header>
|
|---|
| 29 |
|
|---|
| 30 | <main>
|
|---|
| 31 | <!-- 1. Berichtencentrum: hulpverzoeken. Dat is waar dit voor bestaat. -->
|
|---|
| 32 | <section id="help-section">
|
|---|
| 33 | <div class="g-sec-head">
|
|---|
| 34 | <h2><%= t('guardian.help_title') %></h2>
|
|---|
| 35 | <span id="help-count" class="g-badge" hidden></span>
|
|---|
| 36 | </div>
|
|---|
| 37 | <p class="g-sec-sub"><%= t('guardian.help_sub') %></p>
|
|---|
| 38 | <div id="help-list" class="g-list"></div>
|
|---|
| 39 | <p id="help-empty" class="g-empty"><%= t('guardian.help_empty') %></p>
|
|---|
| 40 | </section>
|
|---|
| 41 |
|
|---|
| 42 | <!-- 2. Nieuwe ward adopteren. -->
|
|---|
| 43 | <section id="adopt-section">
|
|---|
| 44 | <div class="g-sec-head"><h2><%= t('guardian.adopt_title') %></h2></div>
|
|---|
| 45 | <p class="g-sec-sub"><%= t('guardian.adopt_sub') %></p>
|
|---|
| 46 | <form id="adopt-form" autocomplete="off">
|
|---|
| 47 | <input id="adopt-handle" type="text" inputmode="email" autocomplete="off"
|
|---|
| 48 | placeholder="@kind@server.eu" aria-label="<%= t('guardian.adopt_label') %>">
|
|---|
| 49 | <button type="submit" id="adopt-btn"><%= t('guardian.adopt_btn') %></button>
|
|---|
| 50 | </form>
|
|---|
| 51 | <p id="adopt-msg" class="g-msg" hidden></p>
|
|---|
| 52 | </section>
|
|---|
| 53 |
|
|---|
| 54 | <!-- 3. Verzonden aanvragen (nog niet beantwoord). -->
|
|---|
| 55 | <section id="pending-section" hidden>
|
|---|
| 56 | <div class="g-sec-head"><h2><%= t('guardian.pending_title') %></h2></div>
|
|---|
| 57 | <p class="g-sec-sub"><%= t('guardian.pending_sub') %></p>
|
|---|
| 58 | <div id="pending-list" class="g-list"></div>
|
|---|
| 59 | </section>
|
|---|
| 60 |
|
|---|
| 61 | <!-- 4. Mijn wards (geaccepteerd). -->
|
|---|
| 62 | <section id="wards-section">
|
|---|
| 63 | <div class="g-sec-head"><h2><%= t('guardian.wards_title') %></h2></div>
|
|---|
| 64 | <div id="wards-list" class="g-list"></div>
|
|---|
| 65 | <p id="wards-empty" class="g-empty"><%= t('guardian.wards_empty') %></p>
|
|---|
| 66 | </section>
|
|---|
| 67 |
|
|---|
| 68 | <!-- 5. Meldingen. -->
|
|---|
| 69 | <section id="push-section">
|
|---|
| 70 | <div class="g-sec-head"><h2><%= t('guardian.push_title') %></h2></div>
|
|---|
| 71 | <p class="g-sec-sub"><%= t('guardian.push_sub') %></p>
|
|---|
| 72 | <button id="push-toggle" class="quiet" data-on-label="<%= t('guardian.push_off') %>"
|
|---|
| 73 | data-off-label="<%= t('guardian.push_on') %>"><%= t('guardian.push_on') %></button>
|
|---|
| 74 | <p id="push-msg" class="g-msg" hidden></p>
|
|---|
| 75 | </section>
|
|---|
| 76 | </main>
|
|---|
| 77 |
|
|---|
| 78 | <script type="application/json" id="guardian-state"><%- JSON.stringify(state) %></script>
|
|---|
| 79 | <script src="/guardian/app.js" defer></script>
|
|---|
| 80 | </body>
|
|---|
| 81 | </html>
|
|---|