Changeset 4c5169f in Klonkt for src/routes/hub.js


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/routes/hub.js

    r6e0249f r4c5169f  
    3737  // ALLE PrutFolio's (elke user, incl. de admin z'n eigen site) voor de roster.
    3838  const artists = db.prepare(`
    39     SELECT s.slug, s.title, s.tagline, s.profile_photo,
     39    SELECT s.slug, s.title, s.tagline, s.profile_photo, s.accent,
    4040           (SELECT COUNT(*) FROM posts WHERE site_id = s.id AND status = 'published') AS post_count
    4141    FROM sites s
     
    4949    tagline: getSetting('hub_tagline') || '',
    5050    intro: getSetting('hub_intro') || '',
     51    heroImage: getSetting('hub_hero_image') || '',
    5152  };
    5253
Note: See TracChangeset for help on using the changeset viewer.