| 1 | <div class="container admin-page">
|
|---|
| 2 | <h1>Perskit bewerken</h1>
|
|---|
| 3 | <p><a href="/admin" class="btn">← Beheer</a> <a href="/pers" class="btn" target="_blank" rel="noopener">📰 Bekijk perskit</a></p>
|
|---|
| 4 |
|
|---|
| 5 | <% if (success) { %><div class="alert alert-success"><%= success %></div><% } %>
|
|---|
| 6 |
|
|---|
| 7 | <section class="set-card">
|
|---|
| 8 | <h2>Tekst</h2>
|
|---|
| 9 | <p class="set-help">
|
|---|
| 10 | De perskit (<code>/pers</code>) toont je sitenaam + foto, deze bio en contact,
|
|---|
| 11 | plus automatisch je meest beluisterde nummers en recente posts. Laat de bio
|
|---|
| 12 | leeg om de site-tagline te gebruiken; laat contact leeg om niets te tonen
|
|---|
| 13 | (je login-mail wordt nooit automatisch getoond).
|
|---|
| 14 | </p>
|
|---|
| 15 |
|
|---|
| 16 | <form method="post" action="/admin/epk" class="set-form">
|
|---|
| 17 | <label class="set-field">
|
|---|
| 18 | <span>Pers-bio</span>
|
|---|
| 19 | <textarea name="epk_bio" rows="5" maxlength="1000"
|
|---|
| 20 | placeholder="Korte beschrijving van jou/het project voor pers & boekers."><%= epkBio %></textarea>
|
|---|
| 21 | </label>
|
|---|
| 22 | <label class="set-field">
|
|---|
| 23 | <span>Pers-contact</span>
|
|---|
| 24 | <input type="text" name="epk_contact" maxlength="300"
|
|---|
| 25 | placeholder="bv. pers@jouwdomein.nl of een boekingslink"
|
|---|
| 26 | value="<%= epkContact %>">
|
|---|
| 27 | </label>
|
|---|
| 28 | <button type="submit" class="btn btn-primary">Opslaan</button>
|
|---|
| 29 | </form>
|
|---|
| 30 | </section>
|
|---|
| 31 | </div>
|
|---|
| 32 |
|
|---|
| 33 | <style>
|
|---|
| 34 | .admin-page .set-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; margin-top: 1rem; }
|
|---|
| 35 | .admin-page .set-card h2 { font-family: var(--font-display, serif); font-size: 1.25rem; margin: 0 0 0.5rem; }
|
|---|
| 36 | .admin-page .set-help { font-size: 0.85rem; color: var(--ink-soft, var(--ink-muted)); line-height: 1.5; margin: 0 0 1rem; max-width: 60ch; }
|
|---|
| 37 | .admin-page .set-form { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; }
|
|---|
| 38 | .admin-page .set-field { display: flex; flex-direction: column; gap: 0.3rem; }
|
|---|
| 39 | .admin-page .set-field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft, var(--ink-muted)); }
|
|---|
| 40 | .admin-page .set-field input,
|
|---|
| 41 | .admin-page .set-field textarea {
|
|---|
| 42 | width: 100%; box-sizing: border-box;
|
|---|
| 43 | padding: 0.6rem 0.75rem;
|
|---|
| 44 | border: 1px solid var(--rule); border-radius: 6px;
|
|---|
| 45 | background: var(--paper); color: var(--ink);
|
|---|
| 46 | font-family: var(--font-ui, system-ui), sans-serif; font-size: 0.95rem;
|
|---|
| 47 | -webkit-appearance: none; appearance: none;
|
|---|
| 48 | }
|
|---|
| 49 | .admin-page .set-field textarea { resize: vertical; line-height: 1.5; }
|
|---|
| 50 | .admin-page .set-field input:focus,
|
|---|
| 51 | .admin-page .set-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
|
|---|
| 52 | .admin-page .set-form .btn { align-self: flex-start; }
|
|---|
| 53 | </style>
|
|---|