From 56c8ca1f40ee32765f89d6ae97a6b021cc8ce747 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 12:56:19 +0200 Subject: [PATCH] Add files via upload --- admin-dashboard.html | 123 +++++++++++++++++++++++++++++++++++++++---- banner.go | 8 ++- index.html | 56 ++++++++++++++++---- 3 files changed, 163 insertions(+), 24 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index 86f5b8d..59b53d7 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -100,10 +100,73 @@ background-color: #f0f0f0; } .banner-preview { - margin-top: 20px; - padding: 15px; + margin: 20px auto; + padding: 20px; border: 1px dashed #ccc; + border-radius: 8px; + max-width: 800px; + min-height: 100px; + display: flex; + align-items: center; + justify-content: center; + position: relative; + overflow: hidden; + } + .banner-preview img { + max-width: 100%; + max-height: 200px; + object-fit: contain; + } + .banner-preview.with-image { + min-height: 200px; + } + .banner-preview-content { + position: relative; + z-index: 2; + text-align: center; + padding: 20px; + } + .banner-preview-bg { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-size: cover; + background-position: center; + opacity: 0.7; + z-index: 1; + } + .banner-preview-text { + position: relative; + z-index: 2; + color: inherit; + } + .color-picker-container { + display: flex; + align-items: center; + gap: 10px; + } + .color-picker { + width: 40px; + height: 30px; + padding: 0; + border: 1px solid #ddd; border-radius: 4px; + cursor: pointer; + } + .image-upload-container { + margin: 15px 0; + padding: 15px; + border: 1px dashed #ddd; + border-radius: 4px; + text-align: center; + } + .image-preview { + max-width: 200px; + max-height: 150px; + margin: 10px auto; + display: block; } .card p { color: #666; @@ -120,11 +183,29 @@

Vítejte v administraci

-
+

Správa banneru

+
- + +
+ +
+ + +
+ +
+ + +
+ + +
+

Styl banneru

@@ -137,16 +218,18 @@
-
- +
+ +
-
- +
+ +
@@ -167,7 +250,22 @@
- + +
+ +
+ + +
+ +
+ + +
+ +
+ +

Předvolby stylů

@@ -178,8 +276,11 @@
Chyba
- -
+
+ +