diff --git a/templates/webcam.html b/templates/webcam.html index 3ef3162..c0704da 100644 --- a/templates/webcam.html +++ b/templates/webcam.html @@ -69,22 +69,40 @@ .offline-overlay .sub { font-size: 14px; opacity: 0.8; } .counter-box { position: absolute; - top: 10px; - left: 10px; - background: rgba(0, 0, 0, 0.78); + top: 14px; + left: 14px; + background: rgba(18, 20, 26, 0.82); + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: 14px; + padding: 14px 16px; color: #fff; - padding: 8px 14px 10px; - border-radius: 6px; - font-family: monospace; - font-size: 14px; - line-height: 1.5; + font-family: system-ui, -apple-system, sans-serif; cursor: move; user-select: none; z-index: 4; - min-width: 150px; + min-width: 215px; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); + backdrop-filter: blur(2px); } - .counter-box .cb-total { font-size: 18px; font-weight: bold; margin-bottom: 2px; } - .counter-box .cb-grip { opacity: 0.5; font-size: 11px; margin-top: 4px; } + .cb-header { + display: flex; align-items: center; gap: 8px; + font-size: 12px; letter-spacing: 1.5px; color: #cfd3dc; + padding-bottom: 10px; margin-bottom: 4px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + } + .cb-dot { width: 9px; height: 9px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 6px #3b82f6; } + .cb-row { display: flex; align-items: center; gap: 12px; padding: 6px 2px; } + .cb-icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--accent, #fff); } + .cb-label { flex: 1; font-size: 14px; letter-spacing: 0.5px; color: #e7e9ee; } + .cb-val { font-size: 18px; font-weight: 700; color: var(--accent, #fff); font-variant-numeric: tabular-nums; } + .cb-car { --accent: #22c55e; } + .cb-truck { --accent: #3b82f6; } + .cb-bus { --accent: #a855f7; } + .cb-moto { --accent: #ef4444; } + .cb-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 6px 0; } + .cb-total-row { padding-top: 4px; } + .cb-total-label { flex: 1; font-size: 13px; letter-spacing: 1.5px; color: #9aa0a6; } + .cb-total-val { font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; } .video-container { position: relative; width: 1020px; @@ -162,12 +180,27 @@
-
Gesamt: 0
-
Autos: 0
-
LKW: 0
-
Busse: 0
-
Motorräder: 0
-
⠿ ziehen
+
LIVE COUNT
+
+ + CARS0 +
+
+ + TRUCKS0 +
+
+ + BUSES0 +
+
+ + MOTORCYCLES0 +
+
+
+ TOTAL0 +
📷