undefined / dashboard.html
tiarles445's picture
"Crie um aplicativo de gestão de serviços de campo chamado 'Vitor Soluções', focado exclusivamente na área de ar condicionado, com funcionalidades robustas para gerenciamento de equipe, ordens de serviço, comunicação, rastreamento e controle de expediente. O design deve ser moderno, intuitivo e responsivo, seguindo uma paleta de cores profissional (sugestão: azul, branco e tons neutros).
82ea6cd verified
Raw History Blame Contribute Delete
19.7 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vitor Soluções - Dashboard</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>❄️</text></svg>">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#1e40af',
secondary: '#3b82f6',
accent: '#60a5fa',
light: '#dbeafe',
dark: '#1e3a8a'
}
}
}
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
.card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-primary text-white w-64 space-y-6 py-7 px-2 fixed inset-y-0 left-0 transform md:translate-x-0 -translate-x-full transition duration-200 ease-in-out">
<div class="text-white flex items-center space-x-2 px-4">
<span class="text-2xl font-bold">❄️ Vitor Soluções</span>
</div>
<nav>
<a href="#" class="bg-light bg-opacity-20 text-white block py-2.5 px-4 rounded transition duration-200 hover:bg-light hover:bg-opacity-30">
<i data-feather="home" class="inline mr-2"></i>Dashboard
</a>
<a href="ordens.html" class="text-white block py-2.5 px-4 rounded transition duration-200 hover:bg-light hover:bg-opacity-30">
<i data-feather="clipboard" class="inline mr-2"></i>Ordens de Serviço
</a>
<a href="equipe.html" class="text-white block py-2.5 px-4 rounded transition duration-200 hover:bg-light hover:bg-opacity-30">
<i data-feather="users" class="inline mr-2"></i>Equipe
</a>
<a href="clientes.html" class="text-white block py-2.5 px-4 rounded transition duration-200 hover:bg-light hover:bg-opacity-30">
<i data-feather="user" class="inline mr-2"></i>Clientes
</a>
<a href="relatorios.html" class="text-white block py-2.5 px-4 rounded transition duration-200 hover:bg-light hover:bg-opacity-30">
<i data-feather="bar-chart-2" class="inline mr-2"></i>Relatórios
</a>
<a href="#" class="text-white block py-2.5 px-4 rounded transition duration-200 hover:bg-light hover:bg-opacity-30">
<i data-feather="settings" class="inline mr-2"></i>Configurações
</a>
</nav>
<div class="absolute bottom-0 w-full px-4 py-3 border-t border-light border-opacity-20">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-accent flex items-center justify-center">
<span class="font-bold">A</span>
</div>
<div>
<p class="font-semibold">Administrador</p>
<p class="text-xs text-light">admin@vitorsolucoes.com</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 md:ml-64">
<!-- Header -->
<header class="bg-white shadow">
<div class="flex items-center justify-between p-4">
<div class="flex items-center">
<button id="menuBtn" class="text-primary mr-4">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
<h1 class="text-xl font-bold text-gray-800">Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="bell" class="w-5 h-5"></i>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="search" class="w-5 h-5"></i>
</button>
<div class="relative">
<button class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white">
<span class="font-bold">A</span>
</div>
</button>
</div>
</div>
</div>
</header>
<!-- Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-primary">
<i data-feather="clipboard" class="w-6 h-6"></i>
</div>
<div class="ml-4">
<p class="text-gray-500 text-sm">Ordens Abertas</p>
<p class="text-2xl font-bold">24</p>
</div>
</div>
</div>
<div class="card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-500">
<i data-feather="check-circle" class="w-6 h-6"></i>
</div>
<div class="ml-4">
<p class="text-gray-500 text-sm">Concluídas</p>
<p class="text-2xl font-bold">142</p>
</div>
</div>
</div>
<div class="card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-500">
<i data-feather="clock" class="w-6 h-6"></i>
</div>
<div class="ml-4">
<p class="text-gray-500 text-sm">Pendentes</p>
<p class="text-2xl font-bold">8</p>
</div>
</div>
</div>
<div class="card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-red-100 text-red-500">
<i data-feather="alert-triangle" class="w-6 h-6"></i>
</div>
<div class="ml-4">
<p class="text-gray-500 text-sm">Atrasadas</p>
<p class="text-2xl font-bold">3</p>
</div>
</div>
</div>
</div>
<!-- Charts and Recent Activity -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<!-- Chart -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-bold text-gray-800 mb-4">Performance Mensal</h2>
<canvas id="performanceChart" height="300"></canvas>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-bold text-gray-800 mb-4">Atividade Recente</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="p-2 rounded-full bg-blue-100 text-primary mr-3">
<i data-feather="clipboard" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Nova ordem de serviço #AC-2023-001</p>
<p class="text-gray-500 text-sm">Cliente: João Silva - Instalação</p>
<p class="text-gray-400 text-xs">Há 10 minutos</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-green-100 text-green-500 mr-3">
<i data-feather="check-circle" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Ordem concluída #AC-2023-045</p>
<p class="text-gray-500 text-sm">Técnico: Carlos Mendes</p>
<p class="text-gray-400 text-xs">Há 1 hora</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-yellow-100 text-yellow-500 mr-3">
<i data-feather="user-plus" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Novo técnico cadastrado</p>
<p class="text-gray-500 text-sm">Maria Oliveira</p>
<p class="text-gray-400 text-xs">Há 2 horas</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-purple-100 text-purple-500 mr-3">
<i data-feather="message-square" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Nova mensagem de cliente</p>
<p class="text-gray-500 text-sm">Cliente: Ana Costa</p>
<p class="text-gray-400 text-xs">Há 3 horas</p>
</div>
</div>
</div>
</div>
</div>
<!-- Technician Status -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-bold text-gray-800 mb-4">Status dos Técnicos</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Técnico</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ordens Ativas</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Última Atividade</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="flex-shrink-0 h-10 w-10">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-800 font-bold">CM</span>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Carlos Mendes</div>
<div class="text-sm text-gray-500">carlos@vitorsolucoes.com</div>
</div>
</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">
Em Serviço
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Há 15 minutos</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<div class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
<span class="text-purple-800 font-bold">MO</span>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Maria Oliveira</div>
<div class="text-sm text-gray-500">maria@vitorsolucoes.com</div>
</div>
</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-yellow-100 text-yellow-800">
Disponível
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">0</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Há 5 minutos</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<span class="text-green-800 font-bold">RF</span>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Roberto Ferreira</div>
<div class="text-sm text-gray-500">roberto@vitorsolucoes.com</div>
</div>
</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-blue-100 text-blue-800">
Em Deslocamento
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Há 25 minutos</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
</div>
<script>
feather.replace();
// Toggle sidebar on mobile
document.getElementById('menuBtn').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('-translate-x-full');
});
// Chart initialization
const ctx = document.getElementById('performanceChart').getContext('2d');
const performanceChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
datasets: [{
label: 'Ordens Concluídas',
data: [12, 19, 15, 17, 22, 25, 30, 28, 35, 40, 45, 50],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.4,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
</script>
</body>
</html>