Changeset a7e12de in Klonkt for src/views


Ignore:
Timestamp:
06/14/2026 03:48:20 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
ccbd6a6
Parents:
337ec5a
Message:

auth: no shell chrome on login/register/reset (headerless focus screens)

Auth pages get bodyClass 'on-auth'; shell gates masthead/profile-header/
view-switcher/bottom-tab on a shared bareChrome flag (on-hub OR on-auth).
Logging in is now a clean screen without a header.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/shell.ejs

    r337ec5a ra7e12de  
    239239<body class="<%= bodyClass || 'on-home' %> has-bottom-tab" data-feed-view="<%= _e(safeSite.feed_view_default || 'timeline') %>" data-grid-cols="3">
    240240
    241 <%# Hub-overview is een standalone landing: geen masthead/profile-header/
    242     view-switcher — die horen bij een PrutFolio (en verschijnen dus op /user/-
    243     pagina's). De landing begint meteen met de hero. %>
    244 <% var isHubLanding = (typeof bodyClass === 'string' && bodyClass.indexOf('on-hub') >= 0); %>
    245 
    246 <% if (!isHubLanding) { %>
     241<%# Geen shell-chrome (masthead/profile-header/view-switcher/bottom-tab) op:
     242    - de hub-overview (on-hub): standalone landing, begint met de hero;
     243    - auth-pagina's (on-auth): focus-schermen voor in-/uitloggen.
     244    Die chrome hoort bij een PrutFolio en verschijnt dus op /user/-pagina's. %>
     245<% var bareChrome = (typeof bodyClass === 'string' && (bodyClass.indexOf('on-hub') >= 0 || bodyClass.indexOf('on-auth') >= 0)); %>
     246
     247<% if (!bareChrome) { %>
    247248  <%- include('partials/topnav') %>
    248249  <%- include('partials/profile-header') %>
     
    253254    on non-feed pages (post, account, search, auth) it navigates to /
    254255    in the chosen view. Click logic is in shell.ejs at the bottom. %>
    255 <% if (!isAdminPage && !isHubLanding) { %>
     256<% if (!isAdminPage && !bareChrome) { %>
    256257  <%- include('partials/view-switcher') %>
    257258<% } %>
     
    268269<%- include('partials/footer') %>
    269270
    270 <!-- Mobile bottom-tab navigation (auto-hidden ≥768px) — niet op de hub-landing -->
    271 <% if (!isHubLanding) { %>
     271<!-- Mobile bottom-tab navigation (auto-hidden ≥768px) — niet op landing/auth -->
     272<% if (!bareChrome) { %>
    272273<%- include('partials/bottom-tab') %>
    273274<% } %>
Note: See TracChangeset for help on using the changeset viewer.