Spaces:
Running
Running
Download index.html from Electro2025/electro: direct link, hf CLI and curl.
- Browser
- Download file 17.5 kB
-
https://huggingface.co/spaces/Electro2025/electro/resolve/main/index.html
- Command line
-
hf download hf://spaces/Electro2025/electro/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Electro2025/electro/resolve/main/index.html
17.5 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Rastreador de Ônibus</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"> | |
| <style> | |
| .bus-marker { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); opacity: 1; } | |
| 50% { transform: scale(1.2); opacity: 0.7; } | |
| 100% { transform: scale(1); opacity: 1; } | |
| } | |
| .bus-stop-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .map-container { | |
| height: 400px; | |
| background-image: url('https://maps.googleapis.com/maps/api/staticmap?center=-23.5505,-46.6333&zoom=12&size=800x400&maptype=roadmap&markers=color:red%7C-23.5505,-46.6333&key=YOUR_API_KEY'); | |
| background-size: cover; | |
| background-position: center; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <header class="bg-blue-600 text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-6"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="flex items-center mb-4 md:mb-0"> | |
| <i class="fas fa-bus text-3xl mr-3"></i> | |
| <h1 class="text-2xl md:text-3xl font-bold">Rastreador de Ônibus</h1> | |
| </div> | |
| <div class="relative w-full md:w-64"> | |
| <input type="text" placeholder="Buscar parada..." class="w-full px-4 py-2 rounded-full text-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-400"> | |
| <button class="absolute right-3 top-2 text-gray-600"> | |
| <i class="fas fa-search"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
| <!-- Map Section --> | |
| <div class="lg:col-span-2 bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="p-4 bg-blue-500 text-white flex justify-between items-center"> | |
| <h2 class="text-xl font-semibold"> | |
| <i class="fas fa-map-marked-alt mr-2"></i> Mapa das Paradas | |
| </h2> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 bg-blue-600 rounded-lg text-sm hover:bg-blue-700 transition"> | |
| <i class="fas fa-sync-alt mr-1"></i> Atualizar | |
| </button> | |
| </div> | |
| </div> | |
| <div class="map-container relative"> | |
| <div class="absolute top-4 right-4 bg-white p-2 rounded-lg shadow-md"> | |
| <div class="flex items-center text-green-500"> | |
| <i class="fas fa-circle mr-1 text-xs"></i> | |
| <span class="text-sm">Disponível</span> | |
| </div> | |
| <div class="flex items-center text-red-500 mt-1"> | |
| <i class="fas fa-circle mr-1 text-xs"></i> | |
| <span class="text-sm">Lotado</span> | |
| </div> | |
| </div> | |
| <!-- Sample bus markers --> | |
| <div class="absolute left-1/4 top-1/3 bus-marker"> | |
| <div class="bg-blue-600 text-white p-2 rounded-full shadow-lg"> | |
| <i class="fas fa-bus"></i> | |
| </div> | |
| </div> | |
| <div class="absolute left-1/2 top-2/3 bus-marker"> | |
| <div class="bg-red-500 text-white p-2 rounded-full shadow-lg"> | |
| <i class="fas fa-bus"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Status Section --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="p-4 bg-blue-500 text-white"> | |
| <h2 class="text-xl font-semibold"> | |
| <i class="fas fa-info-circle mr-2"></i> Status do Sistema | |
| </h2> | |
| </div> | |
| <div class="p-4"> | |
| <div class="mb-4"> | |
| <h3 class="font-medium text-gray-700 mb-2">Ônibus em operação</h3> | |
| <div class="w-full bg-gray-200 rounded-full h-4"> | |
| <div class="bg-green-500 h-4 rounded-full" style="width: 85%"></div> | |
| </div> | |
| <p class="text-right text-sm mt-1 text-gray-600">85% (1,240 veículos)</p> | |
| </div> | |
| <div class="mb-4"> | |
| <h3 class="font-medium text-gray-700 mb-2">Pontualidade</h3> | |
| <div class="w-full bg-gray-200 rounded-full h-4"> | |
| <div class="bg-yellow-500 h-4 rounded-full" style="width: 72%"></div> | |
| </div> | |
| <p class="text-right text-sm mt-1 text-gray-600">72% no horário</p> | |
| </div> | |
| <div class="mb-2"> | |
| <h3 class="font-medium text-gray-700 mb-2">Alertas</h3> | |
| <div class="bg-red-50 border-l-4 border-red-500 p-3 mb-2"> | |
| <div class="flex items-start"> | |
| <i class="fas fa-exclamation-circle text-red-500 mt-1 mr-2"></i> | |
| <div> | |
| <p class="font-medium text-red-700">Linha 175 - Atraso</p> | |
| <p class="text-sm text-red-600">Previsão de 15 min devido a congestionamento</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-yellow-50 border-l-4 border-yellow-500 p-3"> | |
| <div class="flex items-start"> | |
| <i class="fas fa-info-circle text-yellow-500 mt-1 mr-2"></i> | |
| <div> | |
| <p class="font-medium text-yellow-700">Manutenção programada</p> | |
| <p class="text-sm text-yellow-600">Linha 210 com alteração de itinerário amanhã</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Bus Stops List --> | |
| <div class="mt-8 bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="p-4 bg-blue-500 text-white flex justify-between items-center"> | |
| <h2 class="text-xl font-semibold"> | |
| <i class="fas fa-map-marker-alt mr-2"></i> Paradas Próximas | |
| </h2> | |
| <div class="flex items-center space-x-2"> | |
| <span class="text-sm">Ordenar por:</span> | |
| <select class="px-2 py-1 rounded bg-blue-600 text-white border-none focus:ring-2 focus:ring-blue-300"> | |
| <option>Distância</option> | |
| <option>Nome</option> | |
| <option>Movimentação</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <!-- Bus Stop Cards --> | |
| <div class="bus-stop-card p-4 hover:bg-gray-50 transition cursor-pointer"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-bold text-lg text-blue-700">Parada Shopping Center</h3> | |
| <p class="text-gray-600">Av. Paulista, 1234 - Bela Vista</p> | |
| <div class="flex items-center mt-2"> | |
| <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded mr-2"> | |
| <i class="fas fa-walking mr-1"></i> 300m | |
| </span> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded"> | |
| <i class="fas fa-clock mr-1"></i> Próximo ônibus em 5 min | |
| </span> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-2xl font-bold text-blue-600">175</div> | |
| <div class="text-sm text-gray-500">3 linhas</div> | |
| </div> | |
| </div> | |
| <div class="mt-3 flex flex-wrap gap-2"> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">175 - Terminal Pinheiros</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">810 - Metrô Tatuapé</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">N801 - Circular Noturno</span> | |
| </div> | |
| </div> | |
| <div class="bus-stop-card p-4 hover:bg-gray-50 transition cursor-pointer"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-bold text-lg text-blue-700">Parada Praça da Sé</h3> | |
| <p class="text-gray-600">Praça da Sé - Centro</p> | |
| <div class="flex items-center mt-2"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded mr-2"> | |
| <i class="fas fa-walking mr-1"></i> 850m | |
| </span> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded"> | |
| <i class="fas fa-clock mr-1"></i> Próximo ônibus em 12 min | |
| </span> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-2xl font-bold text-blue-600">107T</div> | |
| <div class="text-sm text-gray-500">5 linhas</div> | |
| </div> | |
| </div> | |
| <div class="mt-3 flex flex-wrap gap-2"> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">107T - Term. Pq. D. Pedro II</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">411 - Term. Santo Amaro</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">510 - Term. Princ. Isabel</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">857 - Term. Vila Carrão</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">N841 - Circular Noturno</span> | |
| </div> | |
| </div> | |
| <div class="bus-stop-card p-4 hover:bg-gray-50 transition cursor-pointer"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-bold text-lg text-blue-700">Parada Metrô Tatuapé</h3> | |
| <p class="text-gray-600">R. Tuiuti, 515 - Tatuapé</p> | |
| <div class="flex items-center mt-2"> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded mr-2"> | |
| <i class="fas fa-walking mr-1"></i> 1.2km | |
| </span> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded"> | |
| <i class="fas fa-clock mr-1"></i> Próximo ônibus em 3 min | |
| </span> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-2xl font-bold text-blue-600">210</div> | |
| <div class="text-sm text-gray-500">4 linhas</div> | |
| </div> | |
| </div> | |
| <div class="mt-3 flex flex-wrap gap-2"> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">210 - Term. Pq. D. Pedro II</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">370 - Term. A. E. Carvalho</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">N802 - Circular Noturno</span> | |
| <span class="bg-gray-100 px-2 py-1 rounded text-sm">875 - Term. Sapopemba</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 text-center bg-gray-50"> | |
| <button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition"> | |
| <i class="fas fa-plus mr-2"></i> Carregar mais paradas | |
| </button> | |
| </div> | |
| </div> | |
| </main> | |
| <footer class="bg-gray-800 text-white py-8 mt-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4">Rastreador de Ônibus</h3> | |
| <p class="text-gray-400">Informações em tempo real sobre as paradas de ônibus da cidade. Nunca mais perca seu transporte!</p> | |
| </div> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4">Links Úteis</h3> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Horários</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Tarifas</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Itinerários</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Contato</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4">Baixe nosso app</h3> | |
| <div class="flex space-x-3"> | |
| <button class="bg-black text-white px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fab fa-apple mr-2"></i> App Store | |
| </button> | |
| <button class="bg-black text-white px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fab fa-google-play mr-2"></i> Play Store | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400"> | |
| <p>© 2023 Rastreador de Ônibus. Todos os direitos reservados.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Sample JavaScript for interactive elements | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Simulate live updates | |
| setInterval(() => { | |
| const busTimes = document.querySelectorAll('.bus-stop-card .fa-clock').forEach(el => { | |
| const parent = el.closest('span'); | |
| const currentText = parent.textContent; | |
| const currentMins = parseInt(currentText.match(/\d+/)[0]); | |
| const newMins = Math.max(0, currentMins - 1); | |
| if (newMins === 0) { | |
| parent.textContent = 'Ônibus chegando agora'; | |
| parent.classList.remove('bg-blue-100', 'text-blue-800'); | |
| parent.classList.add('bg-green-100', 'text-green-800'); | |
| } else { | |
| parent.textContent = `Próximo ônibus em ${newMins} min`; | |
| } | |
| }); | |
| }, 60000); // Update every minute | |
| // Add click effect to bus stop cards | |
| const cards = document.querySelectorAll('.bus-stop-card'); | |
| cards.forEach(card => { | |
| card.addEventListener('click', function() { | |
| // In a real app, this would show more details | |
| alert('Mostrando detalhes da parada: ' + this.querySelector('h3').textContent); | |
| }); | |
| }); | |
| }); | |
| </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=Electro2025/electro" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |