my-analytics / index.html
MVCS1993's picture
Add 3 files
f6c4640 verified
Raw History Blame Contribute Delete
40.9 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leilão Analytics - Monitoramento de Leilões de Carros</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>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th, .data-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
.data-table th {
background-color: #f9fafb;
font-weight: 600;
}
.data-table tr:hover {
background-color: #f3f4f6;
}
@media (max-width: 768px) {
.data-table thead {
display: none;
}
.data-table tr {
display: block;
margin-bottom: 1rem;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
}
.data-table td {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem;
border-bottom: none;
}
.data-table td::before {
content: attr(data-label);
font-weight: 600;
margin-right: 1rem;
}
}
.chart-container {
height: 400px;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i class="fas fa-gavel text-blue-600 text-xl mr-2"></i>
<span class="font-bold text-gray-900">Leilão Analytics</span>
</div>
</div>
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
<a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
<i class="fas fa-home mr-1"></i> Início
</a>
<a href="#veiculos" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
<i class="fas fa-car mr-1"></i> Veículos
</a>
<a href="#estatisticas" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
<i class="fas fa-chart-line mr-1"></i> Estatísticas
</a>
<a href="#sobre" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
<i class="fas fa-info-circle mr-1"></i> Sobre
</a>
</div>
<div class="-mr-2 flex items-center sm:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" aria-controls="mobile-menu" aria-expanded="false">
<span class="sr-only">Abrir menu</span>
<i class="fas fa-bars"></i>
</button>
</div>
</div>
</div>
<!-- Mobile menu -->
<div class="sm:hidden hidden" id="mobile-menu">
<div class="pt-2 pb-3 space-y-1">
<a href="#" class="bg-blue-50 border-blue-500 text-blue-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
<i class="fas fa-home mr-2"></i> Início
</a>
<a href="#veiculos" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
<i class="fas fa-car mr-2"></i> Veículos
</a>
<a href="#estatisticas" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
<i class="fas fa-chart-line mr-2"></i> Estatísticas
</a>
<a href="#sobre" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
<i class="fas fa-info-circle mr-2"></i> Sobre
</a>
</div>
</div>
</nav>
<!-- Header -->
<div class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center">
<h1 class="text-2xl font-bold text-gray-900">
<i class="fas fa-gavel text-blue-600 mr-2"></i> Monitoramento de Leilões de Carros
</h1>
<div class="mt-4 md:mt-0 text-sm text-gray-500">
<span class="font-medium">Última atualização:</span>
<span id="last-update">15/06/2023 09:45</span>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
<!-- Filters -->
<div id="veiculos" class="bg-white shadow rounded-lg p-6 mb-8">
<h2 class="text-lg font-medium text-gray-900 mb-4">
<i class="fas fa-filter mr-2 text-blue-600"></i> Filtros
</h2>
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
<div>
<label for="marca" class="block text-sm font-medium text-gray-700">Marca</label>
<select id="marca" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="">Todas</option>
<option>Volkswagen</option>
<option>Fiat</option>
<option>Chevrolet</option>
<option>Ford</option>
<option>Toyota</option>
<option>Honda</option>
<option>Hyundai</option>
</select>
</div>
<div>
<label for="modelo" class="block text-sm font-medium text-gray-700">Modelo</label>
<select id="modelo" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="">Todos</option>
<option>Gol</option>
<option>Onix</option>
<option>HB20</option>
<option>Corolla</option>
<option>Civic</option>
</select>
</div>
<div>
<label for="ano" class="block text-sm font-medium text-gray-700">Ano</label>
<select id="ano" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="">Todos</option>
<option>2023</option>
<option>2022</option>
<option>2021</option>
<option>2020</option>
<option>2019</option>
<option>2018</option>
</select>
</div>
<div>
<label for="preco" class="block text-sm font-medium text-gray-700">Faixa de Preço</label>
<select id="preco" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="">Todas</option>
<option>Até R$ 20.000</option>
<option>R$ 20.000 - R$ 40.000</option>
<option>R$ 40.000 - R$ 60.000</option>
<option>R$ 60.000 - R$ 80.000</option>
<option>Acima de R$ 80.000</option>
</select>
</div>
</div>
<div class="mt-4 flex justify-end">
<button id="reset-filters" class="mr-2 inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-undo mr-2"></i> Limpar
</button>
<button id="apply-filters" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-check mr-2"></i> Aplicar
</button>
</div>
</div>
<!-- Vehicles Table -->
<div class="bg-white shadow rounded-lg overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="text-lg font-medium text-gray-900">
<i class="fas fa-car mr-2 text-blue-600"></i> Veículos Leiloados
</h2>
<div class="text-sm text-gray-500">
<span id="total-vehicles">1.248</span> resultados encontrados
</div>
</div>
<div class="overflow-x-auto">
<table class="data-table">
<thead>
<tr>
<th>Veículo</th>
<th>Ano</th>
<th>KM</th>
<th>Valor</th>
<th>Data Leilão</th>
<th>Condição</th>
<th>Ações</th>
</tr>
</thead>
<tbody>
<tr>
<td data-label="Veículo">
<div class="font-medium">Volkswagen Gol 1.0</div>
<div class="text-sm text-gray-500">1.0 MPI 8V Flex 4p</div>
</td>
<td data-label="Ano">2020/2021</td>
<td data-label="KM">45.200 km</td>
<td data-label="Valor">
<div class="font-medium text-blue-600">R$ 42.900</div>
<div class="text-xs text-gray-500">14/06/2023</div>
</td>
<td data-label="Data Leilão">14/06/2023</td>
<td data-label="Condição">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Conservado
</span>
</td>
<td data-label="Ações">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-external-link-alt"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fas fa-chart-line"></i>
</a>
</td>
</tr>
<tr>
<td data-label="Veículo">
<div class="font-medium">Chevrolet Onix Plus</div>
<div class="text-sm text-gray-500">1.0 Turbo Flex LT 4p</div>
</td>
<td data-label="Ano">2022/2022</td>
<td data-label="KM">18.750 km</td>
<td data-label="Valor">
<div class="font-medium text-blue-600">R$ 67.500</div>
<div class="text-xs text-gray-500">13/06/2023</div>
</td>
<td data-label="Data Leilão">13/06/2023</td>
<td data-label="Condição">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Sinistro
</span>
</td>
<td data-label="Ações">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-external-link-alt"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fas fa-chart-line"></i>
</a>
</td>
</tr>
<tr>
<td data-label="Veículo">
<div class="font-medium">Toyota Corolla</div>
<div class="text-sm text-gray-500">2.0 Flex XEi 4p</div>
</td>
<td data-label="Ano">2019/2020</td>
<td data-label="KM">78.300 km</td>
<td data-label="Valor">
<div class="font-medium text-blue-600">R$ 89.900</div>
<div class="text-xs text-gray-500">12/06/2023</div>
</td>
<td data-label="Data Leilão">12/06/2023</td>
<td data-label="Condição">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Conservado
</span>
</td>
<td data-label="Ações">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-external-link-alt"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fas fa-chart-line"></i>
</a>
</td>
</tr>
<tr>
<td data-label="Veículo">
<div class="font-medium">Fiat Toro</div>
<div class="text-sm text-gray-500">1.8 Flex Freedom 4x4 CD</div>
</td>
<td data-label="Ano">2021/2021</td>
<td data-label="KM">32.100 km</td>
<td data-label="Valor">
<div class="font-medium text-blue-600">R$ 95.800</div>
<div class="text-xs text-gray-500">11/06/2023</div>
</td>
<td data-label="Data Leilão">11/06/2023</td>
<td data-label="Condição">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
Sucata
</span>
</td>
<td data-label="Ações">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-external-link-alt"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fas fa-chart-line"></i>
</a>
</td>
</tr>
<tr>
<td data-label="Veículo">
<div class="font-medium">Hyundai HB20</div>
<div class="text-sm text-gray-500">1.0 Comfort Plus 12V Flex</div>
</td>
<td data-label="Ano">2020/2020</td>
<td data-label="KM">56.700 km</td>
<td data-label="Valor">
<div class="font-medium text-blue-600">R$ 48.300</div>
<div class="text-xs text-gray-500">10/06/2023</div>
</td>
<td data-label="Data Leilão">10/06/2023</td>
<td data-label="Condição">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Sinistro
</span>
</td>
<td data-label="Ações">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-external-link-alt"></i>
</a>
<a href="#" class="text-gray-600 hover:text-gray-900">
<i class="fas fa-chart-line"></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Anterior
</a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Próxima
</a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Mostrando
<span class="font-medium">1</span>
a
<span class="font-medium">5</span>
de
<span class="font-medium">1.248</span>
resultados
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Anterior</span>
<i class="fas fa-chevron-left"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
1
</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
2
</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
3
</a>
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">
...
</span>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
25
</a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Próxima</span>
<i class="fas fa-chevron-right"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
<!-- Statistics -->
<div id="estatisticas" class="bg-white shadow rounded-lg p-6 mt-8">
<h2 class="text-lg font-medium text-gray-900 mb-6">
<i class="fas fa-chart-line mr-2 text-blue-600"></i> Estatísticas de Preços
</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<div>
<h3 class="text-md font-medium text-gray-900 mb-4">Preço Médio por Modelo (últimos 30 dias)</h3>
<div class="chart-container">
<canvas id="priceChart" class="w-full h-full"></canvas>
</div>
</div>
<div>
<h3 class="text-md font-medium text-gray-900 mb-4">Distribuição de Condições</h3>
<div class="chart-container">
<canvas id="conditionChart" class="w-full h-full"></canvas>
</div>
</div>
</div>
<div class="mt-8">
<h3 class="text-md font-medium text-gray-900 mb-4">Top 10 Modelos Mais Leiloados</h3>
<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">Modelo</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Quantidade</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Preço Médio</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Variação (30d)</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="text-sm font-medium text-gray-900">Volkswagen Gol</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">128</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">R$ 43.250</div>
</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">
+2.5%
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="text-sm font-medium text-gray-900">Chevrolet Onix</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">97</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">R$ 65.800</div>
</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">
+1.8%
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="text-sm font-medium text-gray-900">Hyundai HB20</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">85</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">R$ 49.750</div>
</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">
-1.2%
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="text-sm font-medium text-gray-900">Fiat Argo</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">72</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">R$ 54.300</div>
</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">
+3.1%
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="text-sm font-medium text-gray-900">Toyota Corolla</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">68</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">R$ 91.200</div>
</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">
+0.7%
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- About -->
<div id="sobre" class="bg-white shadow rounded-lg p-6 mt-8">
<h2 class="text-lg font-medium text-gray-900 mb-4">
<i class="fas fa-info-circle mr-2 text-blue-600"></i> Sobre o Projeto
</h2>
<div class="prose max-w-none text-gray-600">
<p>O <strong>Leilão Analytics</strong> é um sistema de monitoramento de leilões de veículos que coleta dados automaticamente do site <a href="https://www.parquedosleiloes.com.br" target="_blank" class="text-blue-600 hover:text-blue-800">Parque dos Leilões</a>, filtrando apenas informações sobre carros.</p>
<h3 class="text-md font-medium text-gray-900 mt-6">Como Funciona</h3>
<p>Nosso sistema realiza web scraping diariamente para coletar informações sobre:</p>
<ul class="list-disc pl-5 space-y-1">
<li>Nome do veículo (marca e modelo)</li>
<li>Ano de fabricação</li>
<li>Quilometragem</li>
<li>Valor de arremate</li>
<li>Data do leilão</li>
<li>Link direto para o leilão</li>
<li>Condição do veículo (sinistro, sucata, conservado, etc)</li>
</ul>
<h3 class="text-md font-medium text-gray-900 mt-6">Tecnologias Utilizadas</h3>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-4">
<div class="bg-gray-50 p-4 rounded-lg text-center">
<i class="fab fa-python text-4xl text-blue-600 mb-2"></i>
<div class="font-medium">Python</div>
<div class="text-sm text-gray-500">BeautifulSoup/Playwright</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg text-center">
<i class="fas fa-database text-4xl text-blue-600 mb-2"></i>
<div class="font-medium">SQLite</div>
<div class="text-sm text-gray-500">Banco de Dados</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg text-center">
<i class="fab fa-js text-4xl text-blue-600 mb-2"></i>
<div class="font-medium">JavaScript</div>
<div class="text-sm text-gray-500">Frontend</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg text-center">
<i class="fas fa-server text-4xl text-blue-600 mb-2"></i>
<div class="font-medium">Flask</div>
<div class="text-sm text-gray-500">Backend</div>
</div>
</div>
<h3 class="text-md font-medium text-gray-900 mt-6">Objetivo</h3>
<p>Este projeto foi desenvolvido para ajudar compradores e vendedores a entenderem melhor o mercado de leilões de veículos, fornecendo dados históricos e estatísticas que permitem tomar decisões mais informadas.</p>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white mt-12 border-t border-gray-200">
<div class="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
<nav class="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
<div class="px-5 py-2">
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Início</a>
</div>
<div class="px-5 py-2">
<a href="#veiculos" class="text-base text-gray-500 hover:text-gray-900">Veículos</a>
</div>
<div class="px-5 py-2">
<a href="#estatisticas" class="text-base text-gray-500 hover:text-gray-900">Estatísticas</a>
</div>
<div class="px-5 py-2">
<a href="#sobre" class="text-base text-gray-500 hover:text-gray-900">Sobre</a>
</div>
<div class="px-5 py-2">
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Termos</a>
</div>
<div class="px-5 py-2">
<a href="#" class="text-base text-gray-500 hover:text-gray-900">Privacidade</a>
</div>
</nav>
<div class="mt-8 flex justify-center space-x-6">
<a href="#" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">Facebook</span>
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">Instagram</span>
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">Twitter</span>
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">GitHub</span>
<i class="fab fa-github"></i>
</a>
</div>
<p class="mt-8 text-center text-base text-gray-400">
&copy; 2023 Leilão Analytics. Todos os direitos reservados.
</p>
</div>
</footer>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Mobile menu toggle
document.querySelector('[aria-controls="mobile-menu"]').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// Filter functionality
document.getElementById('apply-filters').addEventListener('click', function() {
// In a real app, this would make an API call with the filter values
alert('Filtros aplicados! (Simulação)');
});
document.getElementById('reset-filters').addEventListener('click', function() {
document.getElementById('marca').value = '';
document.getElementById('modelo').value = '';
document.getElementById('ano').value = '';
document.getElementById('preco').value = '';
});
// Charts
const priceCtx = document.getElementById('priceChart').getContext('2d');
const priceChart = new Chart(priceCtx, {
type: 'bar',
data: {
labels: ['Gol', 'Onix', 'HB20', 'Corolla', 'Civic', 'Argo'],
datasets: [{
label: 'Preço Médio (R$)',
data: [43250, 65800, 49750, 91200, 78500, 54300],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: false,
ticks: {
callback: function(value) {
return 'R$ ' + value.toLocaleString('pt-BR');
}
}
}
},
plugins: {
tooltip: {
callbacks: {
label: function(context) {
return 'R$ ' + context.raw.toLocaleString('pt-BR');
}
}
}
}
}
});
const conditionCtx = document.getElementById('conditionChart').getContext('2d');
const conditionChart = new Chart(conditionCtx, {
type: 'doughnut',
data: {
labels: ['Conservado', 'Sinistro', 'Sucata', 'Outros'],
datasets: [{
data: [45, 35, 15, 5],
backgroundColor: [
'rgba(16, 185, 129, 0.7)',
'rgba(245, 158, 11, 0.7)',
'rgba(239, 68, 68, 0.7)',
'rgba(156, 163, 175, 0.7)'
],
borderColor: [
'rgba(16, 185, 129, 1)',
'rgba(245, 158, 11, 1)',
'rgba(239, 68, 68, 1)',
'rgba(156, 163, 175, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
}
}
}
});
// Update last update time
function updateLastUpdate() {
const now = new Date();
const options = {
day: '2-digit',
month: '2-digit',
year: 'numeric',
hour: '2-digit',
minute: '2-digit'
};
document.getElementById('last-update').textContent = now.toLocaleDateString('pt-BR', options);
}
updateLastUpdate();
</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=MVCS1993/my-analytics" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>