Spaces:
Running
Running
Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+549-19
- prompts.txtAdded+2
12345678910---title: Dashboard Redecellemoji: 🚀colorFrom: yellowcolorTo: pinksdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: dashboard-redecellemoji: 🐳colorFrom: redcolorTo: redsdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549<!DOCTYPE html><html lang="pt-BR"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>MobileStore Dashboard</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"><link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css"><script src="https://code.jquery.com/jquery-3.6.0.min.js"></script><script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script><script src="https://cdn.jsdelivr.net/npm/chart.js"></script><style>.sidebar {transition: all 0.3s;}.sidebar.collapsed {width: 70px;}.sidebar.collapsed .sidebar-text {display: none;}.sidebar.collapsed .logo-text {display: none;}.content {transition: all 0.3s;width: calc(100% - 16rem); /* Ajuste para ocupar o espaço restante */}.sidebar.collapsed + .content {width: calc(100% - 70px); /* Ajuste quando o sidebar estiver recolhido */margin-left: 70px;}.notification-dropdown {max-height: 400px;overflow-y: auto;}.chart-container {height: 300px;}body {overflow-x: hidden; /* Evita barra de rolagem horizontal */}</style></head><body class="bg-gray-900 text-gray-200"><div class="flex h-screen"><!-- Sidebar --><div class="sidebar bg-gray-800 text-white w-64 flex flex-col fixed h-full"><div class="p-4 flex items-center space-x-2 border-b border-gray-700"><i class="fas fa-mobile-alt text-blue-400 text-2xl"></i><span class="logo-text text-xl font-bold">MobileStore</span></div><div class="p-4 flex justify-between items-center border-b border-gray-700"><div class="flex items-center space-x-2"><div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center"><span class="text-lg font-semibold">AD</span></div><div><div class="sidebar-text font-medium">Admin User</div><div class="sidebar-text text-xs text-gray-400">Admin</div></div></div><button id="toggleSidebar" class="text-gray-400 hover:text-white"><i class="fas fa-bars"></i></button></div><nav class="flex-1 overflow-y-auto p-4 space-y-2"><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-blue-400"><i class="fas fa-tachometer-alt"></i><span class="sidebar-text">Dashboard</span></a><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300"><i class="fas fa-box"></i><span class="sidebar-text">Produtos</span></a><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300"><i class="fas fa-shopping-cart"></i><span class="sidebar-text">Vendas</span></a><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300"><i class="fas fa-users"></i><span class="sidebar-text">Clientes</span></a><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300"><i class="fas fa-chart-line"></i><span class="sidebar-text">Relatórios</span></a><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300"><i class="fas fa-cog"></i><span class="sidebar-text">Configurações</span></a></nav><div class="p-4 border-t border-gray-700"><a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300"><i class="fas fa-sign-out-alt"></i><span class="sidebar-text">Sair</span></a></div></div><!-- Main Content --><div class="content flex-1 flex flex-col overflow-hidden ml-64"><!-- Top Navbar --><header class="bg-gray-800 border-b border-gray-700 p-4 flex items-center justify-between"><div class="flex items-center space-x-4"><h1 class="text-xl font-semibold">Dashboard</h1></div><div class="flex items-center space-x-6"><div class="relative"><button id="themeToggle" class="text-gray-300 hover:text-white"><i class="fas fa-moon"></i></button></div><div class="relative"><button id="notificationButton" class="text-gray-300 hover:text-white relative"><i class="fas fa-bell"></i><span class="absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">6</span></button><div id="notificationDropdown" class="hidden absolute right-0 mt-2 w-80 bg-gray-800 rounded-md shadow-lg z-50 border border-gray-700 notification-dropdown"><div class="p-3 border-b border-gray-700 flex justify-between items-center"><h3 class="font-medium">Notificações</h3><span class="text-xs text-blue-400">Marcar todas como lidas</span></div><div class="divide-y divide-gray-700"><a href="#" class="flex items-start p-3 hover:bg-gray-700"><div class="bg-blue-500 rounded-full p-2 mr-3"><i class="fas fa-shopping-cart text-white text-sm"></i></div><div><p class="text-sm font-medium">Nova venda realizada</p><p class="text-xs text-gray-400">iPhone 13 vendido por R$ 4.999</p><p class="text-xs text-gray-500 mt-1">2 minutos atrás</p></div></a><a href="#" class="flex items-start p-3 hover:bg-gray-700"><div class="bg-green-500 rounded-full p-2 mr-3"><i class="fas fa-box text-white text-sm"></i></div><div><p class="text-sm font-medium">Novo produto cadastrado</p><p class="text-xs text-gray-400">Galaxy S23 adicionado ao estoque</p><p class="text-xs text-gray-500 mt-1">1 hora atrás</p></div></a><a href="#" class="flex items-start p-3 hover:bg-gray-700"><div class="bg-yellow-500 rounded-full p-2 mr-3"><i class="fas fa-exclamation-triangle text-white text-sm"></i></div><div><p class="text-sm font-medium">Estoque baixo</p><p class="text-xs text-gray-400">AirPods Pro com apenas 3 unidades</p><p class="text-xs text-gray-500 mt-1">3 horas atrás</p></div></a><a href="#" class="flex items-start p-3 hover:bg-gray-700"><div class="bg-purple-500 rounded-full p-2 mr-3"><i class="fas fa-user-plus text-white text-sm"></i></div><div><p class="text-sm font-medium">Novo cliente cadastrado</p><p class="text-xs text-gray-400">João Silva criou uma conta</p><p class="text-xs text-gray-500 mt-1">Ontem</p></div></a></div><div class="p-3 text-center border-t border-gray-700"><a href="#" class="text-sm text-blue-400">Ver todas as notificações</a></div></div></div><div class="relative"><button id="userMenuButton" class="flex items-center space-x-2"><div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center"><span class="text-sm font-semibold">AD</span></div><span class="text-sm">Admin</span><i class="fas fa-chevron-down text-xs"></i></button><div id="userMenuDropdown" class="hidden absolute right-0 mt-2 w-48 bg-gray-800 rounded-md shadow-lg z-50 border border-gray-700"><div class="py-1"><a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Perfil</a><a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Configurações</a><div class="border-t border-gray-700"></div><a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Login</a><a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Registrar</a><div class="border-t border-gray-700"></div><a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Sair</a></div></div></div></div></header><!-- Main Content Area --><main class="flex-1 overflow-y-auto p-6 bg-gray-900"><!-- Cards --><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"><div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-blue-500"><div class="flex justify-between items-center"><div><p class="text-gray-400 text-sm">Vendas Hoje</p><h3 class="text-2xl font-bold text-white">R$ 24,580</h3><p class="text-green-400 text-sm mt-1"><i class="fas fa-arrow-up"></i> 12% em relação a ontem</p></div><div class="bg-blue-500 p-3 rounded-full"><i class="fas fa-shopping-cart text-white text-xl"></i></div></div></div><div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-green-500"><div class="flex justify-between items-center"><div><p class="text-gray-400 text-sm">Produtos em Estoque</p><h3 class="text-2xl font-bold text-white">1,248</h3><p class="text-red-400 text-sm mt-1"><i class="fas fa-arrow-down"></i> 5% em relação ao mês passado</p></div><div class="bg-green-500 p-3 rounded-full"><i class="fas fa-box text-white text-xl"></i></div></div></div><div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-yellow-500"><div class="flex justify-between items-center"><div><p class="text-gray-400 text-sm">Clientes Novos</p><h3 class="text-2xl font-bold text-white">48</h3><p class="text-green-400 text-sm mt-1"><i class="fas fa-arrow-up"></i> 20% em relação a semana passada</p></div><div class="bg-yellow-500 p-3 rounded-full"><i class="fas fa-users text-white text-xl"></i></div></div></div><div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-purple-500"><div class="flex justify-between items-center"><div><p class="text-gray-400 text-sm">Lucro Líquido</p><h3 class="text-2xl font-bold text-white">R$ 8,750</h3><p class="text-green-400 text-sm mt-1"><i class="fas fa-arrow-up"></i> 8% em relação ao mês passado</p></div><div class="bg-purple-500 p-3 rounded-full"><i class="fas fa-dollar-sign text-white text-xl"></i></div></div></div></div><!-- Charts --><div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"><div class="bg-gray-800 rounded-lg shadow p-6 lg:col-span-2"><div class="flex justify-between items-center mb-4"><h3 class="text-lg font-semibold">Vendas Mensais</h3><div class="flex space-x-2"><button class="px-3 py-1 text-xs bg-gray-700 rounded hover:bg-gray-600">Mês</button><button class="px-3 py-1 text-xs bg-gray-700 rounded hover:bg-gray-600">Ano</button></div></div><div class="chart-container"><canvas id="salesChart"></canvas></div></div><div class="bg-gray-800 rounded-lg shadow p-6"><h3 class="text-lg font-semibold mb-4">Dispositivos Mais Vendidos</h3><div class="chart-container"><canvas id="devicesChart"></canvas></div></div></div><!-- Products Table --><div class="bg-gray-800 rounded-lg shadow overflow-hidden"><div class="p-4 border-b border-gray-700 flex justify-between items-center"><h3 class="text-lg font-semibold">Últimos Produtos Adicionados</h3><button class="px-3 py-1 text-sm bg-blue-600 rounded hover:bg-blue-700">Adicionar Produto</button></div><div class="p-4"><table id="productsTable" class="w-full"><thead><tr class="text-left text-gray-400 border-b border-gray-700"><th class="pb-2">Produto</th><th class="pb-2">Categoria</th><th class="pb-2">Estoque</th><th class="pb-2">Preço</th><th class="pb-2">Status</th><th class="pb-2">Ações</th></tr></thead><tbody class="divide-y divide-gray-700"><tr><td class="py-3 flex items-center"><div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center"><i class="fas fa-mobile-alt text-blue-400"></i></div><div><p class="font-medium">iPhone 15 Pro Max</p><p class="text-xs text-gray-400">Apple</p></div></td><td>Smartphone</td><td>24</td><td>R$ 9.999</td><td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td><td><button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button><button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button></td></tr><tr><td class="py-3 flex items-center"><div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center"><i class="fas fa-mobile-alt text-blue-400"></i></div><div><p class="font-medium">Galaxy S23 Ultra</p><p class="text-xs text-gray-400">Samsung</p></div></td><td>Smartphone</td><td>18</td><td>R$ 7.499</td><td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td><td><button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button><button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button></td></tr><tr><td class="py-3 flex items-center"><div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center"><i class="fas fa-headphones text-blue-400"></i></div><div><p class="font-medium">AirPods Pro 2</p><p class="text-xs text-gray-400">Apple</p></div></td><td>Acessório</td><td>3</td><td>R$ 1.999</td><td><span class="px-2 py-1 bg-yellow-900 text-yellow-400 rounded-full text-xs">Estoque Baixo</span></td><td><button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button><button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button></td></tr><tr><td class="py-3 flex items-center"><div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center"><i class="fas fa-tablet-alt text-blue-400"></i></div><div><p class="font-medium">iPad Pro 12.9"</p><p class="text-xs text-gray-400">Apple</p></div></td><td>Tablet</td><td>7</td><td>R$ 8.499</td><td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td><td><button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button><button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button></td></tr><tr><td class="py-3 flex items-center"><div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center"><i class="fas fa-mobile-alt text-blue-400"></i></div><div><p class="font-medium">Xiaomi 13 Pro</p><p class="text-xs text-gray-400">Xiaomi</p></div></td><td>Smartphone</td><td>12</td><td>R$ 5.999</td><td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td><td><button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button><button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button></td></tr></tbody></table></div></div></main></div></div><script>// Toggle sidebardocument.getElementById('toggleSidebar').addEventListener('click', function() {document.querySelector('.sidebar').classList.toggle('collapsed');document.querySelector('.content').classList.toggle('ml-64');document.querySelector('.content').classList.toggle('ml-[70px]');});// Toggle notification dropdowndocument.getElementById('notificationButton').addEventListener('click', function(e) {e.stopPropagation();document.getElementById('notificationDropdown').classList.toggle('hidden');document.getElementById('userMenuDropdown').classList.add('hidden');});// Toggle user menu dropdowndocument.getElementById('userMenuButton').addEventListener('click', function(e) {e.stopPropagation();document.getElementById('userMenuDropdown').classList.toggle('hidden');document.getElementById('notificationDropdown').classList.add('hidden');});// Close dropdowns when clicking outsidedocument.addEventListener('click', function() {document.getElementById('notificationDropdown').classList.add('hidden');document.getElementById('userMenuDropdown').classList.add('hidden');});// Theme toggle (just UI for this example)document.getElementById('themeToggle').addEventListener('click', function() {const icon = this.querySelector('i');if (icon.classList.contains('fa-moon')) {icon.classList.remove('fa-moon');icon.classList.add('fa-sun');} else {icon.classList.remove('fa-sun');icon.classList.add('fa-moon');}});// Initialize DataTable$(document).ready(function() {$('#productsTable').DataTable({"paging": true,"searching": true,"ordering": true,"info": true,"language": {"lengthMenu": "Mostrar _MENU_ registros por página","zeroRecords": "Nenhum registro encontrado","info": "Mostrando página _PAGE_ de _PAGES_","infoEmpty": "Nenhum registro disponível","infoFiltered": "(filtrado de _MAX_ registros totais)","search": "Pesquisar:","paginate": {"first": "Primeiro","last": "Último","next": "Próximo","previous": "Anterior"},}});});// Charts// Sales Chartconst salesCtx = document.getElementById('salesChart').getContext('2d');const salesChart = new Chart(salesCtx, {type: 'line',data: {labels: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],datasets: [{label: 'Vendas 2023',data: [12500, 19000, 15000, 18000, 21000, 25000, 22000, 28000, 26000, 30000, 32000, 35000],borderColor: 'rgba(59, 130, 246, 1)',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,grid: {color: 'rgba(255, 255, 255, 0.1)'},ticks: {color: 'rgba(255, 255, 255, 0.7)'}},x: {grid: {color: 'rgba(255, 255, 255, 0.1)'},ticks: {color: 'rgba(255, 255, 255, 0.7)'}}}}});// Devices Chartconst devicesCtx = document.getElementById('devicesChart').getContext('2d');const devicesChart = new Chart(devicesCtx, {type: 'doughnut',data: {labels: ['iPhone', 'Samsung', 'Xiaomi', 'Outros'],datasets: [{data: [45, 30, 15, 10],backgroundColor: ['rgba(59, 130, 246, 0.8)','rgba(16, 185, 129, 0.8)','rgba(245, 158, 11, 0.8)','rgba(139, 92, 246, 0.8)'],borderColor: ['rgba(59, 130, 246, 1)','rgba(16, 185, 129, 1)','rgba(245, 158, 11, 1)','rgba(139, 92, 246, 1)'],borderWidth: 1}]},options: {responsive: true,maintainAspectRatio: false,plugins: {legend: {position: 'bottom',labels: {color: 'rgba(255, 255, 255, 0.7)'}}}}});</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=gallabs/dashboard-redecell" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
12crie um dashboard bem legal, bem moderno, para uma loja de vendas, compras de celulares e seus acessórios. Pode criar dado fakes para valorizar o dashboard. Crie um menu vertical à esquerda e uma navbar no topo. Na Navbar ponha um sino para notificações e um badge com 6 notificações, aproveitando para criar um menudropdown para visualizarmos estas notificações fakes. Aproveite e crie como último dado da navbar um avatar que represente o usuário logado, também com um menu dropdown com as opções: Perfil, Login, Register, etc. No content do dasboard, crie pelo menos 4 cards bem elegantes com dados e ícones, na próxima linha crie um gráfico com 2/3 da tela e mais um com o terço final da tela. Na linha de baixo crie uma lista de preços numa tabela no formato da bibblioteca datatable. Crie este dashboard no tema dark e ponha uma lua indicando quew estamos no modo dark lá na navbar!tem um espaço vazio à direita do menu principal. Corrija, por favor!README.md+7-5
index.html+549-19
prompts.txtAdded+2