From 4567e93aa2d2d7d8fcc715e11d98f52588f689fc Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Thu, 16 Apr 2026 11:24:45 +0200 Subject: [PATCH] Redesign UI and add configurable branding logo - Modern dark/light theme with CSS variables, pills, cards and a sticky nav - New Branding section in admin settings: upload logo (png/jpg/svg/webp/gif, 2 MB) plus width/height sliders, proportional scale and reset - Logo served publicly via /logo and displayed on admin portal and the customer upload page; files persist under ./data/logo Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 2 +- docker-compose.yml | 1 + public/admin/index.html | 831 +++++++++++++++++++++++++++------------- public/upload.html | 258 +++++++++---- src/server.js | 67 +++- 5 files changed, 828 insertions(+), 331 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6a04a3..6f0e61c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY src ./src COPY public ./public # Prepare mount points with UID 1000 ownership so named volumes inherit it. -RUN mkdir -p /data/db /data/uploads /webdav-config \ +RUN mkdir -p /data/db /data/uploads /data/logo /webdav-config \ && chown -R 1000:1000 /data /webdav-config /app ENV NODE_ENV=production \ diff --git a/docker-compose.yml b/docker-compose.yml index a18b4d4..70d4a99 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: volumes: - ./data/db:/data/db # SQLite DB liegt hier neben docker-compose.yml - ./data/uploads:/data/uploads # Kunden-Uploads + - ./data/logo:/data/logo # Admin-Logo - webdav-config:/webdav-config # dynamisch generierte htpasswd + access.conf webdav: diff --git a/public/admin/index.html b/public/admin/index.html index 1f97555..29e9f52 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -5,56 +5,221 @@ Adminportal