Download index.html from SGVco/logiroute: direct link, hf CLI and curl.
- Browser
- Download file 26.3 kB
-
https://huggingface.co/spaces/SGVco/logiroute/resolve/main/index.html
- Command line
-
hf download hf://spaces/SGVco/logiroute/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SGVco/logiroute/resolve/main/index.html
26.3 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>LogiRoute - Gestão de Transportes</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .map-container { | |
| height: 500px; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| } | |
| .kpi-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.1); | |
| } | |
| .file-upload { | |
| border: 2px dashed #cbd5e1; | |
| transition: all 0.3s ease; | |
| } | |
| .file-upload:hover { | |
| border-color: #6366f1; | |
| background-color: #f8fafc; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| position: absolute; | |
| z-index: 50; | |
| } | |
| .sidebar-open { | |
| transform: translateX(0); | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-indigo-700 text-white w-64 flex-shrink-0 flex flex-col"> | |
| <div class="p-4 flex items-center justify-between border-b border-indigo-600"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-truck-fast text-2xl text-indigo-200"></i> | |
| <span class="text-xl font-bold">LogiRoute</span> | |
| </div> | |
| <button id="sidebar-toggle" class="md:hidden text-white"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <nav class="flex-1 overflow-y-auto p-4 space-y-2"> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-800"> | |
| <i class="fas fa-chart-line"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800"> | |
| <i class="fas fa-route"></i> | |
| <span>Roteirização</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800"> | |
| <i class="fas fa-file-import"></i> | |
| <span>Importar Dados</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800"> | |
| <i class="fas fa-clipboard-list"></i> | |
| <span>Ordens de Frete</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800"> | |
| <i class="fas fa-truck"></i> | |
| <span>Transportadoras</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800"> | |
| <i class="fas fa-file-export"></i> | |
| <span>Relatórios</span> | |
| </a> | |
| <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800"> | |
| <i class="fas fa-cog"></i> | |
| <span>Configurações</span> | |
| </a> | |
| </nav> | |
| <div class="p-4 border-t border-indigo-600"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| <div> | |
| <div class="font-medium">Admin User</div> | |
| <div class="text-xs text-indigo-200">admin@logiroute.com</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm z-10"> | |
| <div class="flex items-center justify-between px-6 py-4"> | |
| <div class="flex items-center space-x-4"> | |
| <button id="mobile-sidebar-toggle" class="md:hidden text-gray-600"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| <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="text-gray-600 hover:text-gray-800"> | |
| <i class="fas fa-bell text-xl"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="text-gray-600 hover:text-gray-800"> | |
| <i class="fas fa-envelope text-xl"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-blue-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="w-px h-8 bg-gray-200"></div> | |
| <button class="flex items-center space-x-2 text-gray-600 hover:text-gray-800"> | |
| <span class="hidden md:inline">Admin User</span> | |
| <i class="fas fa-chevron-down"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="flex-1 overflow-y-auto p-6 bg-gray-50"> | |
| <!-- KPI Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> | |
| <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Ordens de Frete</p> | |
| <h3 class="text-2xl font-bold mt-1">1,248</h3> | |
| <p class="text-sm text-green-500 mt-2 flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 12% vs último mês | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center"> | |
| <i class="fas fa-file-invoice text-indigo-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Entregas Concluídas</p> | |
| <h3 class="text-2xl font-bold mt-1">1,092</h3> | |
| <p class="text-sm text-green-500 mt-2 flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 8% vs último mês | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center"> | |
| <i class="fas fa-check-circle text-green-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Entregas Atrasadas</p> | |
| <h3 class="text-2xl font-bold mt-1">48</h3> | |
| <p class="text-sm text-red-500 mt-2 flex items-center"> | |
| <i class="fas fa-arrow-down mr-1"></i> 3% vs último mês | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center"> | |
| <i class="fas fa-clock text-red-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Custo Médio por Entrega</p> | |
| <h3 class="text-2xl font-bold mt-1">R$ 145</h3> | |
| <p class="text-sm text-green-500 mt-2 flex items-center"> | |
| <i class="fas fa-arrow-down mr-1"></i> 5% vs último mês | |
| </p> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-dollar-sign text-blue-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content Grid --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Map and Routing --> | |
| <div class="lg:col-span-2 bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-semibold text-gray-800">Roteirização</h2> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm flex items-center"> | |
| <i class="fas fa-route mr-2"></i> Otimizar Rota | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm flex items-center"> | |
| <i class="fas fa-layer-group mr-2"></i> Camadas | |
| </button> | |
| </div> | |
| </div> | |
| <div class="map-container"> | |
| <!-- Google Maps will be loaded here --> | |
| <div id="map" class="w-full h-full bg-gray-200 flex items-center justify-center"> | |
| <div class="text-center"> | |
| <i class="fas fa-map-marked-alt text-4xl text-gray-400 mb-2"></i> | |
| <p class="text-gray-500">Carregando mapa...</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Data Import --> | |
| <div class="bg-white rounded-xl shadow-sm p-6"> | |
| <h2 class="text-lg font-semibold text-gray-800 mb-4">Importar Dados</h2> | |
| <div class="file-upload p-6 rounded-lg text-center mb-4 cursor-pointer"> | |
| <i class="fas fa-file-excel text-4xl text-green-500 mb-3"></i> | |
| <p class="font-medium text-gray-700">Arraste e solte arquivos Excel aqui</p> | |
| <p class="text-sm text-gray-500 mt-1">ou clique para selecionar</p> | |
| <input type="file" class="hidden" accept=".xlsx, .xls, .csv"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Tipo de Dados</label> | |
| <select class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"> | |
| <option>Freight Unit (FU)</option> | |
| <option>Freight Order (FO)</option> | |
| <option>Clientes</option> | |
| <option>Transportadoras</option> | |
| </select> | |
| </div> | |
| <div class="flex items-center space-x-2 mb-4"> | |
| <i class="fas fa-info-circle text-blue-500"></i> | |
| <span class="text-sm text-gray-600">Formato compatível com SAP TM</span> | |
| </div> | |
| <button class="w-full bg-indigo-600 text-white py-2 rounded-md flex items-center justify-center"> | |
| <i class="fas fa-upload mr-2"></i> Importar Dados | |
| </button> | |
| <div class="mt-4 border-t pt-4"> | |
| <h3 class="text-sm font-medium text-gray-700 mb-2">Conectar ao Google Sheets</h3> | |
| <button class="w-full bg-green-600 text-white py-2 rounded-md flex items-center justify-center"> | |
| <i class="fab fa-google mr-2"></i> Conectar Google Sheets | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Freight Orders Table --> | |
| <div class="bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-semibold text-gray-800">Ordens de Frete</h2> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm flex items-center"> | |
| <i class="fas fa-filter mr-2"></i> Filtrar | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm flex items-center"> | |
| <i class="fas fa-file-export mr-2"></i> Exportar | |
| </button> | |
| </div> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID FO</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cliente</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transportadora</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Veículo</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1001</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">ABC Comércio</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">TransRápido</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">CBA-1234</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Concluído</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1002</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">XYZ Indústria</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">LogiExpress</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">DEF-5678</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">16/06/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Em Trânsito</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1003</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Comercial Delta</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Veloz Cargas</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">GHI-9012</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">17/06/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Agendado</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1004</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Alimentos Omega</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">TransRápido</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">JKL-3456</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">18/06/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Atrasado</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="flex items-center justify-between mt-4"> | |
| <div class="text-sm text-gray-500"> | |
| Mostrando 1 a 4 de 1,248 ordens | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm"> | |
| Anterior | |
| </button> | |
| <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm"> | |
| 1 | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm"> | |
| 2 | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm"> | |
| ... | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm"> | |
| 25 | |
| </button> | |
| <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm"> | |
| Próximo | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Mobile sidebar toggle | |
| document.getElementById('mobile-sidebar-toggle').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('sidebar-open'); | |
| }); | |
| document.getElementById('sidebar-toggle').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('sidebar-open'); | |
| }); | |
| // File upload interaction | |
| const fileUpload = document.querySelector('.file-upload'); | |
| const fileInput = document.querySelector('.file-upload input'); | |
| fileUpload.addEventListener('click', function() { | |
| fileInput.click(); | |
| }); | |
| fileUpload.addEventListener('dragover', function(e) { | |
| e.preventDefault(); | |
| this.classList.add('border-indigo-600', 'bg-indigo-50'); | |
| }); | |
| fileUpload.addEventListener('dragleave', function() { | |
| this.classList.remove('border-indigo-600', 'bg-indigo-50'); | |
| }); | |
| fileUpload.addEventListener('drop', function(e) { | |
| e.preventDefault(); | |
| this.classList.remove('border-indigo-600', 'bg-indigo-50'); | |
| // Handle dropped files | |
| console.log('Files dropped:', e.dataTransfer.files); | |
| }); | |
| // Initialize Google Maps (this would be replaced with actual API key in production) | |
| function initMap() { | |
| // This is just a placeholder - in a real app you would use the Google Maps API | |
| console.log('Map would be initialized here with API key'); | |
| } | |
| // Load Google Maps API | |
| function loadGoogleMaps() { | |
| const script = document.createElement('script'); | |
| script.src = `https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap`; | |
| script.async = true; | |
| script.defer = true; | |
| document.head.appendChild(script); | |
| } | |
| // Uncomment this in production with a valid API key | |
| // loadGoogleMaps(); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SGVco/logiroute" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |