Changeset 79bba6e in Klonkt for src/views/pages/hub-home.ejs


Ignore:
Timestamp:
06/17/2026 12:29:16 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
cbd1761
Parents:
44cf44d
Message:

Audio never jumps + hub topnav + Prutter chat mobile-first

  • Global link boost in shell.ejs: all internal navigation links go through htmx into #pcms-main (session/auth/downloads/assets excluded), so the audio player keeps playing everywhere — including clicks within Admin. Back/forward re-fetches (historyCacheSize=0) so the OOB header comes along.
  • Hub-home: the mini topnav bar now shows on the hub landing (no large profile header — the hero is the header); duplicate .hub-nav removed.
  • Prutter conversation: full-height mobile-first chat (bodyClass on-chat → no artist profile header). Page pinned fixed between topnav and the bottom bars; only the thread scrolls. Compact header + clean composer.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/hub-home.ejs

    r44cf44d r79bba6e  
    11<div class="hub<%= hub.heroImage ? ' hub--img' : '' %>">
    22
    3   <%# ── Minimale nav (alleen auth) — over de hero, geen brand/switcher ── %>
    4   <nav class="hub-nav">
    5     <div class="hub-nav-inner container">
    6       <% if (user) { %>
    7         <% if (typeof canSeeBeheer !== 'undefined' && canSeeBeheer) { %>
    8           <a class="hub-nav-link" href="/admin"
    9              hx-get="/admin?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
    10              hx-push-url="/admin" hx-indicator="#pcms-loading">Beheer</a>
    11         <% } %>
    12         <a class="hub-nav-link" href="/account"
    13            hx-get="/account?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
    14            hx-push-url="/account" hx-indicator="#pcms-loading"><%= user.username %></a>
    15         <a class="hub-nav-link" href="/auth/logout">Uitloggen</a>
    16       <% } else { %>
    17         <a class="hub-nav-link" href="/auth/login">Inloggen</a>
    18       <% } %>
    19     </div>
    20   </nav>
    21 
    22   <%# ── HERO (label) — de pagina begint hier, geen header erboven ────── %>
     3  <%# ── HERO (label) — de mini topnav-balk staat erboven (chrome.ejs);
     4        de hero zelf is de "grote" header van de hub-home ──────────────── %>
    235  <header class="hub-hero<%= hub.heroImage ? ' has-img' : '' %>"<% if (hub.heroImage) { %> style="--hero-img:url('<%= hub.heroImage %>'); --hero-ov:<%= ((hub.heroOverlay == null ? 45 : hub.heroOverlay)/100).toFixed(2) %>"<% } %>>
    246    <div class="hub-hero-inner container">
Note: See TracChangeset for help on using the changeset viewer.