Changeset 63edb0d in Klonkt for src/routes/hub.js


Ignore:
Timestamp:
06/16/2026 01:08:28 AM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
0b7ebbf
Parents:
af5407f
Message:

hub: hero image upload + dark overlay slider

Reconcile of live edits on /srv that were not yet in git (split-brain).

  • admin-settings: multer upload (jpg/png/webp/gif, 5MB, SVG blocked against XSS) + overlay clamp
  • hub.js / hub-home.ejs: dark overlay as CSS var (default 45%, non-breaking)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/hub.js

    raf5407f r63edb0d  
    7171    intro: getSetting('hub_intro') || '',
    7272    heroImage: getSetting('hub_hero_image') || '',
     73    heroOverlay: (() => { const v = parseInt(getSetting('hub_hero_overlay'), 10); return Number.isFinite(v) ? Math.max(0, Math.min(100, v)) : 45; })(),
    7374  };
    7475
Note: See TracChangeset for help on using the changeset viewer.