Update display_global.php

This commit is contained in:
Lizandro Guarnizo
2026-06-11 21:57:30 -05:00
parent dc2a7e16fb
commit 358305a793
+59 -38
View File
@@ -27,9 +27,9 @@ $_hasVideo = (bool)$_tvVideo;
html, body {
height: 100%; width: 100%;
overflow: hidden;
background: #0f172a;
background: #f8fafc;
font-family: 'Segoe UI', system-ui, sans-serif;
color: #fff;
color: #1e293b;
}
:root {
--brand: <?= $_labColor ?>;
@@ -46,33 +46,40 @@ $_hasVideo = (bool)$_tvVideo;
/* ── Header ── */
.pg-header {
display: flex; align-items: center; gap: 1rem;
padding: .5rem 1.5rem;
background: rgba(15,23,42,.95);
border-bottom: 1px solid rgba(255,255,255,.06);
padding: .7rem 1.8rem;
background: #fff;
border-bottom: 1px solid #e2e8f0;
flex-shrink: 0;
}
.hd-brand { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; }
.hd-brand .logo {
height: 40px; max-width: 100px; object-fit: contain;
background: rgba(255,255,255,.1); border-radius: 6px; padding: 3px 5px;
height: 44px; max-width: 110px; object-fit: contain;
background: #f1f5f9; border-radius: 8px; padding: 4px 7px;
}
.lab-nombre {
font-size: clamp(.9rem, 1.8vw, 1.2rem);
font-weight: 700; color: #fff;
font-size: clamp(1.1rem, 2vw, 1.4rem);
font-weight: 700; color: #1e293b;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-right { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.reloj {
font-size: clamp(1rem, 2vw, 1.5rem);
font-weight: 700; color: rgba(255,255,255,.7);
font-size: clamp(1.3rem, 2.5vw, 1.7rem);
font-weight: 700; color: #64748b;
font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.live-dot {
width: 7px; height: 7px; border-radius: 50%;
width: 8px; height: 8px; border-radius: 50%;
background: #4ade80; box-shadow: 0 0 8px #4ade80;
animation: pdot 2s ease-in-out infinite;
}
@keyframes pdot { 0%,100%{opacity:1} 50%{opacity:.3} }
.btn-fs {
background: transparent; border: 1px solid #e2e8f0;
color: #64748b; border-radius: 8px; padding: 6px 10px;
font-size: .85rem; cursor: pointer; font-family: inherit;
transition: background .15s;
}
.btn-fs:hover { background: #f1f5f9; }
/* ── Main body ── */
.pg-body {
@@ -81,9 +88,7 @@ $_hasVideo = (bool)$_tvVideo;
overflow: hidden;
position: relative;
}
.pg-body.has-video {
grid-template-columns: 1fr;
}
/* ── Turno activo (centro) ── */
.turno-activo {
@@ -95,9 +100,9 @@ $_hasVideo = (bool)$_tvVideo;
overflow: hidden;
}
.turno-activo .label {
font-size: clamp(.7rem, 1.2vw, .9rem);
font-size: clamp(.85rem, 1.4vw, 1.05rem);
font-weight: 700; text-transform: uppercase; letter-spacing: 4px;
color: rgba(255,255,255,.35);
color: #94a3b8;
margin-bottom: .2rem;
}
.turno-activo .codigo {
@@ -105,30 +110,29 @@ $_hasVideo = (bool)$_tvVideo;
font-weight: 900; line-height: 1;
letter-spacing: -4px;
color: var(--brand);
text-shadow: 0 0 60px var(--brand-glow), 0 0 120px var(--brand-glow);
transition: color .3s;
font-variant-numeric: tabular-nums;
}
.turno-activo .lugar-label {
font-size: clamp(1rem, 2.5vw, 1.8rem);
font-size: clamp(1.1rem, 2.7vw, 1.9rem);
font-weight: 600;
color: rgba(255,255,255,.55);
color: #94a3b8;
margin-top: .3rem;
}
.turno-activo .lugar-nombre {
font-size: clamp(1.4rem, 3.5vw, 2.6rem);
font-size: clamp(1.5rem, 3.7vw, 2.8rem);
font-weight: 800;
color: #fff;
color: #1e293b;
margin-top: .1rem;
}
.turno-activo .pac-nombre {
font-size: clamp(.8rem, 1.6vw, 1.1rem);
color: rgba(255,255,255,.4);
font-size: clamp(.9rem, 1.8vw, 1.2rem);
color: #64748b;
margin-top: .3rem;
}
.turno-activo .sin-turno {
font-size: clamp(1.2rem, 2.5vw, 1.8rem);
color: rgba(255,255,255,.15);
color: #cbd5e1;
}
/* ── Video reel (columna derecha, alto completo) ── */
@@ -141,7 +145,7 @@ $_hasVideo = (bool)$_tvVideo;
background: #000;
border-left: 1px solid rgba(255,255,255,.06);
}
.reel-wrap.has-video { display: block; }
.reel-wrap.has-video { display: block; height: 100%; }
.reel-wrap video {
width: 100%; height: 100%;
object-fit: cover;
@@ -150,8 +154,8 @@ $_hasVideo = (bool)$_tvVideo;
/* ── Waiting queue ── */
.pg-cola {
background: rgba(15,23,42,.9);
border-top: 1px solid rgba(255,255,255,.06);
background: #fff;
border-top: 1px solid #e2e8f0;
padding: .35rem 1rem;
display: flex;
align-items: center;
@@ -165,20 +169,20 @@ $_hasVideo = (bool)$_tvVideo;
.cola-lbl {
font-size: .6rem; font-weight: 700;
text-transform: uppercase; letter-spacing: 1.5px;
color: rgba(255,255,255,.3); white-space: nowrap; flex-shrink: 0;
color: #94a3b8; white-space: nowrap; flex-shrink: 0;
}
.cola-sep { width: 1px; height: 18px; background: rgba(255,255,255,.08); flex-shrink: 0; }
.cola-sep { width: 1px; height: 18px; background: #e2e8f0; flex-shrink: 0; }
.cola-chip {
display: inline-flex; align-items: center; gap: .25rem;
padding: .2rem .6rem; border-radius: 99px;
font-size: .72rem; font-weight: 700;
border: 1px solid rgba(255,255,255,.1);
background: rgba(255,255,255,.04);
color: rgba(255,255,255,.6);
border: 1px solid #e2e8f0;
background: #f8fafc;
color: #475569;
white-space: nowrap; flex-shrink: 0;
}
.cola-chip .cdot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.cola-empty { font-size: .65rem; color: rgba(255,255,255,.2); }
.cola-empty { font-size: .65rem; color: #cbd5e1; }
/* ── Announcement overlay ── */
#ann-overlay {
@@ -237,21 +241,22 @@ $_hasVideo = (bool)$_tvVideo;
display: flex; justify-content: center; align-items: center;
gap: 1.5rem;
padding: .25rem 1rem;
background: rgba(15,23,42,.85);
background: #fff;
border-top: 1px solid #e2e8f0;
flex-shrink: 0;
z-index: 50;
}
.stat-item { text-align: center; }
.stat-item .val {
font-size: clamp(.7rem, 1.2vw, .85rem);
font-weight: 700; color: rgba(255,255,255,.7);
font-weight: 700; color: #475569;
font-variant-numeric: tabular-nums;
}
.stat-item .lbl {
font-size: .5rem; color: rgba(255,255,255,.25);
font-size: .5rem; color: #94a3b8;
text-transform: uppercase; letter-spacing: 1px;
}
.stat-sep { width: 1px; height: 18px; background: rgba(255,255,255,.08); }
.stat-sep { width: 1px; height: 18px; background: #e2e8f0; }
@media (min-width: 1200px) {
.reel-wrap { width: 200px; height: 356px; }
@@ -282,6 +287,9 @@ $_hasVideo = (bool)$_tvVideo;
<div class="hd-right">
<div class="live-dot"></div>
<div class="reloj" id="reloj">--:--:--</div>
<button class="btn-fs" onclick="toggleFullscreen()" title="Pantalla completa">
<i class="fas fa-expand" id="fs-icon"></i>
</button>
</div>
</header>
@@ -329,6 +337,19 @@ function tick() {
}
tick(); setInterval(tick, 1000);
/* ── Fullscreen ── */
function toggleFullscreen() {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen().catch(() => {});
} else {
document.exitFullscreen().catch(() => {});
}
}
document.addEventListener('fullscreenchange', () => {
const ico = document.getElementById('fs-icon');
if (ico) ico.className = document.fullscreenElement ? 'fas fa-compress' : 'fas fa-expand';
});
/* ── Announcement ── */
const annQueue = [];
let isAnnouncing = false;