From 50f7346d57a473a14694857fd5b24d6c3d5fa912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= <150935816+Dvorinka@users.noreply.github.com> Date: Mon, 26 May 2025 13:39:49 +0200 Subject: [PATCH] Add files via upload --- admin-dashboard.html | 521 ++++++++++++++++++++++++++++++++----------- banner.go | 72 +++++- 2 files changed, 458 insertions(+), 135 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index 5d03667..a6fca31 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -100,32 +100,46 @@ background-color: #f0f0f0; } .banner-preview { - margin: 20px auto; - padding: 20px; - border: 1px dashed #ccc; + margin: 1rem 0; + padding: 0; + border: 2px dashed #ccc; border-radius: 8px; - max-width: 800px; - min-height: 100px; - display: flex; - align-items: center; - justify-content: center; + background-color: #fff; + display: none; position: relative; overflow: hidden; + min-height: 150px; + transition: all 0.3s ease; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); } + + .banner-preview:hover { + border-color: #999; + box-shadow: 0 4px 8px rgba(0,0,0,0.15); + } + .banner-preview img { max-width: 100%; - max-height: 200px; + max-height: 300px; object-fit: contain; + display: block; + margin: 0 auto; } + .banner-preview.with-image { min-height: 200px; } + .banner-preview-content { position: relative; z-index: 2; text-align: center; - padding: 20px; + padding: 30px 20px; + margin: 0; + width: 100%; + box-sizing: border-box; } + .banner-preview-bg { position: absolute; top: 0; @@ -134,12 +148,21 @@ bottom: 0; background-size: cover; background-position: center; + background-repeat: no-repeat; opacity: 0.7; z-index: 1; + transition: opacity 0.3s ease; } + .banner-preview-text { position: relative; z-index: 2; + margin: 0; + padding: 20px; + font-size: 1.2rem; + line-height: 1.5; + word-wrap: break-word; + text-shadow: 1px 1px 2px rgba(0,0,0,0.1); color: inherit; } .color-picker-container { @@ -328,6 +351,9 @@ +

+ Doporučený poměr stran: 3:1 (např. 1200x400px) +

@@ -393,6 +419,9 @@
@@ -403,15 +432,21 @@ -