| 1 | <div class="container admin-page">
|
|---|
| 2 | <h1>Instellingen</h1>
|
|---|
| 3 | <p><a href="/admin" class="btn">← Beheer</a></p>
|
|---|
| 4 |
|
|---|
| 5 | <% if (success) { %><div class="alert alert-success"><%= success %></div><% } %>
|
|---|
| 6 |
|
|---|
| 7 | <section class="set-card">
|
|---|
| 8 | <h2>Modus</h2>
|
|---|
| 9 | <p class="set-help">
|
|---|
| 10 | Bepaalt hoe deze installatie werkt. Wisselen is veilig: er wordt niets verwijderd —
|
|---|
| 11 | Solo verbergt alleen de multi-onderdelen en toont je primaire site.
|
|---|
| 12 | </p>
|
|---|
| 13 |
|
|---|
| 14 | <form method="post" action="/admin/settings" class="set-form">
|
|---|
| 15 | <label class="set-opt">
|
|---|
| 16 | <input type="radio" name="tenancy" value="solo" <%= tenancy === 'solo' ? 'checked' : '' %>>
|
|---|
| 17 | <span>
|
|---|
| 18 | <strong>Solo</strong> — één site (de jouwe).
|
|---|
| 19 | <small>Geen gebruikers-directory, geen site-wissel. Bezoekers kunnen wel met Google inloggen om te reageren.</small>
|
|---|
| 20 | </span>
|
|---|
| 21 | </label>
|
|---|
| 22 | <label class="set-opt">
|
|---|
| 23 | <input type="radio" name="tenancy" value="hub" <%= tenancy === 'hub' ? 'checked' : '' %>>
|
|---|
| 24 | <span>
|
|---|
| 25 | <strong>Hub</strong> — bedrijfssite met <code>/user/</code>.
|
|---|
| 26 | <small>Jij (admin) wijst gebruikers een eigen PrutFolio toe. Gesloten cirkel: geen open registratie.</small>
|
|---|
| 27 | </span>
|
|---|
| 28 | </label>
|
|---|
| 29 | <button type="submit" class="btn btn-primary">Opslaan</button>
|
|---|
| 30 | </form>
|
|---|
| 31 | </section>
|
|---|
| 32 |
|
|---|
| 33 | <% if (tenancy === 'hub') { %>
|
|---|
| 34 | <section class="set-card" style="margin-top:1rem">
|
|---|
| 35 | <h2>Hub-hoofdpagina</h2>
|
|---|
| 36 | <p class="set-help">
|
|---|
| 37 | De openbare hub-pagina (<code>/</code>) is generiek — van geen enkele gebruiker.
|
|---|
| 38 | Hier stel je de naam en intro in. Jouw eigen PrutFolio blijft los bestaan onder <code>/user/</code>.
|
|---|
| 39 | </p>
|
|---|
| 40 | <form method="post" action="/admin/settings" class="set-form">
|
|---|
| 41 | <label class="set-field">
|
|---|
| 42 | <span>Naam</span>
|
|---|
| 43 | <input type="text" name="hub_title" maxlength="80" value="<%= hubTitle %>" placeholder="bijv. Studio Noord">
|
|---|
| 44 | </label>
|
|---|
| 45 | <label class="set-field">
|
|---|
| 46 | <span>Tagline</span>
|
|---|
| 47 | <input type="text" name="hub_tagline" maxlength="120" value="<%= hubTagline %>" placeholder="bijv. Onafhankelijk muzieklabel">
|
|---|
| 48 | </label>
|
|---|
| 49 | <label class="set-field">
|
|---|
| 50 | <span>Intro</span>
|
|---|
| 51 | <textarea name="hub_intro" maxlength="400" rows="3" placeholder="Korte introtekst onder de titel."><%= hubIntro %></textarea>
|
|---|
| 52 | </label>
|
|---|
| 53 | <button type="submit" class="btn btn-primary">Opslaan</button>
|
|---|
| 54 | </form>
|
|---|
| 55 | </section>
|
|---|
| 56 | <% } %>
|
|---|
| 57 | </div>
|
|---|
| 58 |
|
|---|
| 59 | <style>
|
|---|
| 60 | .admin-page { max-width: 700px; margin: 3rem auto; padding: 0 1rem; }
|
|---|
| 61 | .admin-page h1 { font-family: var(--font-display, serif); font-size: 2rem; margin: 0 0 0.25rem; }
|
|---|
| 62 | .admin-tagline { color: var(--ink-muted); margin: 0 0 2rem; }
|
|---|
| 63 | .admin-tagline a { color: var(--accent); }
|
|---|
| 64 | .set-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; }
|
|---|
| 65 | .set-card h2 { font-family: var(--font-display, serif); font-size: 1.25rem; margin: 0 0 0.5rem; }
|
|---|
| 66 | .set-help { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
|
|---|
| 67 | .set-form { display: flex; flex-direction: column; gap: 1rem; }
|
|---|
| 68 | .set-opt { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; background: var(--paper); }
|
|---|
| 69 | .set-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
|
|---|
| 70 | .set-opt input { margin-top: 0.25rem; flex-shrink: 0; }
|
|---|
| 71 | .set-opt span { display: flex; flex-direction: column; gap: 0.2rem; }
|
|---|
| 72 | .set-opt small { color: var(--ink-muted); font-size: 0.82rem; }
|
|---|
| 73 | .set-opt code { background: var(--paper-2); padding: 0.05rem 0.35rem; border-radius: 3px; font-size: 0.85em; }
|
|---|
| 74 | .set-form .btn { align-self: flex-start; }
|
|---|
| 75 | .set-field { display: flex; flex-direction: column; gap: 0.3rem; }
|
|---|
| 76 | .set-field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft, var(--ink-muted)); }
|
|---|
| 77 | .set-field input, .set-field textarea {
|
|---|
| 78 | width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem;
|
|---|
| 79 | border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink);
|
|---|
| 80 | font: inherit; font-size: 0.95rem;
|
|---|
| 81 | }
|
|---|
| 82 | .set-field textarea { resize: vertical; }
|
|---|
| 83 | .set-field input:focus, .set-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
|
|---|
| 84 | .alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
|
|---|
| 85 | .alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
|
|---|
| 86 | </style>
|
|---|