source: Klonkt/src/views/pages/admin-settings.ejs@ a64f642

main
Last change on this file since a64f642 was 4c5169f, checked in by roboburr <roboburr@…>, 3 months ago

hub: overview is a headerless landing with hero image

The hub overview now starts directly with the hero — no masthead/profile-header/
view-switcher/bottom-tab (those belong to a PrutFolio and appear on /user/
pages). Hero supports a background image (setting hub_hero_image, configurable
in Admin) with a dark overlay; otherwise gradient. Roster avatars use each
artist's accent color.

  • shell.ejs: chrome gated on bodyClass 'on-hub'.
  • hub.js: artists.accent + hub.heroImage from settings.
  • admin-settings: hub_hero_image field.

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 4.7 KB
RevLine 
[6351545]1<div class="container admin-page">
2 <h1>Instellingen</h1>
[8b014ef]3 <p><a href="/admin" class="btn">&larr; Beheer</a></p>
[6351545]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>
[52215bc]25 <strong>Hub</strong> — bedrijfssite met <code>/user/</code>.
[6351545]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>
[6e0249f]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>
[4c5169f]53 <label class="set-field">
54 <span>Hero-afbeelding (URL) <small style="font-weight:400;color:var(--ink-muted)">— optioneel; achtergrond van de hero</small></span>
55 <input type="text" name="hub_hero_image" maxlength="300" value="<%= hubHeroImage %>" placeholder="/media/... of https://...">
56 </label>
[6e0249f]57 <button type="submit" class="btn btn-primary">Opslaan</button>
58 </form>
59 </section>
60 <% } %>
[6351545]61</div>
62
63<style>
64.admin-page { max-width: 700px; margin: 3rem auto; padding: 0 1rem; }
65.admin-page h1 { font-family: var(--font-display, serif); font-size: 2rem; margin: 0 0 0.25rem; }
66.admin-tagline { color: var(--ink-muted); margin: 0 0 2rem; }
67.admin-tagline a { color: var(--accent); }
68.set-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; }
69.set-card h2 { font-family: var(--font-display, serif); font-size: 1.25rem; margin: 0 0 0.5rem; }
70.set-help { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
71.set-form { display: flex; flex-direction: column; gap: 1rem; }
72.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); }
73.set-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
74.set-opt input { margin-top: 0.25rem; flex-shrink: 0; }
75.set-opt span { display: flex; flex-direction: column; gap: 0.2rem; }
76.set-opt small { color: var(--ink-muted); font-size: 0.82rem; }
77.set-opt code { background: var(--paper-2); padding: 0.05rem 0.35rem; border-radius: 3px; font-size: 0.85em; }
78.set-form .btn { align-self: flex-start; }
[6e0249f]79.set-field { display: flex; flex-direction: column; gap: 0.3rem; }
80.set-field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft, var(--ink-muted)); }
81.set-field input, .set-field textarea {
82 width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem;
83 border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink);
84 font: inherit; font-size: 0.95rem;
85}
86.set-field textarea { resize: vertical; }
87.set-field input:focus, .set-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
[6351545]88.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
89.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
90</style>
Note: See TracBrowser for help on using the repository browser.