Changeset 63edb0d in Klonkt for src/views/pages/hub-home.ejs


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/views/pages/hub-home.ejs

    raf5407f r63edb0d  
    1717
    1818  <%# ── HERO (label) — de pagina begint hier, geen header erboven ────── %>
    19   <header class="hub-hero<%= hub.heroImage ? ' has-img' : '' %>"<% if (hub.heroImage) { %> style="--hero-img:url('<%= hub.heroImage %>')"<% } %>>
     19  <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) %>"<% } %>>
    2020    <div class="hub-hero-inner container">
    2121      <h1 class="hub-hero-title"><%= hub.title %></h1>
     
    128128.hub-hero.has-img {
    129129  background:
    130     linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 100%),
     130    linear-gradient(rgba(0,0,0,var(--hero-ov,.45)), rgba(0,0,0,var(--hero-ov,.45))),
    131131    var(--hero-img) center / cover no-repeat;
    132132  border-bottom: 0;
Note: See TracChangeset for help on using the changeset viewer.