Download index.html from guiWWWW/spacetest: direct link, hf CLI and curl.
- Browser
- Download file 29.6 kB
-
https://huggingface.co/spaces/guiWWWW/spacetest/resolve/main/index.html
- Command line
-
hf download hf://spaces/guiWWWW/spacetest/index.html
-
curl -L -o index.html https://huggingface.co/spaces/guiWWWW/spacetest/resolve/main/index.html
29.6 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Agendamento Podológico</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> | |
| .active-tab { | |
| background-color: #4f46e5; | |
| color: white; | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.3s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar-collapsed { | |
| width: 70px; | |
| } | |
| .sidebar-expanded { | |
| width: 250px; | |
| } | |
| .content-expanded { | |
| margin-left: 250px; | |
| } | |
| .content-collapsed { | |
| margin-left: 70px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <div class="flex"> | |
| <!-- Sidebar --> | |
| <div id="sidebar" class="sidebar sidebar-expanded bg-indigo-800 text-white h-screen fixed overflow-y-auto"> | |
| <div class="p-4 flex items-center justify-between border-b border-indigo-700"> | |
| <h1 class="text-xl font-bold whitespace-nowrap" id="logo-text">Podoclinic</h1> | |
| <button id="toggle-sidebar" class="text-white focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <nav class="mt-6"> | |
| <div> | |
| <button id="dashboard-tab" class="w-full flex items-center p-4 text-white hover:bg-indigo-700 active-tab"> | |
| <i class="fas fa-calendar-alt mr-3"></i> | |
| <span class="whitespace-nowrap">Agendamentos</span> | |
| </button> | |
| <button id="appointments-tab" class="w-full flex items-center p-4 text-white hover:bg-indigo-700"> | |
| <i class="fas fa-plus-circle mr-3"></i> | |
| <span class="whitespace-nowrap">Novo Atendimento</span> | |
| </button> | |
| <button id="clients-tab" class="w-full flex items-center p-4 text-white hover:bg-indigo-700"> | |
| <i class="fas fa-user-plus mr-3"></i> | |
| <span class="whitespace-nowrap">Cadastrar Cliente</span> | |
| </button> | |
| <button id="reports-tab" class="w-full flex items-center p-4 text-white hover:bg-indigo-700"> | |
| <i class="fas fa-chart-bar mr-3"></i> | |
| <span class="whitespace-nowrap">Relatórios</span> | |
| </button> | |
| <button id="settings-tab" class="w-full flex items-center p-4 text-white hover:bg-indigo-700"> | |
| <i class="fas fa-cog mr-3"></i> | |
| <span class="whitespace-nowrap">Configurações</span> | |
| </button> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div id="main-content" class="content-expanded p-8 flex-1 fade-in"> | |
| <!-- Dashboard Tab (Default) --> | |
| <div id="dashboard-content"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Agendamentos</h2> | |
| <div class="flex space-x-2"> | |
| <button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg"> | |
| <i class="fas fa-filter mr-2"></i>Filtrar | |
| </button> | |
| <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg"> | |
| <i class="fas fa-print mr-2"></i>Imprimir | |
| </button> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <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">Data</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hora</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Procedimento</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor</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" id="appointments-table"> | |
| <!-- Sample data - would be populated from JS --> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap">Maria Silva</td> | |
| <td class="px-6 py-4 whitespace-nowrap">15/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap">14:30</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Tratamento de unha encravada</td> | |
| <td class="px-6 py-4 whitespace-nowrap">R$ 120,00</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <button class="text-indigo-600 hover:text-indigo-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">João Oliveira</td> | |
| <td class="px-6 py-4 whitespace-nowrap">16/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap">10:00</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Manutenção de calosidades</td> | |
| <td class="px-6 py-4 whitespace-nowrap">R$ 80,00</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <button class="text-indigo-600 hover:text-indigo-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">Ana Souza</td> | |
| <td class="px-6 py-4 whitespace-nowrap">17/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap">15:45</td> | |
| <td class="px-6 py-4 whitespace-nowrap">Tratamento de micose</td> | |
| <td class="px-6 py-4 whitespace-nowrap">R$ 150,00</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <button class="text-indigo-600 hover:text-indigo-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> | |
| <!-- New Appointment Tab --> | |
| <div id="appointments-content" class="hidden"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Novo Atendimento</h2> | |
| <form id="appointment-form"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <label for="client-select" class="block text-sm font-medium text-gray-700 mb-1">Cliente</label> | |
| <select id="client-select" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="">Selecione um cliente</option> | |
| <option value="1">Maria Silva</option> | |
| <option value="2">João Oliveira</option> | |
| <option value="3">Ana Souza</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="appointment-date" class="block text-sm font-medium text-gray-700 mb-1">Data</label> | |
| <input type="date" id="appointment-date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="appointment-time" class="block text-sm font-medium text-gray-700 mb-1">Hora</label> | |
| <input type="time" id="appointment-time" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="procedure-select" class="block text-sm font-medium text-gray-700 mb-1">Procedimento</label> | |
| <select id="procedure-select" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="">Selecione um procedimento</option> | |
| <option value="1">Tratamento de unha encravada</option> | |
| <option value="2">Manutenção de calosidades</option> | |
| <option value="3">Tratamento de micose</option> | |
| <option value="4">Pedicure terapêutica</option> | |
| <option value="5">Ortese de silicone</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="appointment-value" class="block text-sm font-medium text-gray-700 mb-1">Valor (R$)</label> | |
| <input type="number" id="appointment-value" step="0.01" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="appointment-notes" class="block text-sm font-medium text-gray-700 mb-1">Observações</label> | |
| <textarea id="appointment-notes" rows="2" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"></textarea> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-end space-x-3"> | |
| <button type="button" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50"> | |
| Cancelar | |
| </button> | |
| <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700"> | |
| <i class="fas fa-save mr-2"></i>Salvar Atendimento | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- New Client Tab --> | |
| <div id="clients-content" class="hidden"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Cadastrar Novo Cliente</h2> | |
| <form id="client-form"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <label for="client-name" class="block text-sm font-medium text-gray-700 mb-1">Nome Completo</label> | |
| <input type="text" id="client-name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="client-phone" class="block text-sm font-medium text-gray-700 mb-1">Telefone</label> | |
| <input type="tel" id="client-phone" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="client-email" class="block text-sm font-medium text-gray-700 mb-1">E-mail</label> | |
| <input type="email" id="client-email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="client-birthdate" class="block text-sm font-medium text-gray-700 mb-1">Data de Nascimento</label> | |
| <input type="date" id="client-birthdate" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="client-cpf" class="block text-sm font-medium text-gray-700 mb-1">CPF</label> | |
| <input type="text" id="client-cpf" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="client-gender" class="block text-sm font-medium text-gray-700 mb-1">Sexo</label> | |
| <select id="client-gender" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="">Selecione</option> | |
| <option value="F">Feminino</option> | |
| <option value="M">Masculino</option> | |
| <option value="O">Outro</option> | |
| </select> | |
| </div> | |
| <div class="md:col-span-2"> | |
| <label for="client-address" class="block text-sm font-medium text-gray-700 mb-1">Endereço</label> | |
| <input type="text" id="client-address" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| </div> | |
| <div class="md:col-span-2"> | |
| <label for="client-notes" class="block text-sm font-medium text-gray-700 mb-1">Observações</label> | |
| <textarea id="client-notes" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"></textarea> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-end space-x-3"> | |
| <button type="button" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50"> | |
| Cancelar | |
| </button> | |
| <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700"> | |
| <i class="fas fa-save mr-2"></i>Salvar Cliente | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Reports Tab --> | |
| <div id="reports-content" class="hidden"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Relatórios</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> | |
| <div class="bg-indigo-50 p-4 rounded-lg border border-indigo-100"> | |
| <h3 class="text-lg font-semibold text-indigo-800 mb-2">Atendimentos Hoje</h3> | |
| <p class="text-3xl font-bold text-indigo-600">5</p> | |
| </div> | |
| <div class="bg-green-50 p-4 rounded-lg border border-green-100"> | |
| <h3 class="text-lg font-semibold text-green-800 mb-2">Receita Mensal</h3> | |
| <p class="text-3xl font-bold text-green-600">R$ 3.450,00</p> | |
| </div> | |
| <div class="bg-purple-50 p-4 rounded-lg border border-purple-100"> | |
| <h3 class="text-lg font-semibold text-purple-800 mb-2">Clientes Ativos</h3> | |
| <p class="text-3xl font-bold text-purple-600">42</p> | |
| </div> | |
| </div> | |
| <div class="mb-8"> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-4">Atendimentos por Procedimento</h3> | |
| <div class="bg-white border border-gray-200 rounded-lg p-4"> | |
| <canvas id="procedureChart" height="150"></canvas> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-4">Histórico Mensal</h3> | |
| <div class="bg-white border border-gray-200 rounded-lg p-4"> | |
| <canvas id="monthlyChart" height="150"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Settings Tab --> | |
| <div id="settings-content" class="hidden"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Configurações</h2> | |
| <div class="mb-8"> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-4">Procedimentos</h3> | |
| <div class="bg-gray-50 p-4 rounded-lg border border-gray-200"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h4 class="font-medium text-gray-700">Lista de Procedimentos</h4> | |
| <button class="px-3 py-1 bg-indigo-600 text-white rounded-lg text-sm hover:bg-indigo-700"> | |
| <i class="fas fa-plus mr-1"></i>Adicionar | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-100"> | |
| <tr> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Procedimento</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Duração</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor</th> | |
| <th class="px-4 py-2 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-4 py-2 whitespace-nowrap">Tratamento de unha encravada</td> | |
| <td class="px-4 py-2 whitespace-nowrap">45 min</td> | |
| <td class="px-4 py-2 whitespace-nowrap">R$ 120,00</td> | |
| <td class="px-4 py-2 whitespace-nowrap"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-2"> | |
| <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-4 py-2 whitespace-nowrap">Manutenção de calosidades</td> | |
| <td class="px-4 py-2 whitespace-nowrap">30 min</td> | |
| <td class="px-4 py-2 whitespace-nowrap">R$ 80,00</td> | |
| <td class="px-4 py-2 whitespace-nowrap"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-2"> | |
| <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-4 py-2 whitespace-nowrap">Tratamento de micose</td> | |
| <td class="px-4 py-2 whitespace-nowrap">60 min</td> | |
| <td class="px-4 py-2 whitespace-nowrap">R$ 150,00</td> | |
| <td class="px-4 py-2 whitespace-nowrap"> | |
| <button class="text-indigo-600 hover:text-indigo-900 mr-2"> | |
| <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> | |
| <div> | |
| <h3 class="text-lg font-semibold text-gray-800 mb-4">Horário de Funcionamento</h3> | |
| <div class="bg-gray-50 p-4 rounded-lg border border-gray-200"> | |
| <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">Dias de Atendimento</label> | |
| <div class="space-y-2"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="monday" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <label for="monday" class="ml-2 block text-sm text-gray-700">Segunda-feira</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="tuesday" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <label for="tuesday" class="ml-2 block text-sm text-gray-700">Terça-feira</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="wednesday" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <label for="wednesday" class="ml-2 block text-sm text-gray-700">Quarta-feira</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="thursday" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <label for="thursday" class="ml-2 block text-sm text-gray-700">Quinta-feira</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="friday" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <label for="friday" class="ml-2 block text-sm text-gray-700">Sexta-feira</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="saturday" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <label for="saturday" class="ml-2 block text-sm text-gray-700">Sábado</label> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="opening-time" class="block text-sm font-medium text-gray-700 mb-1">Horário de Abertura</label> | |
| <input type="time" id="opening-time" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| <label for="closing-time" class="block text-sm font-medium text-gray-700 mb-1 mt-3">Horário de Fechamento</label> | |
| <input type="time" id="closing-time" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| <label for="appointment-interval" class="block text-sm font-medium text-gray-700 mb-1 mt-3">Intervalo entre Consultas</label> | |
| <select id="appointment-interval" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option value="15">15 minutos</option> | |
| <option value="30" selected>30 minutos</option> | |
| <option value="45">45 minutos</option> | |
| <option value="60">60 minutos</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-end"> | |
| <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700"> | |
| <i class="fas fa-save mr-2"></i>Salvar Configurações | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script> | |
| // Sidebar toggle functionality | |
| const toggleSidebar = document.getElementById('toggle-sidebar'); | |
| const sidebar = document.getElementById('sidebar'); | |
| const mainContent = document.getElementById('main-content'); | |
| const logoText = document.getElementById('logo-text'); | |
| toggleSidebar.addEventListener('click', () => { | |
| sidebar.classList.toggle('sidebar-collapsed'); | |
| sidebar.classList.toggle('sidebar-expanded'); | |
| mainContent.classList.toggle('content-collapsed'); | |
| mainContent.classList.toggle('content-expanded'); | |
| if (sidebar.classList.contains('sidebar-collapsed')) { | |
| logoText.classList.add('hidden'); | |
| } else { | |
| logoText.classList.remove('hidden'); | |
| } | |
| }); | |
| // Tab switching functionality | |
| const tabs = { | |
| dashboard: { | |
| button: document.getElementById('dashboard-tab'), | |
| content: document.getElementById('dashboard-content') | |
| }, | |
| appointments: { | |
| button: document.getElementById('appointments-tab'), | |
| content: document.getElementById('appointments-content') | |
| }, | |
| clients: { | |
| button: document.getElementById('clients-tab'), | |
| content: document.getElementById('clients-content') | |
| }, | |
| reports: { | |
| button: document.getElementById('reports-tab'), | |
| content: document.getElementById('reports-content') | |
| }, | |
| settings: { | |
| button: document.getElementById('settings-tab'), | |
| content: document.getElementById('settings-content') | |
| } | |
| }; | |
| function switchTab(activeTab) { | |
| // Remove active class from all tabs | |
| Object.values(tabs).forEach(tab => { | |
| tab.button.classList.remove('active-tab'); | |
| tab.content.classList.add('hidden'); | |
| }); | |
| // Add active class to selected tab | |
| tabs[activeTab].button.classList.add('active-tab'); | |
| tabs[activeTab].content.classList.remove('hidden'); | |
| tabs[activeTab].content.classList.add('fade-in'); | |
| } | |
| // Add event listeners to tab buttons | |
| Object.keys(tabs).forEach(tabName => { | |
| tabs[tabName].button.addEventListener('click', () => switchTab(tabName)); | |
| }); | |
| // Initialize with dashboard tab active | |
| switchTab('dashboard'); | |
| // Form submissions | |
| document.getElementById('appointment-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| alert('Atendimento cadastrado com sucesso!'); | |
| this.reset(); | |
| switchTab('dashboard'); | |
| // In a real app, you would add the appointment to the table here | |
| }); | |
| document.getElementById('client-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| alert('Cliente cadastrado com sucesso!'); | |
| this.reset(); | |
| switchTab('dashboard'); | |
| // In a real app, you would add the client to the select options here | |
| }); | |
| // Initialize charts | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Procedures chart | |
| const procedureCtx = document.getElementById('procedureChart').getContext('2d'); | |
| const procedureChart = new Chart(procedureCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Unha Encravada', 'Calosidades', 'Micose', 'Pedicure', 'Ortese'], | |
| datasets: [{ | |
| label: 'Atendimentos', | |
| data: [12, 8, 5, 15, 3], | |
| backgroundColor: [ | |
| 'rgba(79, 70, 229, 0.7)', | |
| 'rgba(16, 185, 129, 0.7)', | |
| 'rgba(245, 158, 11, 0.7)', | |
| 'rgba(99, 102, 241, 0.7)', | |
| 'rgba(217, 70, 239, 0.7)' | |
| ], | |
| borderColor: [ | |
| 'rgba(79, 70, 229, 1)', | |
| 'rgba(16, 185, 129, 1)', | |
| 'rgba(245, 158, 11, 1)', | |
| 'rgba(99, 102, 241, 1)', | |
| 'rgba(217, 70, 239, 1)' | |
| ], | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true | |
| } | |
| } | |
| } | |
| }); | |
| // Monthly chart | |
| const monthlyCtx = document.getElementById('monthlyChart').getContext('2d'); | |
| const monthlyChart = new Chart(monthlyCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'], | |
| datasets: [{ | |
| label: 'Atendimentos', | |
| data: [25, 32, 28, 35, 20, 30, 38, 42, 36, 45, 40, 48], | |
| fill: false, | |
| backgroundColor: 'rgba(79, 70, 229, 0.7)', | |
| borderColor: 'rgba(79, 70, 229, 1)', | |
| tension: 0.1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true | |
| } | |
| } | |
| } | |
| }); | |
| }); | |
| </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=guiWWWW/spacetest" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |