Enhanced Dashboard
This commit is contained in:
+83
-44
@@ -3,61 +3,100 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>DMR Web Receiver</title>
|
||||
<title>DMR Web Receiver Pro</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; text-align: center; background-color: #2c3e50; color: white; margin-top: 40px; }
|
||||
.container { max-width: 420px; margin: 0 auto; background: #34495e; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
|
||||
.display { background: #1abc9c; padding: 20px; border-radius: 5px; font-size: 24px; font-family: monospace; margin-bottom: 20px; color: #fff; font-weight: bold; transition: background 0.3s; }
|
||||
|
||||
.tg-box { display: flex; gap: 10px; margin-bottom: 15px; }
|
||||
input[type="number"] { flex: 1; padding: 12px; font-size: 16px; border-radius: 5px; border: none; outline: none; text-align: center; font-weight: bold; }
|
||||
.set-btn { background-color: #e67e22; color: white; border: none; padding: 12px 18px; border-radius: 5px; font-size: 15px; cursor: pointer; font-weight: bold; }
|
||||
.set-btn:hover { background-color: #d35400; }
|
||||
:root {
|
||||
--bg-main: #0a0a0c;
|
||||
--panel-bg: #15161a;
|
||||
--accent: #ff8c00;
|
||||
--accent-hover: #ff6a00;
|
||||
--lcd-bg: #05140a;
|
||||
--lcd-text: #00ff41;
|
||||
}
|
||||
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-main); color: #e0e0e0; margin: 0; padding: 30px 15px; }
|
||||
h2 { text-align: center; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; font-size: 22px; }
|
||||
|
||||
.quick-tg { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
|
||||
.quick-btn { background: #7f8c8d; color: white; border: none; padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; }
|
||||
.quick-btn:hover { background: #95a5a6; }
|
||||
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; max-width: 850px; margin: 0 auto; }
|
||||
.panel { background: var(--panel-bg); border: 1px solid #2a2b30; border-radius: 6px; padding: 25px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.6); display: flex; flex-direction: column; }
|
||||
|
||||
/* --- STILE PER IL CONTROLLO VOLUME --- */
|
||||
.volume-box { margin-bottom: 20px; text-align: left; background: #2c3e50; padding: 10px 15px; border-radius: 5px; }
|
||||
.volume-box label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: #bdc3c7; font-weight: bold; }
|
||||
input[type="range"] { width: 100%; cursor: pointer; accent-color: #3498db; }
|
||||
.panel-title { font-size: 11px; text-transform: uppercase; color: #7f8c8d; margin-bottom: 20px; border-bottom: 1px solid #2a2b30; padding-bottom: 8px; letter-spacing: 1px; }
|
||||
|
||||
.connect-btn { background-color: #3498db; color: white; padding: 15px 24px; border: none; border-radius: 5px; font-size: 18px; cursor: pointer; margin-bottom: 15px; width: 100%; font-weight: bold; }
|
||||
.connect-btn:hover { background-color: #2980b9; }
|
||||
.status { font-size: 14px; color: #bdc3c7; }
|
||||
/* Schermo LCD */
|
||||
.display { background: var(--lcd-bg); color: var(--lcd-text); padding: 20px 15px; border-radius: 4px; font-size: 24px; font-family: 'Courier New', Courier, monospace; text-align: center; font-weight: bold; text-shadow: 0 0 8px rgba(0, 255, 65, 0.5); border: 2px solid #000; box-shadow: inset 0 0 15px rgba(0,0,0,0.9); }
|
||||
.vu-meter-bg { background: #000; height: 6px; border-radius: 2px; margin-top: 8px; overflow: hidden; border: 1px solid #111; }
|
||||
.vu-meter-bar { height: 100%; width: 0%; background: #2ecc71; transition: width 0.05s; }
|
||||
|
||||
.controls { display: flex; gap: 10px; margin-top: 20px; }
|
||||
input[type="number"] { flex: 1; padding: 12px; font-size: 18px; border-radius: 4px; border: 1px solid #333; background: #0a0a0c; color: #fff; text-align: center; font-family: monospace; }
|
||||
input[type="number"]:focus { outline: none; border-color: var(--accent); }
|
||||
|
||||
.btn { background: #2c3e50; color: white; border: 1px solid #1a252f; padding: 12px 15px; border-radius: 4px; font-size: 13px; cursor: pointer; text-transform: uppercase; font-weight: bold; transition: background 0.2s; }
|
||||
.btn-accent { background: var(--accent); border-color: var(--accent-hover); color: #111; }
|
||||
.btn-accent:hover { background: var(--accent-hover); }
|
||||
.btn:hover:not(.btn-accent) { background: #34495e; }
|
||||
|
||||
.quick-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 15px; }
|
||||
|
||||
/* Traffico e Scrollbar */
|
||||
.traffic-list { flex-grow: 1; max-height: 400px; overflow-y: auto; padding-right: 5px; background: #0a0a0c; border: 1px solid #222; border-radius: 4px; padding: 10px; }
|
||||
.traffic-item { color: #bdc3c7; font-size: 13px; margin: 4px 0; padding: 8px; background: #15161a; border-radius: 4px; }
|
||||
.traffic-item b { color: var(--accent); font-size: 14px; display: inline-block; width: 75px; }
|
||||
.traffic-clickable { cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; }
|
||||
.traffic-clickable:hover { background: #1a1b20; border-left-color: var(--accent); transform: translateX(3px); }
|
||||
|
||||
/* Volume e Pulsanti Inferiori */
|
||||
.volume-box { margin-top: 25px; }
|
||||
.volume-box label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 12px; color: #7f8c8d; text-transform: uppercase; letter-spacing: 1px;}
|
||||
input[type="range"] { width: 100%; cursor: pointer; accent-color: var(--accent); }
|
||||
|
||||
.connect-btn { background: #27ae60; color: white; padding: 20px; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; width: 100%; font-weight: bold; text-transform: uppercase; margin-top: 25px; letter-spacing: 1px; box-shadow: 0 4px 0 #1e8449; transition: all 0.1s; }
|
||||
.connect-btn:active { transform: translateY(4px); box-shadow: none; margin-bottom: -4px; }
|
||||
.status { text-align: center; font-size: 12px; color: #7f8c8d; margin-top: 20px; font-family: monospace; }
|
||||
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg-main); }
|
||||
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #555; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h2>ARI FVG Web-Receiver</h2>
|
||||
|
||||
<!-- Display Caller ID -->
|
||||
<div class="display" id="displayScreen">IN ASCOLTO</div>
|
||||
<h2>ARI FVG Web-Receiver</h2>
|
||||
|
||||
<div class="dashboard-grid">
|
||||
<!-- Colonna Sinistra: Strumenti e Avvio -->
|
||||
<div class="panel">
|
||||
<div class="panel-title">Selettore Talkgroup</div>
|
||||
|
||||
<div class="display" id="displayScreen">STANDBY</div>
|
||||
<div class="vu-meter-bg"><div class="vu-meter-bar" id="vuMeterBar"></div></div>
|
||||
|
||||
<!-- Campo di inserimento TG Libero -->
|
||||
<div class="tg-box">
|
||||
<input type="number" id="tgInput" placeholder="Inserisci TG" value="222" min="1" max="9999999">
|
||||
<button class="set-btn" id="setTgBtn">Sintonizza</button>
|
||||
<div class="controls">
|
||||
<input type="number" id="tgInput" placeholder="TG" value="222" min="1">
|
||||
<button class="btn btn-accent" id="setTgBtn">Sintonizza</button>
|
||||
</div>
|
||||
|
||||
<div class="quick-grid">
|
||||
<button class="btn" onclick="setQuickTg(112)">112 PC</button>
|
||||
<button class="btn" onclick="setQuickTg(22231)">22231 BM</button>
|
||||
<button class="btn" onclick="setQuickTg(22200)">22200 FD</button>
|
||||
</div>
|
||||
|
||||
<div class="volume-box">
|
||||
<label for="volumeSlider"><span>Master Gain</span> <span id="volumeValue">100%</span></label>
|
||||
<input type="range" id="volumeSlider" min="0" max="2" step="0.05" value="1">
|
||||
</div>
|
||||
|
||||
<button class="connect-btn" id="connectBtn">Avvia Ricevitore</button>
|
||||
<div class="status" id="statusText">Sistema in attesa...</div>
|
||||
</div>
|
||||
|
||||
<!-- Scorciatoie Rapide -->
|
||||
<div class="quick-tg">
|
||||
<button class="quick-btn" onclick="setQuickTg(112)">TG 112 ARI FVG PC</button>
|
||||
<button class="quick-btn" onclick="setQuickTg(22231)">TG 22231 BM</button>
|
||||
<button class="quick-btn" onclick="setQuickTg(22200)">TG 22200 FreeDMR</button>
|
||||
<!-- Colonna Destra: Monitor Traffico -->
|
||||
<div class="panel">
|
||||
<div class="panel-title">Monitor Rete Globale</div>
|
||||
<div class="traffic-list" id="liveTrafficList">
|
||||
<div style="color: #555; font-style: italic; text-align: center; padding: 20px 0;">Nessun traffico rilevato...</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CONTROLLO VOLUME -->
|
||||
<div class="volume-box">
|
||||
<label for="volumeSlider"><span>Volume</span> <span id="volumeValue">100%</span></label>
|
||||
<input type="range" id="volumeSlider" min="0" max="2" step="0.05" value="1">
|
||||
</div>
|
||||
|
||||
<!-- Bottone Avvio -->
|
||||
<button class="connect-btn" id="connectBtn">📡 Avvia Ascolto DMR</button>
|
||||
|
||||
<div class="status" id="statusText">Clicca il pulsante per attivare l'audio.</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/app.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user