Changeset 77b6fca in Klonkt


Ignore:
Timestamp:
06/20/2026 01:06:11 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
3fb8390
Parents:
254872f
Message:

ui(auth): clickable "Administrator?" box on public login → /auth/admin

On the public login page (Google-only for visitors) there is now a
clickable box that takes the admin to the password login (/auth/admin).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/auth-login.ejs

    r254872f r77b6fca  
    6363    <div class="alert">Inloggen met Google is op deze site nog niet ingesteld.</div>
    6464  <% } %>
     65
     66  <% if (!_admin) { %>
     67    <%# Klikbare box voor de beheerder → naar de verborgen wachtwoord-login. %>
     68    <a class="auth-admin-box" href="/auth/admin<%= (typeof next !== 'undefined' && next) ? '?next=' + encodeURIComponent(next) : '' %>">
     69      <span class="auth-admin-box-icon" aria-hidden="true">🔑</span>
     70      <span class="auth-admin-box-text">
     71        <strong>Beheerder?</strong>
     72        <small>Log in met gebruikersnaam &amp; wachtwoord</small>
     73      </span>
     74      <span class="auth-admin-box-arrow" aria-hidden="true">&rarr;</span>
     75    </a>
     76  <% } %>
    6577</div>
    6678
     
    7385  .auth-notice-list li { margin: 4px 0; }
    7486  .auth-sub { color: var(--ink-muted); margin: 0 0 1rem; }
     87  .auth-admin-box {
     88    display: flex; align-items: center; gap: .75rem;
     89    margin-top: 1.25rem; padding: .8rem 1rem;
     90    border: 1px solid var(--rule); border-radius: 12px;
     91    background: var(--paper-2); color: var(--ink); text-decoration: none;
     92    transition: border-color 120ms, background 120ms;
     93  }
     94  .auth-admin-box:hover { border-color: var(--accent); background: var(--paper); }
     95  .auth-admin-box-icon { font-size: 1.3rem; }
     96  .auth-admin-box-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
     97  .auth-admin-box-text small { color: var(--ink-muted); font-size: .8rem; }
     98  .auth-admin-box-arrow { color: var(--ink-muted); font-size: 1.1rem; }
    7599</style>
Note: See TracChangeset for help on using the changeset viewer.