representante / index.html
EdilsonRocha's picture
Add 1 files
718d26b verified
Raw History Blame Contribute Delete
78.8 kB
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Aplicativo de Representante</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> .sidebar { transition: all 0.3s ease; } .map-container { height: 400px; background-color: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #666; } .customer-marker { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 12px; } .route-animation { animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .progress-bar { height: 6px; transition: width 0.3s ease; } </style> </head> <body class="bg-gray-100 font-sans"> <div class="flex h-screen overflow-hidden"> <!-- Sidebar --> <div class="sidebar bg-blue-800 text-white w-64 flex-shrink-0"> <div class="p-4 flex items-center justify-between border-b border-blue-700"> <div class="flex items-center space-x-2"> <i class="fas fa-user-tie text-xl"></i> <span class="text-xl font-bold">RepApp</span> </div> <button id="sidebarToggle" class="text-white focus:outline-none"> <i class="fas fa-bars"></i> </button> </div> <nav class="p-4"> <div class="mb-6"> <h3 class="text-xs uppercase tracking-wider text-blue-300 mb-2">Navegação</h3> <ul> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="dashboardLink"> <i class="fas fa-tachometer-alt mr-3"></i> <span>Painel</span> </a> </li> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="customersLink"> <i class="fas fa-store mr-3"></i> <span>Clientes</span> </a> </li> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="competitorsLink"> <i class="fas fa-chess-queen mr-3"></i> <span>Concorrentes</span> </a> </li> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="routesLink"> <i class="fas fa-route mr-3"></i> <span>Planejamento de Rota</span> </a> </li> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="reportsLink"> <i class="fas fa-chart-bar mr-3"></i> <span>Relatórios</span> </a> </li> </ul> </div> <div> <h3 class="text-xs uppercase tracking-wider text-blue-300 mb-2">Ferramentas</h3> <ul> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="mapLink"> <i class="fas fa-map-marked-alt mr-3"></i> <span>Mapa ao Vivo</span> </a> </li> <li class="mb-1"> <a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="searchLink"> <i class="fas fa-search-location mr-3"></i> <span>Buscar Próximo</span> </a> </li> </ul> </div> </nav> <div class="absolute bottom-0 w-full p-4 border-t border-blue-700"> <div class="flex items-center space-x-3"> <div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center"> <i class="fas fa-user"></i> </div> <div> <p class="font-medium">João Silva</p> <p class="text-xs text-blue-300">Representante Comercial</p> </div> </div> </div> </div> <!-- Main Content --> <div class="flex-1 overflow-auto"> <!-- Top Navigation --> <header class="bg-white shadow-sm"> <div class="flex items-center justify-between p-4"> <div class="flex items-center space-x-4"> <h1 class="text-xl font-semibold text-gray-800" id="pageTitle">Painel</h1> <div class="relative"> <input type="text" placeholder="Pesquisar..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> </div> </div> <div class="flex items-center space-x-4"> <button class="p-2 rounded-full hover:bg-gray-100 relative"> <i class="fas fa-bell text-gray-600"></i> <span class="absolute top-0 right-0 h-2 w-2 bg-red-500 rounded-full"></span> </button> <button class="p-2 rounded-full hover:bg-gray-100"> <i class="fas fa-question-circle text-gray-600"></i> </button> </div> </div> </header> <!-- Main Content Area --> <main class="p-4"> <!-- Dashboard Section --> <div id="dashboardSection"> <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6"> <!-- Stats Cards --> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Visitas Hoje</p> <h3 class="text-2xl font-bold">8</h3> </div> <div class="bg-blue-100 p-3 rounded-full"> <i class="fas fa-store text-blue-600"></i> </div> </div> <div class="mt-4"> <div class="flex justify-between text-sm text-gray-500"> <span>Meta: 12</span> <span>66%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2 mt-1"> <div class="bg-blue-600 h-2 rounded-full" style="width: 66%"></div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Novos Leads</p> <h3 class="text-2xl font-bold">3</h3> </div> <div class="bg-green-100 p-3 rounded-full"> <i class="fas fa-user-plus text-green-600"></i> </div> </div> <div class="mt-4"> <div class="flex justify-between text-sm text-gray-500"> <span>Esta Semana</span> <span>+50%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2 mt-1"> <div class="bg-green-600 h-2 rounded-full, style="width: 50%"></div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Negócios Fechados</p> <h3 class="text-2xl font-bold">2</h3> </div> <div class="bg-purple-100 p-3 rounded-full"> <i class="fas fa-handshake text-purple-600"></i> </div> </div> <div class="mt-4"> <div class="flex justify-between text-sm text-gray-500"> <span>Este Mês</span> <span>+25%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2 mt-1"> <div class="bg-purple-600 h-2 rounded-full" style="width: 25%"></div> </div> </div> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> <!-- Map Preview --> <div class="bg-white rounded-lg shadow p-4 lg:col-span-2"> <div class="flex justify-between items-center mb-4"> <h2 class="text-lg font-semibold">Sua Localização e Lojas Próximas</h2> <button class="text-blue-600 hover:text-blue-800" id="viewFullMap">Ver Mapa Completo</button> </div> <div id="miniMap" class="map-container rounded-lg"> [Mapa apareceria aqui - API Key necessária] </div> </div> <!-- Quick Actions --> <div class="bg-white rounded-lg shadow p-4"> <h2 class="text-lg font-semibold mb-4">Ações Rápidas</h2> <div class="space-y-3"> <button class="w-full flex items-center justify-between p-3 bg-blue-50 rounded-lg hover:bg-blue-100 transition"> <span class="font-medium">Adicionar Novo Cliente</span> <i class="fas fa-plus text-blue-600"></i> </button> <button class="w-full flex items-center justify-between p-3 bg-green-50 rounded-lg hover:bg-green-100 transition"> <span class="font-medium">Planejar Rota</span> <i class="fas fa-route text-green-600"></i> </button> <button class="w-full flex items-center justify-between p-3 bg-purple-50 rounded-lg hover:bg-purple-100 transition"> <span class="font-medium">Ver Concorrentes</span> <i class="fas fa-chess-queen text-purple-600"></i> </button> <button class="w-full flex items-center justify-between p-3 bg-yellow-50 rounded-lg hover:bg-yellow-100 transition"> <span class="font-medium">Gerar Relatório</span> <i class="fas fa-file-alt text-yellow-600"></i> </button> </div> <!-- Recent Activity --> <div class="mt-6"> <h2 class="text-lg font-semibold mb-3">Atividade Recente</h2> <div class="space-y-3"> <div class="flex items-start"> <div class="bg-blue-100 p-2 rounded-full mr-3"> <i class="fas fa-store text-blue-600 text-sm"></i> </div> <div> <p class="text-sm">Visitou <span class="font-medium">SuperMercado</span></p> <p class="text-xs text-gray-500">30 minutos atrás</p> </div> </div> <div class="flex items-start"> <div class="bg-green-100 p-2 rounded-full mr-3"> <i class="fas fa-check text-green-600 text-sm"></i> </div> <div> <p class="text-sm">Fechou negócio com <span class="font-medium">Mercado da Cidade</span></p> <p class="text-xs text-gray-500">2 horas atrás</p> </div> </div> <div class="flex items-start"> <div class="bg-purple-100 p-2 rounded-full mr-3"> <i class="fas fa-chess-queen text-purple-600 text-sm"></i> </div> <div> <p class="text-sm">Adicionou <span class="font-medium">MarcaX</span> aos concorrentes</p> <p class="text-xs text-gray-500">Ontem</p> </div> </div> </div> </div> </div> </div> </div> <!-- Customers Section --> <div id="customersSection" class="hidden"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Gestão de Clientes</h2> <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-plus mr-2"></i> Adicionar Cliente </button> </div> <div class="mb-6"> <div class="flex items-center space-x-4"> <div class="relative flex-1"> <input type="text" placeholder="Pesquisar clientes..." class="pl-10 pr-4 py-2 w-full border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> </div> <div> <select class="border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>Todos Status</option> <option>Contato Feito</option> <option>Negociação</option> <option>Fechado</option> <option>Perdido</option> </select> </div> </div> </div> <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">Cliente</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Localização</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">Última Visita</th> <th 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"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center"> <i class="fas fa-store text-blue-600"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">SuperMercado</div> <div class="text-sm text-gray-500">Rede de Varejo</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Rua Principal, 123</div> <div class="text-sm text-gray-500">1.2 km de distância</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">Fechado</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Hoje, 10:30</td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button> <button class="text-yellow-600 hover:text-yellow-900 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button> </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 bg-blue-100 rounded-full flex items-center justify-center"> <i class="fas fa-store text-blue-600"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Mercado da Cidade</div> <div class="text-sm text-gray-500">Mercado</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Avenida Carvalho, 456</div> <div class="text-sm text-gray-500">2.5 km de distância</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">Negociação</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Ontem, 15:45</td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button> <button class="text-yellow-600 hover:text-yellow-900 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button> </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 bg-blue-100 rounded-full flex items-center justify-center"> <i class="fas fa-store text-blue-600"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Posto Rápido</div> <div class="text-sm text-gray-500">Loja de Conveniência</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Estrada do Pinheiro, 789</div> <div class="text-sm text-gray-500">4.1 km de distância</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">Contato Feito</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 dias atrás</td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button> <button class="text-yellow-6 hover:text-yellow-900 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button> </td> </tr> </tbody> </table> </div> </div> </div> <!-- Competitors Section --> <div id="competitorsSection" class="hidden"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Marcas Concorrentes</h2> <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center" id="addCompetitorBtn"> <i class="fas fa-plus mr-2"></i> Adicionar Concorrente </button> </div> <!-- Competitor Form (Hidden by default) --> <div id="competitorForm" class="hidden mb-6 bg-gray-50 p-4 rounded-lg"> <h3 class="text-lg font-semibold mb-4">Cadastrar Novo Concorrente</h3> <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Nome da Marca</label> <input type="text" class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Categoria</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>Selecione a categoria</option> <option>Alimentos e Bebidas</option> <option>Eletrônicos</option> <option>Vestuário</option> <option>Produtos para Casa</option> <option>Outros</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Participação de Mercado</label> <input type="text" class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Estimativa %"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Presença em Lojas</label> <input type="text" class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Número de lojas"> </div> </div> <div class="mt-4"> <label class="block text-sm font-medium text-gray-700 mb-1">Observações</label> <textarea class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" rows="3"></textarea> </div> <div class="mt-4 flex justify-end space-x-3"> <button class="px-4 py-2 border rounded-lg hover:bg-gray-100" id="cancelCompetitorBtn">Cancelar</button> <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">Salvar Concorrente</button> </div> </div> <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> <!-- Competitor Card 1 --> <div class="bg-white border rounded-lg shadow-sm overflow-hidden hover:shadow-md transition"> <div class="bg-red-600 p-4 text-white"> <div class="flex justify-between items-center"> <h3 class="font-bold text-lg">MarcaX</h3> <div class="bg-white bg-opacity-20 p-2 rounded-full"> <i class="fas fa-chess-queen"></i> </div> </div> <p class="text-sm opacity-80">Alimentos e Bebidas</p> </div> <div class="p-4"> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Participação de Mercado</span> <span class="font-medium">22%</span> </div> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Lojas que Vendem</span> <span class="font-medium">8/12</span> </div> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Última Atualização</span> <span class="text-sm">2 dias atrás</span> </div> <div class="mt-4 flex space-x-2"> <button class="flex-1 bg-gray-100 hover:bg-gray-200 py-1 rounded text-sm">Ver Detalhes</button> <button class="flex-1 bg-red-100 hover:bg-red-200 py-1 rounded text-sm text-red-800">Remover</button> </div> </div> </div> <!-- Competitor Card 2 --> <div class="bg-white border rounded-lg shadow-sm overflow-hidden hover:shadow-md transition"> <div class="bg-yellow-600 p-4 text-white"> <div class="flex justify-between items-center"> <h3 class="font-bold text-lg">SuperProdutos</h3> <div class="bg-white bg-opacity-20 p-2 rounded-full"> <i class="fas fa-chess-queen"></i> </div> </div> <p class="text-sm opacity-80">Produtos para Casa</p> </div> <div class="p-4"> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Participação de Mercado</span> <span class="font-medium">15%</span> </div> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Lojas que Vendem</span> <span class="font-medium">5/12</span> </div> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Última Atualização</span> <span class="text-sm">1 semana atrás</span> </div> <div class="mt-4 flex space-x-2"> <button class="flex-1 bg-gray-100 hover:bg-gray-200 py-1 rounded text-sm">Ver Detalhes</button> <button class="flex-1 bg-red-100 hover:bg-red-200 py-1 rounded text-sm text-red-800">Remover</button> </div> </div> </div> <!-- Competitor Card 3 --> <div class="bg-white border rounded-lg shadow-sm overflow-hidden hover:shadow-md transition"> <div class="bg-purple-600 p-4 text-white"> <div class="flex justify-between items-center"> <h3 class="font-bold text-lg">EstiloTop</h3> <div class="bg-white bg-opacity-20 p-2 rounded-full"> <i class="fas fa-chess-queen"></i> </div> </div> <p class="text-sm opacity-80">Vestuário</p> </div> <div class="p-4"> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Participação de Mercado</span> <span class="font-medium">18%</span> </div> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Lojas que Vendem</span> <span class="font-medium">7/12</span> </div> <div class="flex justify-between mb-3"> <span class="text-sm text-gray-500">Última Atualização</span> <span class="text-sm">3 dias atrás</span> </div> <div class="mt-4 flex space-x-2"> <button class="flex-1 bg-gray-100 hover:bg-gray-200 py-1 rounded text-sm">Ver Detalhes</button> <button class="flex-1 bg-red-100 hover:bg-red-200 py-1 rounded text-sm text-red-800">Remover</button> </div> </div> </div> </div> </div> </div> <!-- Route Planning Section --> <div id="routesSection" class="hidden"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Planejamento de Rota</h2> <div class="flex space-x-3"> <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-route mr-2"></i> Otimizar Rota </button> <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-directions mr-2"></i> Iniciar Navegação </button> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> <div class="lg:col-span-2"> <div class="bg-gray-50 p-4 rounded-lg mb-4"> <h3 class="font-semibold mb-3">Visão Geral da Rota</h3> <div class="grid grid-cols-3 gap-4 text-center"> <div class="bg-white p-3 rounded-lg shadow-sm"> <p class="text-sm text-gray-500">Distância Total</p> <p class="font-bold">23.3 km</p> </div> <div class="bg-white p-3 rounded-lg shadow-sm"> <p class="text-sm text-gray-500">Tempo Estimado</p> <p class="font-bold">42 min</p> </div> <div class="bg-white p-3 rounded-lg shadow-sm"> <p class="text-sm text-gray-500">Combustível Necessário</p> <p class="font-bold">4.5 L</p> </div> </div> </div> <div id="routeMap" class="map-container rounded-lg"> [Mapa de rota apareceria aqui - API Key necessária] </div> </div> <div> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold mb-3">Paradas na Rota</h3> <div class="space-y-3"> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-blue-100 p-2 rounded-full mr-3"> <span class="text-blue-800 font-bold">1</span> </div> <div class="flex-1"> <p class="font-medium">SuperMercado</p> <p class="text-sm text-gray-500">Rua Principal, 123 • Prioridade: Alta</p> <p class="text-xs text-gray-400 mt-1">Status: Fechado • Duração: 30 min</p> </div> <button class="text-gray-400 hover:text-gray-600"> <i class="fas fa-ellipsis-v"></i> </button> </div> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-blue-100 p-2 rounded-full mr-3"> <span class="text-blue-800 font-bold">2</span> </div> <div class="flex-1"> <p class="font-medium">Mercado da Cidade</p> <p class="text-sm text-gray-500">Avenida Carvalho, 456 • Prioridade: Média</p> <p class="text-xs text-gray-400 mt-1">Status: Negociação • Duração: 45 min</p> </div> <button class="text-gray-400 hover:text-gray-600"> <i class="fas fa-ellipsis-v"></i> </button> </div> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-blue-100 p-2 rounded-full mr-3"> <span class="text-blue-800 font-bold">3</span> </div> <div class="flex-1"> <p class="font-medium">Posto Rápido</p> <p class="text-sm text-gray-500">Estrada do Pinheiro, 789 • Prioridade: Baixa</p> <p class="text-xs text-gray-400 mt-1">Status: Contato Feito • Duração: 20 min</p> </div> <button class="text-gray-400 hover:text-gray-600"> <i class="fas fa-ellipsis-v"></i> </button> </div> </div> <div class="mt-4"> <button class="w-full bg-gray-200 hover:bg-gray-300 p-2 rounded-lg text-sm font-medium flex items-center justify-center"> <i class="fas fa-plus mr-2"></i> Adicionar Parada </button> </div> </div> <div class="bg-gray-50 p-4 rounded-lg mt-4"> <h3 class="font-semibold mb-3">Opções de Navegação</h3> <div class="space-y-3"> <button class="w-full flex items-center justify-between p-3 bg-white rounded-lg shadow-sm hover:bg-gray-100"> <div class="flex items-center"> <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Google_Maps_icon_%282020%29.svg/1200px-Google_Maps_icon_%282020%29.svg.png" class="w-6 h-6 mr-3"> <span>Google Maps</span> </div> <i class="fas fa-chevron-right text-gray-400"></i> </button> <button class="w-full flex items-center justify-between p-3 bg-white rounded-lg shadow-sm hover:bg-gray-100"> <div class="flex items-center"> <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Waze_Logo_2022.png/1200px-Waze_Logo_2022.png" class="w-6 h-6 mr-3"> <span>Waze</span> </div> <i class="fas fa-chevron-right text-gray-400"></i> </button> </div> </div> </div> </div> </div> </div> <!-- Reports Section --> <div id="reportsSection" class="hidden"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Relatórios e Análises</h2> <div class="flex space-x-3"> <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-download mr-2"></i> Exportar </button> <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-plus mr-2"></i> Novo Relatório </button> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold mb-3">Filtrar Relatórios</h3> <div class="space-y-3"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Período</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>Últimos 7 dias</option> <option>Últimos 30 dias</option> <option>Último trimestre</option> <option>Último ano</option> <option>Período personalizado</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Tipo de Relatório</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>Resumo de Visitas</option> <option>Desempenho de Vendas</option> <option>Aquisição de Clientes</option> <option>Análise de Concorrentes</option> <option>Eficiência de Rotas</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Região</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>Todas Regiões</option> <option>Norte</option> <option>Sul</option> <option>Leste</option> <option>Oeste</option> </select> </div> <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-lg"> Gerar Relatório </button> </div> </div> <div class="lg:col-span-2"> <div class="bg-white border rounded-lg p-4"> <div class="flex justify-between items-center mb-4"> <h3 class="font-semibold">Resumo de Visitas (Últimos 30 Dias)</h3> <div class="flex space-x-2"> <button class="p-1 rounded hover:bg-gray-100"> <i class="fas fa-download text-gray-600"></i> </button> <button class="p-1 rounded hover:bg-gray-100"> <i class="fas fa-print text-gray-600"></i> </button> </div> </div> <div class="h-64 bg-gray-50 rounded flex items-center justify-center"> <p class="text-gray-500">[Gráfico apareceria aqui]</p> </div> </div> </div> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div class="bg-white border rounded-lg p-4"> <h3 class="font-semibold mb-4">Clientes com Melhor Desempenho</3> <div class="space-y-4"> <div> <div class="flex justify-between mb-1"> <span class="font-medium">SuperMercado</span> <span class="text-blue-600">R$ 62.250</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 100%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="font-medium">Mercado da Cidade</span> <span class="text-blue-600">R$ 48.900</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 78%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="font-medium">Posto Rápido</span> <span class="text-blue-600">R$ 32.700</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 52%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="font-medium">Mercadinho da Esquina</span> <span class="text-blue-600">R$ 21.600</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 35%"></div> </div> </div> </div> </div> <div class="bg-white border rounded-lg p-4"> <h3 class="font-semibold mb-4">Taxas de Conversão de Visitas</h3> <div class="grid grid-cols-3 gap-4 text-center"> <div class="bg-green-50 p-3 rounded-lg"> <p class="text-sm text-gray-500">Contato Feito</p> <p class="text-2xl font-bold text-green-600">24</p> <p class="text-xs text-gray-500">+12% do mês passado</p> </div> <div class="bg-yellow-50 p-3 rounded-lg"> <p class="text-sm text-gray-500">Negociação</p> <p class="text-2xl font-bold text-yellow-600">8</p> <p class="text-xs text-gray-500">+5% do mês passado</p> </div> <div class="bg-purple-50 p-3 rounded-lg"> <p class="text-sm text-gray-500">Fechado</p> <p class="text-2xl font-bold text-purple-600">5</p> <p class="text-xs text-gray-500">+2% do mês passado</p> </div> </div> <div class="mt-4"> <div class="flex justify-between mb-1"> <span class="text-sm font-medium">Taxa de Conversão Geral</span> <span class="text-sm font-medium">15.4%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-gradient-to-r from-green-400 via-yellow-400 to-purple-600 h-2 rounded-full" style="width: 15.4%"></div> </div> </div> </div> </div> </div> </div> <!-- Map Section --> <div id="mapSection" class="hidden"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Mapa ao Vivo</h2> <div class="flex space-x-3"> <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-search-location mr-2"></i> Buscar Próximo </button> <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-layer-group mr-2"></i> Camadas </button> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> <div class="lg:col-span-3"> <div id="fullMap" class="map-container rounded-lg"> [Mapa completo apareceria aqui - API Key necessária] </div> </div> <div> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold mb-3">Filtros do Mapa</h3> <div class="space-y-3"> <div> <label class="flex items-center"> <input type="checkbox" class="rounded text-blue-600" checked> <span class="ml-2">Mostrar Clientes</span> </label> </div> <div> <label class="flex items-center"> <input type="checkbox" class="rounded text-blue-600" checked> <span class="ml-2">Mostrar Concorrentes</span> </label> </div> <div> <label class="flex items-center"> <input type="checkbox" class="rounded text-blue-600"> <span class="ml-2">Mostrar Potenciais Leads</span> </label> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Status do Cliente</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" multiple> <option selected>Contato Feito</option> <option selected>Negociação</option> <option selected>Fechado</option> <option>Perdido</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Raio</label> <input type="range" class="w-full" min="1" max="50" value="10"> <div class="flex justify-between text-xs text-gray-500"> <span>1 km</span> <span>10 km</span> <span>50 km</span> </div> </div> </div> </div> <div class="bg-gray-50 p-4 rounded-lg mt-4"> <h3 class="font-semibold mb-3">Locais Próximos</h3> <div class="space-y-3 max-h-64 overflow-y-auto"> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-blue-100 p-2 rounded-full mr-3"> <i class="fas fa-store text-blue-600"></i> </div> <div> <p class="font-medium">SuperMercado</p> <p class="text-sm text-gray-500">1.3 km de distância</p> <p class="text-xs text-blue-600 mt-1">Status: Fechado</p> </div> </div> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-red-100 p-2 rounded-full mr-3"> <i class="fas fa-chess-queen text-red-600"></i> </div> <div> <p class="font-medium">Loja MarcaX</p> <p class="text-sm text-gray-500">1.9 km de distância</p> <p class="text-xs text-gray-500 mt-1">Concorrente</p> </div> </div> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-blue-100 p-2 rounded-full mr-3"> <i class="fas fa-store text-blue-600"></i> </div> <div> <p class="font-medium">Mercado da Cidade</p> <p class="text-sm text-gray-500">3.4 km de distância</p> <p class="text-xs text-yellow-600 mt-1">Status: Negociação</p> </div> </div> <div class="bg-white p-3 rounded-lg shadow-sm flex items-start"> <div class="bg-gray-100 p-2 rounded-full mr-3"> <i class="fas fa-question-circle text-gray-600"></i> </div> <div> <p class="font-medium">Posto Rápido</p> <p class="text-sm text-gray-500">5.6 km de distância</p> <p class="text-xs text-gray-500 mt-1">Potencial Lead</p> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Search Section --> <div id="searchSection" class="hidden"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Buscar Lojas Próximas</h2> <div class="flex space-x-3"> <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center"> <i class="fas fa-filter mr-2"></i> Filtros </button> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> <div> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold mb-3">Parâmetros de Busca</h3> <div class="space-y-3"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Termo de Busca</label> <input type="text" placeholder="ex: mercado, farmácia" class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Localização</label> <input type="text" placeholder="Localização atual" class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Raio</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>1 km</option> <option selected>5 km</option> <option>10 km</option> <option>20 km</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Categoria</label> <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> <option>Todas Categorias</option> <option>Mercado</option> <option>Farmácia</option> <option>Conveniência</option> <option>Especializado</option> </select> </div> <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-lg"> Buscar </button> </div> </div> </div> <div class="lg:col-span-3"> <div id="searchMap" class="map-container rounded-lg mb-4"> [Mapa de busca apareceria aqui - API Key necessária] </div> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold mb-3">Resultados da Busca (12 encontrados)</h3> <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> <div class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition"> <div class="flex items-start"> <div class="bg-blue-100 p-3 rounded-full mr-3"> <i class="fas fa-store text-blue-600"></i> </div> <div> <p class="font-medium">Mercado Fresco</p> <p class="text-sm text-gray-500">1.9 km • Avenida Carvalho, 456</p> <div class="mt-2 flex space-x-2"> <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Mercado</span> <span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded-full">Novo</span> </div> <div class="mt-3 flex space-x-2"> <button class="text-xs bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded">Adicionar Cliente</button> <button class="text-xs border hover:bg-gray-100 px-3 py-1 rounded">Ver Detalhes</button> </div> </div> </div> </div> <div class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition"> <div class="flex items-start"> <div class="bg-red-100 p-3 rounded-full mr-3"> <i class="fas fa-chess-queen text-red-600"></i> </div> <div> <p class="font-medium">Outlet MarcaX</p> <p class="text-sm text-gray-500">2.4 km • Estrada do Pinheiro, 789</p> <div class="mt-2 flex space-x-2"> <span class="px-2 py-1 bg-red-100 text-red-800 text-xs rounded-full">Concorrente</span> <span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded-full">Existente</span> </div> <div class="mt-3 flex space-x-2"> <button class="text-xs bg-gray-600 hover:bg-gray-700 text-white px-3 py-1 rounded">Ver Info</button> <button class="text-xs border hover:bg-gray-100 px-3 py-1 rounded">Mapa</button> </div> </div> </div> </div> <div class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition"> <div class="flex items-start"> <div class="bg-blue-100 p-3 rounded-full mr-3"> <i class="fas fa-store text-blue-600"></i> </div> <div> <p class="font-medium">Farmácia Rápida</p> <p class="text-sm text-gray-500">3.7 km • Rua do Olmo, 321</p> <div class="mt-2 flex space-x-2"> <span class="px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded-full">Farmácia</span> <span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded-full">Potencial</span> </div> <div class="mt-3 flex space-x-2"> <button class="text-xs bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded">Adicionar Cliente</button> <button class="text-xs border hover:bg-gray-100 px-3 py-1 rounded">Ver Detalhes</button> </div> </div> </div> </div> <div class="bg-white p-4 rounded-lg shadow-sm hover:shadow-md transition"> <div class="flex items-start"> <div class="bg-yellow-100 p-3 rounded-full mr-3"> <i class="fas fa-store text-yellow-600"></i> </div> <div> <p class="font-medium">Mercadinho da Esquina</p> <p class="text-sm text-gray-500">5.0 km • Avenida do Bordo, 654</p> <div class="mt-2 flex space-x-2"> <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">Conveniência</span> <span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded-full">Existente</span> </div> <div class="mt-3 flex space-x-2"> <button class="text-xs bg-gray-600 hover:bg-gray-700 text-white px-3 py-1 rounded">Ver Info</button> <button class="text-xs border hover:bg-gray-100 px-3 py-1 rounded">Mapa</button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </main> </div> </div> <script> // Navigation between sections document.getElementById('dashboardLink').addEventListener('click', function(e) { e.preventDefault(); showSection('dashboardSection'); document.getElementById('pageTitle').textContent = 'Painel'; }); document.getElementById('customersLink').addEventListener('click', function(e) { e.preventDefault(); showSection('customersSection'); document.getElementById('pageTitle').textContent = 'Clientes'; }); document.getElementById('competitorsLink').addEventListener('click', function(e) { e.preventDefault(); showSection('competitorsSection'); document.getElementById('pageTitle').textContent = 'Concorrentes'; }); document.getElementById('routesLink').addEventListener('click', function(e) { e.preventDefault(); showSection('routesSection'); document.getElementById('pageTitle').textContent = 'Planejamento de Rota'; }); document.getElementById('reportsLink').addEventListener('click', function(e) { e.preventDefault(); showSection('reportsSection'); document.getElementById('pageTitle').textContent = 'Relatórios'; }); document.getElementById('mapLink').addEventListener('click', function(e) { e.preventDefault(); showSection('mapSection'); document.getElementById('pageTitle').textContent = 'Mapa ao Vivo'; }); document.getElementById('searchLink').addEventListener('click', function(e) { e.preventDefault(); showSection('searchSection'); document.getElementById('pageTitle').textContent = 'Buscar Próximo'; }); document.getElementById('viewFullMap').addEventListener('click', function(e) { e.preventDefault(); showSection('mapSection'); document.getElementById('pageTitle').textContent = 'Mapa ao Vivo'; }); function showSection(sectionId) { // Hide all sections document.querySelectorAll('main > div').forEach(section => { section.classList.add('hidden'); }); // Show the selected section document.getElementById(sectionId).classList.remove('hidden'); } // Competitor form toggle document.getElementById('addCompetitorBtn').addEventListener('click', function() { document.getElementById('competitorForm').classList.remove('hidden'); }); document.getElementById('cancelCompetitorBtn').addEventListener('click', function(e) { e.preventDefault(); document.getElementById('competitorForm').classList.add('hidden'); }); // Sidebar toggle for mobile document.getElementById('sidebarToggle').addEventListener('click', function() { document.querySelector('.sidebar').classList.toggle('-ml-64'); }); // Helper function for status colors (mock for maps functionality) function getStatusColor(status) { const colors = { 'closed': '#10B981', // green 'negotiation': '#F59E0B', // yellow 'contact': '#3B82F6', // blue 'lost': '#EF4444' // red }; return colors[status] || '#6B7280'; // gray as default } </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=EdilsonRocha/representante" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aplicativo de Representante</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>
.sidebar {
transition: all 0.3s ease;
}
.map-container {
height: 400px;
background-color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
color: #666;
}
.customer-marker {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 12px;
}
.route-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.progress-bar {
height: 6px;
transition: width 0.3s ease;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 flex-shrink-0">
<div class="p-4 flex items-center justify-between border-b border-blue-700">
<div class="flex items-center space-x-2">
<i class="fas fa-user-tie text-xl"></i>
<span class="text-xl font-bold">RepApp</span>
</div>
<button id="sidebarToggle" class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<nav class="p-4">
<div class="mb-6">
<h3 class="text-xs uppercase tracking-wider text-blue-300 mb-2">Navegação</h3>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="dashboardLink">
<i class="fas fa-tachometer-alt mr-3"></i>
<span>Painel</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="customersLink">
<i class="fas fa-store mr-3"></i>
<span>Clientes</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="competitorsLink">
<i class="fas fa-chess-queen mr-3"></i>
<span>Concorrentes</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="routesLink">
<i class="fas fa-route mr-3"></i>
<span>Planejamento de Rota</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="reportsLink">
<i class="fas fa-chart-bar mr-3"></i>
<span>Relatórios</span>
</a>
</li>
</ul>
</div>
<div>
<h3 class="text-xs uppercase tracking-wider text-blue-300 mb-2">Ferramentas</h3>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-blue-700 transition" id="mapLink">
<i class="fas fa-map-marked-alt mr-3"></i>