From a17fd9c0106c9c62c9853cea849d56a46df9a5b5 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: Tue, 27 May 2025 13:25:19 +0200 Subject: [PATCH] Add files via upload --- admin-dashboard.html | 227 ++++++++++++++++++++++++++++++++++++++++++- banner.go | 3 + index.html | 29 +++++- 3 files changed, 252 insertions(+), 7 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index a9c5880..2498cf0 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -530,6 +530,45 @@ .banner-preview.with-image { min-height: 220px; } + + .image-position-options { + display: flex; + gap: 8px; + margin-bottom: 10px; + } + + .image-position-btn { + padding: 6px 12px; + background-color: #f8f9fa; + border: 1px solid var(--border-color); + border-radius: var(--border-radius); + font-size: 0.9rem; + cursor: pointer; + transition: var(--transition); + } + + .image-position-btn:hover { + background-color: #e9ecef; + } + + .image-position-btn.active { + background-color: var(--primary-color); + color: white; + border-color: var(--primary-color); + } + + .draggable-image { + cursor: move; + position: relative; + z-index: 10; + transition: none; + user-select: none; + } + + .draggable-image.dragging { + opacity: 0.8; + box-shadow: 0 0 10px rgba(0,0,0,0.2); + } @@ -646,6 +685,18 @@