orientare / index.html
FPDaumas's picture
faça o que está faltando conforme as instrucoes que te passei - Initial Deployment
03e2ff5 verified
Raw History Blame Contribute Delete
21 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AirTrust | Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
.sidebar-collapsed {
width: 80px;
}
.sidebar-collapsed .nav-text {
display: none;
}
.main-content {
transition: margin-left 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.status-badge {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
}
.banda-GREEN {
background-color: #10B981;
color: white;
}
.banda-AMBER {
background-color: #F59E0B;
color: white;
}
.banda-RED {
background-color: #EF4444;
color: white;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 flex-shrink-0">
<div class="p-4 flex items-center justify-between border-b border-blue-700">
<div class="flex items-center space-x-2">
<i data-feather="shield" class="text-blue-300"></i>
<span class="font-bold text-xl">AirTrust</span>
</div>
<button id="sidebarToggle" class="text-blue-200 hover:text-white">
<i data-feather="chevron-left"></i>
</button>
</div>
<nav class="p-4">
<div class="mb-8">
<p class="text-blue-300 uppercase text-xs font-semibold mb-2">Menu Principal</p>
<ul>
<li class="mb-1">
<a href="index.html" class="flex items-center space-x-3 p-2 rounded bg-blue-700 text-white">
<i data-feather="home"></i>
<span class="nav-text">Dashboard</span>
</a>
</li>
<li class="mb-1">
<a href="colaboradores.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="users"></i>
<span class="nav-text">Colaboradores</span>
</a>
</li>
<li class="mb-1">
<a href="escala.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="calendar"></i>
<span class="nav-text">Escala</span>
</a>
</li>
<li class="mb-1">
<a href="frms.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="activity"></i>
<span class="nav-text">FRMS</span>
</a>
</li>
<li class="mb-1">
<a href="simuladores.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="cpu"></i>
<span class="nav-text">Simuladores</span>
</a>
</li>
<li class="mb-1">
<a href="hospedagem.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="hotel"></i>
<span class="nav-text">Hospedagem</span>
</a>
</li>
<li class="mb-1">
<a href="pasta-virtual.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="folder"></i>
<span class="nav-text">Pasta Virtual</span>
</a>
</li>
</ul>
</div>
<div>
<p class="text-blue-300 uppercase text-xs font-semibold mb-2">Administração</p>
<ul>
<li class="mb-1">
<a href="configuracoes.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="settings"></i>
<span class="nav-text">Configurações</span>
</a>
</li>
<li class="mb-1">
<a href="auditoria.html" class="flex items-center space-x-3 p-2 rounded hover:bg-blue-700 text-blue-100 hover:text-white">
<i data-feather="shield"></i>
<span class="nav-text">Auditoria</span>
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Main content -->
<div class="main-content flex-1 overflow-auto">
<!-- Top navbar -->
<header class="bg-white shadow-sm">
<div class="px-6 py-4 flex items-center justify-between">
<div class="flex items-center space-x-4">
<h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="bell"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="flex items-center space-x-2">
<div class="h-8 w-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JD</div>
<span class="text-sm font-medium">John Doe</span>
<i data-feather="chevron-down" class="text-gray-500"></i>
</div>
</div>
</div>
</header>
<!-- Main content area -->
<main class="p-6">
<!-- Stats cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Vencimentos</p>
<h3 class="text-2xl font-bold text-gray-800">12</h3>
</div>
<div class="p-3 rounded-full bg-red-100 text-red-600">
<i data-feather="alert-circle"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2">5 em atraso</p>
</div>
<div class="bg-white rounded-lg shadow p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">FRMS Críticos</p>
<h3 class="text-2xl font-bold text-gray-800">3</h3>
</div>
<div class="p-3 rounded-full bg-amber-100 text-amber-600">
<i data-feather="alert-triangle"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2">2 sem justificativa</p>
</div>
<div class="bg-white rounded-lg shadow p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Completude Pastas</p>
<h3 class="text-2xl font-bold text-gray-800">87%</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="check-circle"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2">13 colaboradores incompletos</p>
</div>
<div class="bg-white rounded-lg shadow p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Ocupação Hospedagem</p>
<h3 class="text-2xl font-bold text-gray-800">72%</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="trending-up"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2">2 no-shows hoje</p>
</div>
</div>
<!-- Charts and tables -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- FRMS Heatmap -->
<div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold text-gray-800">FRMS - Distribuição por Banda</h2>
<select class="text-sm border border-gray-300 rounded px-3 py-1">
<option>Últimos 7 dias</option>
<option>Últimos 30 dias</option>
<option>Este mês</option>
</select>
</div>
<div class="h-64">
<canvas id="frmsChart"></canvas>
</div>
</div>
<!-- Top 5 Riscos -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Top 5 Riscos FRMS</h2>
<div class="space-y-4">
<div class="flex items-center justify-between p-3 bg-red-50 rounded">
<div>
<p class="font-medium">Sono < 5h</p>
<p class="text-sm text-gray-500">12 ocorrências</p>
</div>
<span class="status-badge banda-RED">RED</span>
</div>
<div class="flex items-center justify-between p-3 bg-amber-50 rounded">
<div>
<p class="font-medium">Horário WOCL</p>
<p class="text-sm text-gray-500">8 ocorrências</p>
</div>
<span class="status-badge banda-AMBER">AMBER</span>
</div>
<div class="flex items-center justify-between p-3 bg-amber-50 rounded">
<div>
<p class="font-medium">Horas acordado</p>
<p class="text-sm text-gray-500">6 ocorrências</p>
</div>
<span class="status-badge banda-AMBER">AMBER</span>
</div>
<div class="flex items-center justify-between p-3 bg-green-50 rounded">
<div>
<p class="font-medium">Sono 5-7h</p>
<p class="text-sm text-gray-500">4 ocorrências</p>
</div>
<span class="status-badge banda-GREEN">GREEN</span>
</div>
<div class="flex items-center justify-between p-3 bg-green-50 rounded">
<div>
<p class="font-medium">Outros fatores</p>
<p class="text-sm text-gray-500">3 ocorrências</p>
</div>
<span class="status-badge banda-GREEN">GREEN</span>
</div>
</div>
</div>
</div>
<!-- Recent Activities -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold text-gray-800">Atividades Recentes</h2>
</div>
<div class="divide-y divide-gray-200">
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i data-feather="file-text"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900">Nova ficha de simulador preenchida</p>
<p class="text-sm text-gray-500">Sessão #45 - Instrutor: João Silva</p>
<p class="text-xs text-gray-400">há 15 minutos</p>
</div>
<span class="status-badge bg-blue-100 text-blue-800">PREENCHIDA</span>
</div>
</div>
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i data-feather="check-circle"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900">Ficha aprovada</p>
<p class="text-sm text-gray-500">Sessão #44 - Aluno: Maria Souza</p>
<p class="text-xs text-gray-400">há 1 hora</p>
</div>
<span class="status-badge bg-green-100 text-green-800">APROVADA</span>
</div>
</div>
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-amber-100 flex items-center justify-center text-amber-600">
<i data-feather="alert-triangle"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900">Documento vencido</p>
<p class="text-sm text-gray-500">CMA - Carlos Mendes</p>
<p class="text-xs text-gray-400">há 2 horas</p>
</div>
<span class="status-badge bg-red-100 text-red-800">VENCIDO</span>
</div>
</div>
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i data-feather="calendar"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900">Troca de escala aprovada</p>
<p class="text-sm text-gray-500">João Silva ↔ Ana Costa - 15/09</p>
<p class="text-xs text-gray-400">há 3 horas</p>
</div>
<span class="status-badge bg-purple-100 text-purple-800">APROVADA</span>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Initialize AOS
AOS.init();
// Initialize Feather Icons
feather.replace();
// Toggle sidebar
document.getElementById('sidebarToggle').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('sidebar-collapsed');
document.querySelector('.main-content').classList.toggle('lg:ml-64');
document.querySelector('.main-content').classList.toggle('lg:ml-20');
// Change icon
const icon = this.querySelector('i');
if (document.querySelector('.sidebar').classList.contains('sidebar-collapsed')) {
feather.icons['chevron-right'].replace(icon);
} else {
feather.icons['chevron-left'].replace(icon);
}
});
// FRMS Chart
const frmsCtx = document.getElementById('frmsChart').getContext('2d');
const frmsChart = new Chart(frmsCtx, {
type: 'bar',
data: {
labels: ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'],
datasets: [
{
label: 'GREEN',
data: [12, 15, 13, 17, 14, 10, 8],
backgroundColor: '#10B981',
},
{
label: 'AMBER',
data: [3, 2, 4, 1, 3, 5, 2],
backgroundColor: '#F59E0B',
},
{
label: 'RED',
data: [1, 0, 2, 1, 0, 1, 0],
backgroundColor: '#EF4444',
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
stacked: true,
},
y: {
stacked: true,
beginAtZero: true
}
},
plugins: {
legend: {
position: 'top',
}
}
}
});
</script>
</body>
</html>