272 lines
6.8 KiB
HTML
272 lines
6.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="pt-BR">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Dashboard - HealthOne</title>
|
|
<!-- Bootstrap -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Ícones -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
|
|
<!-- Chart.js -->
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: "Poppins", sans-serif;
|
|
background-color: #f8f9fa;
|
|
display: flex;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 250px;
|
|
background: #0d6efd;
|
|
color: #fff;
|
|
height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar h2 {
|
|
text-align: center;
|
|
margin: 20px 0;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
|
|
.sidebar a {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
padding: 12px 20px;
|
|
display: block;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
background-color: #0dcaf0;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Main */
|
|
.main-content {
|
|
margin-left: 250px;
|
|
padding: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.header {
|
|
background: #fff;
|
|
padding: 15px 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 22px;
|
|
color: #0d6efd;
|
|
margin: 0;
|
|
}
|
|
|
|
.header .profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.header .profile img {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card-custom {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s;
|
|
border-left: 5px solid #0d6efd;
|
|
}
|
|
|
|
.card-custom:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.card-custom h3 {
|
|
font-size: 20px;
|
|
color: #0d6efd;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.btn-dashboard {
|
|
background: #0dcaf0;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 8px 14px;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Estatísticas */
|
|
.dashboard-widgets {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.calendar {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.calendar table {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.calendar td {
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.calendar .busy {
|
|
background: #ffcccc;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Sidebar -->
|
|
<div class="sidebar">
|
|
<h2><i class="bi bi-hospital"></i> HealthOne</h2>
|
|
<a href="#"><i class="bi bi-speedometer2"></i> Dashboard</a>
|
|
<a href="#"><i class="bi bi-person-badge"></i> Gerenciar Médicos</a>
|
|
<a href="secretaria.html"><i class="bi bi-people"></i> Gerenciar Pacientes</a>
|
|
<a href="#"><i class="bi bi-calendar-check"></i> Gerenciar Consultas</a>
|
|
<a href="#"><i class="bi bi-file-earmark-text"></i> Relatórios</a>
|
|
<a href="#"><i class="bi bi-gear"></i> Configurações</a>
|
|
<a href="../index.html"><i class="bi bi-box-arrow-right"></i> Sair</a>
|
|
</div>
|
|
|
|
<!-- Conteúdo -->
|
|
<div class="main-content">
|
|
<div class="header">
|
|
<div class="profile">
|
|
<img src="https://via.placeholder.com/40" alt="Secretária">
|
|
<span>Maria Souza</span>
|
|
</div>
|
|
<h1>Painel da Secretária</h1>
|
|
<i class="bi bi-bell fs-4"></i>
|
|
</div>
|
|
|
|
<!-- Cards principais -->
|
|
<div class="cards">
|
|
<div class="card-custom">
|
|
<h3><i class="bi bi-person-badge"></i> Médicos</h3>
|
|
<p>Adicionar, editar e remover médicos cadastrados na clínica.</p>
|
|
<a href="#" class="btn-dashboard">Acessar</a>
|
|
</div>
|
|
|
|
<div class="card-custom">
|
|
<h3><i class="bi bi-people"></i> Pacientes</h3>
|
|
<p>Controle completo de pacientes, cadastro e histórico médico.</p>
|
|
<a href="#" class="btn-dashboard">Acessar</a>
|
|
</div>
|
|
|
|
<div class="card-custom">
|
|
<h3><i class="bi bi-calendar-check"></i> Consultas</h3>
|
|
<p>Agendar, reagendar e cancelar consultas com facilidade.</p>
|
|
<a href="#" class="btn-dashboard">Acessar</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Estatísticas -->
|
|
<div class="dashboard-widgets">
|
|
<div class="card-custom">
|
|
<h3>Média de Casos de Doenças</h3>
|
|
<canvas id="diseaseChart"></canvas>
|
|
</div>
|
|
|
|
<div class="calendar">
|
|
<h3>Calendário de Consultas</h3>
|
|
<table>
|
|
<tr>
|
|
<td>1</td><td class="busy">2</td><td>3</td><td class="busy">4</td><td>5</td><td>6</td><td class="busy">7</td>
|
|
</tr>
|
|
<tr>
|
|
<td>8</td><td>9</td><td class="busy">10</td><td>11</td><td>12</td><td class="busy">13</td><td>14</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="busy">15</td><td>16</td><td>17</td><td class="busy">18</td><td>19</td><td>20</td><td class="busy">21</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="card-custom">
|
|
<h3>Novos Pacientes e Médicos</h3>
|
|
<canvas id="patientsDoctorsChart"></canvas>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
<!-- Gráficos -->
|
|
<script>
|
|
const diseaseCtx = document.getElementById('diseaseChart').getContext('2d');
|
|
new Chart(diseaseCtx, {
|
|
type: 'bar',
|
|
data: {
|
|
labels: ['Gripe', 'Covid-19', 'Diabetes', 'Hipertensão', 'Outros'],
|
|
datasets: [{
|
|
label: 'Casos',
|
|
data: [120, 90, 45, 60, 30],
|
|
backgroundColor: ['#0d6efd','#198754','#ffc107','#dc3545','#0dcaf0']
|
|
}]
|
|
}
|
|
});
|
|
|
|
const pdCtx = document.getElementById('patientsDoctorsChart').getContext('2d');
|
|
new Chart(pdCtx, {
|
|
type: 'line',
|
|
data: {
|
|
labels: ['Jan','Fev','Mar','Abr','Mai','Jun'],
|
|
datasets: [
|
|
{
|
|
label: 'Novos Pacientes',
|
|
data: [30, 45, 60, 40, 70, 80],
|
|
borderColor: '#0d6efd',
|
|
fill: false
|
|
},
|
|
{
|
|
label: 'Novos Médicos',
|
|
data: [5, 3, 7, 4, 6, 8],
|
|
borderColor: '#198754',
|
|
fill: false
|
|
}
|
|
]
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |