Changeset 08cfdaa in Klonkt


Ignore:
Timestamp:
06/20/2026 06:49:21 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
d252ce8
Parents:
e6ad948
Message:

feat(epk): admin-only "Edit" button on the press kit page itself

On /pers, next to "Press kit" an ✎ Edit link to /admin/epk appears — only
visible for a logged-in god (admin); visitors/press don't see it.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/epk.ejs

    re6ad948 r08cfdaa  
    1111    <% if (_photo) { %><div class="epk-photo"><img src="<%= _photo %>" alt="<%= site.title %>"></div><% } %>
    1212    <div class="epk-hero-text">
    13       <div class="epk-kicker">Perskit</div>
     13      <div class="epk-kicker">Perskit<% if (typeof user !== 'undefined' && user && user.role === 'god') { %> <a class="epk-edit-link" href="/admin/epk">✎ Bewerken</a><% } %></div>
    1414      <h1 class="epk-title"><%= site.title %></h1>
    1515      <% if (epkBio) { %><p class="epk-bio"><%= epkBio %></p><% } %>
     
    6969  .epk-hero-text { flex: 1 1 280px; min-width: 240px; }
    7070  .epk-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--epk-accent); margin-bottom: 6px; }
     71  .epk-edit-link { text-transform: none; letter-spacing: normal; font-weight: 600; font-size: 12px; margin-left: 8px; padding: 2px 8px; border: 1px solid rgba(128,128,128,.4); border-radius: 999px; color: inherit; opacity: .8; text-decoration: none; }
     72  .epk-edit-link:hover { opacity: 1; border-color: var(--epk-accent); color: var(--epk-accent); }
    7173  .epk-title { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; margin: 0 0 12px; }
    7274  .epk-bio { font-size: 16px; line-height: 1.6; opacity: .9; margin: 0 0 18px; max-width: 52ch; }
Note: See TracChangeset for help on using the changeset viewer.