Spaces:
Running
Running
File size: 17,503 Bytes
62d3b82 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | <!DOCTYPE html>
<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> |