Changeset 4c5169f in Klonkt for src/routes/admin-settings.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/admin-settings.js

    r6e0249f r4c5169f  
    2626    hubTagline: getSetting('hub_tagline') || '',
    2727    hubIntro: getSetting('hub_intro') || '',
     28    hubHeroImage: getSetting('hub_hero_image') || '',
    2829    success: req.query.success || null,
    2930  });
     
    4344    setSetting('hub_intro', (req.body.hub_intro || '').toString().slice(0, 400).trim());
    4445  }
     46  if (typeof req.body.hub_hero_image !== 'undefined') {
     47    setSetting('hub_hero_image', (req.body.hub_hero_image || '').toString().slice(0, 300).trim());
     48  }
    4549  res.redirect('/admin/settings?success=' + encodeURIComponent('Opgeslagen'));
    4650});
Note: See TracChangeset for help on using the changeset viewer.