Changeset 4c5169f in Klonkt for src/views/shell.ejs


Ignore:
Timestamp:
06/14/2026 03:37:12 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
337ec5a
Parents:
6e0249f
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/shell.ejs

    r6e0249f r4c5169f  
    239239<body class="<%= bodyClass || 'on-home' %> has-bottom-tab" data-feed-view="<%= _e(safeSite.feed_view_default || 'timeline') %>" data-grid-cols="3">
    240240
    241 <%- include('partials/topnav') %>
    242 
    243 <%- include('partials/profile-header') %>
     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) { %>
     247  <%- include('partials/topnav') %>
     248  <%- include('partials/profile-header') %>
     249<% } %>
    244250
    245251<%# View switcher — visible on every non-admin page. On feed pages
     
    247253    on non-feed pages (post, account, search, auth) it navigates to /
    248254    in the chosen view. Click logic is in shell.ejs at the bottom. %>
    249 <% if (!isAdminPage) { %>
     255<% if (!isAdminPage && !isHubLanding) { %>
    250256  <%- include('partials/view-switcher') %>
    251257<% } %>
     
    262268<%- include('partials/footer') %>
    263269
    264 <!-- Mobile bottom-tab navigation (auto-hidden ≥768px) -->
     270<!-- Mobile bottom-tab navigation (auto-hidden ≥768px) — niet op de hub-landing -->
     271<% if (!isHubLanding) { %>
    265272<%- include('partials/bottom-tab') %>
     273<% } %>
    266274
    267275<!-- Mobile profile sheet (auto-hidden ≥768px; only rendered when logged in) -->
Note: See TracChangeset for help on using the changeset viewer.