Changeset 03bfdce in Klonkt for src/views/partials


Ignore:
Timestamp:
06/16/2026 11:35:13 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
108fd5f
Parents:
09ac0a5
Message:

Hub: always render chrome + CSS toggle (body.on-hub) → hub nav via htmx (no audio jumping)

In hub mode, topnav/view-switcher are now always in the DOM; CSS hides them
on the hub landing (body.on-hub, also toggled in the htmx body-class swap).
Roster, main card, feed, and brand links are now htmx → navigating between
hub-home and an artist happens in-place, so the persistent audio player
stays alive (no jumping). Solo/circle completely unchanged
(renderChrome = !bareChrome there).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/topnav.ejs

    r09ac0a5 r03bfdce  
    2828        <a href="<%= _siteUrlBase %>/" class="nav-link nav-link-admin">← Terug naar site</a>
    2929      <% } else if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %>
    30         <%# Hub: de brand is de hub-naam en gaat naar de hub-home (volledige nav, geen
    31             HTMX, zodat de headerloze overview correct rendert). Eigen class want
    32             .site-title is overal display:none. %>
    33         <a class="nav-hub-home" href="/" aria-label="Home" title="Home">
     30        <%# Hub: de brand gaat naar de hub-home via HTMX. De chrome wordt in hub-modus
     31            altijd gerenderd en via body.on-hub (CSS) verborgen op de landing, dus htmx
     32            kan schakelen zonder full-reload → de audioplayer blijft leven. %>
     33        <a class="nav-hub-home" href="/" aria-label="Home" title="Home"
     34           hx-get="/?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/" hx-indicator="#pcms-loading">
    3435          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
    3536        </a>
Note: See TracChangeset for help on using the changeset viewer.