summaryrefslogtreecommitdiff
path: root/frontend/index.html
diff options
context:
space:
mode:
authorNathalia Veiga <nathalialveiga@gmail.com>2025-11-04 19:38:28 -0300
committerNathalia Veiga <nathalialveiga@gmail.com>2025-11-04 19:38:28 -0300
commit398af42e0a4ba93992ced5182dcf77463f398047 (patch)
treef7b2b82ae14f1e8b67ad2ed6e6d6fedb21533bde /frontend/index.html
parente3b41c5c24488a48b552fb7aeffe250574b9c8a8 (diff)
gradico p consumir api
Diffstat (limited to 'frontend/index.html')
-rw-r--r--frontend/index.html124
1 files changed, 124 insertions, 0 deletions
diff --git a/frontend/index.html b/frontend/index.html
new file mode 100644
index 0000000..237f2f7
--- /dev/null
+++ b/frontend/index.html
@@ -0,0 +1,124 @@
+<!DOCTYPE html>
+<html lang="pt-br">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Dashboard</title>
+
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&display=swap" rel="stylesheet">
+
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
+
+ <link rel="stylesheet" href="style.css">
+</head>
+<body>
+
+ <div class="dashboard-container">
+
+ <aside class="sidebar">
+ <header class="sidebar-header">
+ <h2>Dashboard</h2>
+ <span>Iot Monitoration</span>
+ </header>
+
+ <nav class="sidebar-nav">
+ <h3><i class="fas fa-satellite-dish"></i> Dados Atuais</h3>
+
+ <div class="data-widget">
+ <div class="widget-icon icon-temp">
+ <i class="fas fa-thermometer-half"></i>
+ </div>
+ <div class="widget-info">
+ <span id="currentTemp">--.- °C</span>
+ <p>Temperatura</p>
+ </div>
+ </div>
+
+ <div class="data-widget">
+ <div class="widget-icon icon-humidity">
+ <i class="fas fa-tint"></i>
+ </div>
+ <div class="widget-info">
+ <span id="currentHumidity">-- %</span>
+ <p>Umidade</p>
+ </div>
+ </div>
+
+ <div class="data-widget">
+ <div class="widget-icon icon-wind">
+ <i class="fas fa-wind"></i>
+ </div>
+ <div class="widget-info">
+ <span id="currentWind">--.- km/h</span>
+ <p>Vento</p>
+ </div>
+ </div>
+
+ <div class="data-widget">
+ <div class="widget-icon icon-pressure">
+ <i class="fas fa-tachometer-alt"></i>
+ </div>
+ <div class="widget-info">
+ <span id="currentPressure">---- hPa</span>
+ <p>Pressão</p>
+ </div>
+ </div>
+
+ </nav>
+
+ <footer class="sidebar-footer">
+ <button id="toggleUpdatesBtn">
+ <i class="fas fa-pause"></i> <span>Pausar</span>
+ </button>
+ <p>Status: <span id="statusText">Monitorando...</span></p>
+ </footer>
+ </aside>
+
+ <main class="main-content">
+ <h1>Painel de Monitoramento</h1>
+
+ <section class="charts-grid">
+
+ <div class="chart-card large">
+ <h3>Temperatura & Pressão (Últimos 30s)</h3>
+ <canvas id="graficoTempPressao"></canvas>
+ </div>
+
+ <div class="chart-card">
+ <h3>Umidade</h3>
+ <div class="gauge-container">
+ <canvas id="graficoUmidade"></canvas>
+ <div id="umidadeText" class="gauge-text">--%</div>
+ </div>
+ </div>
+
+ <div class="chart-card">
+ <h3>Índice UV</h3>
+ <div class="gauge-container">
+ <canvas id="graficoUv"></canvas>
+ <div id="uvText" class="gauge-text">--</div>
+ </div>
+ </div>
+
+ <div class="chart-card">
+ <h3>Velocidade do Vento</h3>
+ <canvas id="graficoVento"></canvas>
+ </div>
+
+ <div class="chart-card">
+ <h3>Visibilidade</h3>
+ <canvas id="graficoVisibilidade"></canvas>
+ </div>
+
+ </section>
+ </main>
+ </div>
+
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns"></script>
+
+ <script src="script.js"></script>
+</body>
+</html> \ No newline at end of file