orientare / pasta-virtual.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
25.1 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 | Pasta Virtual</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>
<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;
}
.status-badge {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
}
.status-VALIDO {
background-color: #10B981;
color: white;
}
.status-INVALIDO {
background-color: #EF4444;
color: white;
}
.status-PENDENTE {
background-color: #F59E0B;
color: white;
}
.status-VENCIDO {
background-color: #6B7280;
color: white;
}
.compliance-meter {
height: 8px;
border-radius: 4px;
background-color: #E5E7EB;
}
.compliance-fill {
height: 100%;
border-radius: 4px;
background-color: #10B981;
transition: width 0.5s ease;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar (same as index.html) -->
<div class="sidebar bg-blue-800 text-white w-64 flex-shrink-0">
<!-- Sidebar content same as index.html -->
</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">Pasta Virtual</h1>
</div>
<div class="flex items-center space-x-4">
<!-- Same user controls as index.html -->
</div>
</div>
</header>
<!-- Main content area -->
<main class="p-6">
<!-- Compliance Overview -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold text-gray-800">Compliance Geral</h2>
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 flex items-center space-x-2">
<i data-feather="share-2" class="w-4 h-4"></i>
<span>Compartilhar Relatório</span>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
<div>
<div class="flex items-center justify-between mb-2">
<span class="text-gray-700">Completude</span>
<span class="font-semibold">87%</span>
</div>
<div class="compliance-meter">
<div class="compliance-fill" style="width: 87%"></div>
</div>
</div>
<div>
<div class="flex items-center justify-between mb-2">
<span class="text-gray-700">Documentos Vencidos</span>
<span class="font-semibold text-red-600">5</span>
</div>
<div class="compliance-meter">
<div class="compliance-fill bg-red-500" style="width: 10%"></div>
</div>
</div>
<div>
<div class="flex items-center justify-between mb-2">
<span class="text-gray-700">Vencendo em 30 dias</span>
<span class="font-semibold text-amber-600">12</span>
</div>
<div class="compliance-meter">
<div class="compliance-fill bg-amber-400" style="width: 25%"></div>
</div>
</div>
</div>
<div class="flex flex-wrap gap-2 mb-6">
<span class="status-badge bg-green-100 text-green-800">87% COMPLETO</span>
<span class="status-badge bg-red-100 text-red-800">5 VENCIDOS</span>
<span class="status-badge bg-amber-100 text-amber-800">12 PRÓXIMOS</span>
<span class="status-badge bg-blue-100 text-blue-800">3 EQUIVALÊNCIAS</span>
</div>
</div>
<!-- Document Categories -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between">
<h2 class="text-lg font-semibold text-gray-800">Categorias de Documentos</h2>
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 flex items-center space-x-2">
<i data-feather="plus" class="w-4 h-4"></i>
<span>Novo Documento</span>
</button>
</div>
<div class="divide-y divide-gray-200">
<!-- Category 1 -->
<div class="p-4">
<div class="flex items-center justify-between cursor-pointer" onclick="toggleCategory('crm')">
<div class="flex items-center space-x-3">
<i data-feather="chevron-down" class="text-gray-500 category-toggle" id="crm-toggle"></i>
<h3 class="font-medium text-gray-900">CRM</h3>
<span class="text-sm text-gray-500">3/3 documentos</span>
</div>
<span class="status-badge status-VALIDO">COMPLETO</span>
</div>
<div class="pl-8 mt-2 category-content hidden" id="crm-content">
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<!-- Document 1 -->
<div class="border rounded-lg p-3 hover:bg-gray-50">
<div class="flex items-start justify-between mb-2">
<div>
<h4 class="font-medium">Certificado CRM</h4>
<p class="text-sm text-gray-500">Válido até 15/12/2025</p>
</div>
<span class="status-badge status-VALIDO">VALIDO</span>
</div>
<div class="flex items-center space-x-2 text-sm">
<span class="text-gray-500">v3.1</span>
<span>•</span>
<span class="text-blue-600 hover:underline cursor-pointer">Ver histórico</span>
<span>•</span>
<span class="text-blue-600 hover:underline cursor-pointer">Download</span>
</div>
</div>
<!-- Document 2 -->
<div class="border rounded-lg p-3 hover:bg-gray-50">
<div class="flex items-start justify-between mb-2">
<div>
<h4 class="font-medium">Exame Médico</h4>
<p class="text-sm text-gray-500">Válido até 30/06/2025</p>
</div>
<span class="status-badge status-VALIDO">VALIDO</span>
</div>
<div class="flex items-center space-x-2 text-sm">
<span class="text-gray-500">v2.0</span>
<span>•</span>
<span class="text-blue-600 hover:underline cursor-pointer">Ver histórico</span>
<span>•</span>
<span class="text-blue-600 hover:underline cursor-pointer">Download</span>
</div>
</div>
<!-- Document 3 -->
<div class="border rounded-lg p-3 hover:bg-gray-50">
<div class="flex items-start justify-between mb-2">
<div>
<h4 class="font-medium">Treinamento CRM</h4>
<p class="text-sm text-gray-500">Válido até 31/12/2024</p>
</div>
<span class="status-badge status-VALIDO">VALIDO</span>
</div>
<div class="flex items-center space-x-2 text-sm">
<span class="text-gray-500">v1.0</span>
<span>•</span>
<span class="text-blue-600 hover:underline cursor-pointer">Ver histórico</span>
<span>•</span>
<span class="text-blue-600 hover:underline cursor-pointer">Download</span>
</div>
</div>
</div>
</div>
</div>
<!-- Category 2 -->
<div class="p-4">
<div class="flex items-center justify-between cursor-pointer" onclick="toggleCategory('dg')">
<div class="flex items-center space-x-3">
<i data-feather="chevron-right" class="text-gray-500 category-toggle" id="dg-toggle"></i>
<h3 class="font-medium text-gray-900">DG</h3>
<span class="text-sm text-gray-500">1/2 documentos</span>
</div>
<span class="status-badge status-PENDENTE">INCOMPLETO</span>
</div>
<div class="pl-8 mt-2 category-content hidden" id="dg-content">
<!-- Content would be loaded dynamically -->
</div>
</div>
<!-- Category 3 -->
<div class="p-4">
<div class="flex items-center justify-between cursor-pointer" onclick="toggleCategory('cma')">
<div class="flex items-center space-x-3">
<i data-feather="chevron-right" class="text-gray-500 category-toggle" id="cma-toggle"></i>
<h3 class="font-medium text-gray-900">CMA</h3>
<span class="text-sm text-gray-500">0/1 documentos</span>
</div>
<span class="status-badge status-INVALIDO">FALTANDO</span>
</div>
<div class="pl-8 mt-2 category-content hidden" id="cma-content">
<!-- Content would be loaded dynamically -->
</div>
</div>
</div>
</div>
<!-- Document Upload Modal (hidden by default) -->
<div id="uploadModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
<div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between">
<h3 class="text-lg font-semibold text-gray-900">Upload de Documento</h3>
<button onclick="closeModal('uploadModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x"></i>
</button>
</div>
<div class="p-6">
<form>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="documentCategory">
Categoria
</label>
<select id="documentCategory" class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Selecione uma categoria</option>
<option>CRM</option>
<option>DG</option>
<option>CMA</option>
<option>Licenças</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="documentTitle">
Título do Documento
</label>
<input type="text" id="documentTitle" class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Ex: Certificado CRM Classe 1">
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="issueDate">
Data de Emissão
</label>
<input type="date" id="issueDate" class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="expiryDate">
Data de Validade
</label>
<input type="date" id="expiryDate" class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="documentFile">
Arquivo (PDF, JPG, PNG)
</label>
<div class="border-2 border-dashed border-gray-300 rounded-md p-6 text-center">
<div class="flex flex-col items-center justify-center">
<i data-feather="upload" class="w-12 h-12 text-gray-400 mb-2"></i>
<p class="text-sm text-gray-600">Arraste e solte o arquivo aqui ou</p>
<label for="fileInput" class="mt-2 px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 cursor-pointer">
Selecione o arquivo
</label>
<input type="file" id="fileInput" class="hidden">
</div>
</div>
<p class="text-xs text-gray-500 mt-2">Tamanho máximo: 10MB. Será calculado o hash SHA-256 do arquivo.</p>
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="closeModal('uploadModal')" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">
Cancelar
</button>
<button type="submit" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 flex items-center space-x-2">
<i data-feather="upload" class="w-4 h-4"></i>
<span>Enviar Documento</span>
</button>
</div>
</form>
</div>
</div>
</div>
<!-- Share Modal (hidden by default) -->
<div id="shareModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
<div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between">
<h3 class="text-lg font-semibold text-gray-900">Compartilhar Pasta Virtual</h3>
<button onclick="closeModal('shareModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x"></i>
</button>
</div>
<div class="p-6">
<form>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="shareScope">
Escopo do Compartilhamento
</label>
<select id="shareScope" class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Toda a pasta</option>
<option>Apenas documentos CRM</option>
<option>Apenas documentos DG</option>
<option>Apenas documentos CMA</option>
<option>Apenas treinamentos</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="expiryDateShare">
Data de Expiração
</label>
<input type="date" id="expiryDateShare" class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<div class="mb-6">
<label class="block text-gray-700 text-sm font-medium mb-2" for="shareLink">
Link de Compartilhamento
</label>
<div class="flex">
<input type="text" id="shareLink" readonly value="https://airtrust.example.com/public/share/abc123def456" class="flex-1 border border-gray-300 rounded-l-md px-3 py-2 focus:outline-none bg-gray-100">
<button type="button" class="px-4 py-2 bg-blue-600 text-white rounded-r-md hover:bg-blue-700">
<i data-feather="copy" class="w-4 h-4"></i>
</button>
</div>
<p class="text-xs text-gray-500 mt-2">Este link expirará em 30 dias. Você pode revogá-lo a qualquer momento.</p>
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="closeModal('shareModal')" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">
Fechar
</button>
<button type="button" class="px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 flex items-center space-x-2">
<i data-feather="trash-2" class="w-4 h-4"></i>
<span>Revogar Acesso</span>
</button>
</div>
</form>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Initialize AOS
AOS.init();
// Initialize Feather Icons
feather.replace();
// Toggle sidebar (same as index.html)
// Toggle category content
function toggleCategory(categoryId) {
const content = document.getElementById(`${categoryId}-content`);
const toggleIcon = document.getElementById(`${categoryId}-toggle`);
if (content.classList.contains('hidden')) {
content.classList.remove('hidden');
feather.icons['chevron-down'].replace(toggleIcon);
} else {
content.classList.add('hidden');
feather.icons['chevron-right'].replace(toggleIcon);
}
}
// Modal functions
function openModal(modalId) {
document.getElementById(modalId).classList.remove('hidden');
}
function closeModal(modalId) {
document.getElementById(modalId).classList.add('hidden');
}
// For demo purposes - would be replaced with actual API calls
document.querySelector('button:contains("Novo Documento")').addEventListener('click', function() {
openModal('uploadModal');
});
document.querySelector('button:contains("Compartilhar Relatório")').addEventListener('click', function() {
openModal('shareModal');
});
</script>
</body>
</html>