gallabs commited on
Commit
130fcff
·
verified ·
1 Parent(s): e14283a

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +549 -19
  3. prompts.txt +2 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Dashboard Redecell
3
- emoji: 🚀
4
- colorFrom: yellow
5
- colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: dashboard-redecell
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,549 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>MobileStore Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css">
10
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
11
+ <script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
13
+ <style>
14
+ .sidebar {
15
+ transition: all 0.3s;
16
+ }
17
+ .sidebar.collapsed {
18
+ width: 70px;
19
+ }
20
+ .sidebar.collapsed .sidebar-text {
21
+ display: none;
22
+ }
23
+ .sidebar.collapsed .logo-text {
24
+ display: none;
25
+ }
26
+ .content {
27
+ transition: all 0.3s;
28
+ width: calc(100% - 16rem); /* Ajuste para ocupar o espaço restante */
29
+ }
30
+ .sidebar.collapsed + .content {
31
+ width: calc(100% - 70px); /* Ajuste quando o sidebar estiver recolhido */
32
+ margin-left: 70px;
33
+ }
34
+ .notification-dropdown {
35
+ max-height: 400px;
36
+ overflow-y: auto;
37
+ }
38
+ .chart-container {
39
+ height: 300px;
40
+ }
41
+ body {
42
+ overflow-x: hidden; /* Evita barra de rolagem horizontal */
43
+ }
44
+ </style>
45
+ </head>
46
+ <body class="bg-gray-900 text-gray-200">
47
+ <div class="flex h-screen">
48
+ <!-- Sidebar -->
49
+ <div class="sidebar bg-gray-800 text-white w-64 flex flex-col fixed h-full">
50
+ <div class="p-4 flex items-center space-x-2 border-b border-gray-700">
51
+ <i class="fas fa-mobile-alt text-blue-400 text-2xl"></i>
52
+ <span class="logo-text text-xl font-bold">MobileStore</span>
53
+ </div>
54
+ <div class="p-4 flex justify-between items-center border-b border-gray-700">
55
+ <div class="flex items-center space-x-2">
56
+ <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
57
+ <span class="text-lg font-semibold">AD</span>
58
+ </div>
59
+ <div>
60
+ <div class="sidebar-text font-medium">Admin User</div>
61
+ <div class="sidebar-text text-xs text-gray-400">Admin</div>
62
+ </div>
63
+ </div>
64
+ <button id="toggleSidebar" class="text-gray-400 hover:text-white">
65
+ <i class="fas fa-bars"></i>
66
+ </button>
67
+ </div>
68
+ <nav class="flex-1 overflow-y-auto p-4 space-y-2">
69
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-blue-400">
70
+ <i class="fas fa-tachometer-alt"></i>
71
+ <span class="sidebar-text">Dashboard</span>
72
+ </a>
73
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300">
74
+ <i class="fas fa-box"></i>
75
+ <span class="sidebar-text">Produtos</span>
76
+ </a>
77
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300">
78
+ <i class="fas fa-shopping-cart"></i>
79
+ <span class="sidebar-text">Vendas</span>
80
+ </a>
81
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300">
82
+ <i class="fas fa-users"></i>
83
+ <span class="sidebar-text">Clientes</span>
84
+ </a>
85
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300">
86
+ <i class="fas fa-chart-line"></i>
87
+ <span class="sidebar-text">Relatórios</span>
88
+ </a>
89
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300">
90
+ <i class="fas fa-cog"></i>
91
+ <span class="sidebar-text">Configurações</span>
92
+ </a>
93
+ </nav>
94
+ <div class="p-4 border-t border-gray-700">
95
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 text-gray-300">
96
+ <i class="fas fa-sign-out-alt"></i>
97
+ <span class="sidebar-text">Sair</span>
98
+ </a>
99
+ </div>
100
+ </div>
101
+
102
+ <!-- Main Content -->
103
+ <div class="content flex-1 flex flex-col overflow-hidden ml-64">
104
+ <!-- Top Navbar -->
105
+ <header class="bg-gray-800 border-b border-gray-700 p-4 flex items-center justify-between">
106
+ <div class="flex items-center space-x-4">
107
+ <h1 class="text-xl font-semibold">Dashboard</h1>
108
+ </div>
109
+ <div class="flex items-center space-x-6">
110
+ <div class="relative">
111
+ <button id="themeToggle" class="text-gray-300 hover:text-white">
112
+ <i class="fas fa-moon"></i>
113
+ </button>
114
+ </div>
115
+ <div class="relative">
116
+ <button id="notificationButton" class="text-gray-300 hover:text-white relative">
117
+ <i class="fas fa-bell"></i>
118
+ <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>
119
+ </button>
120
+ <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">
121
+ <div class="p-3 border-b border-gray-700 flex justify-between items-center">
122
+ <h3 class="font-medium">Notificações</h3>
123
+ <span class="text-xs text-blue-400">Marcar todas como lidas</span>
124
+ </div>
125
+ <div class="divide-y divide-gray-700">
126
+ <a href="#" class="flex items-start p-3 hover:bg-gray-700">
127
+ <div class="bg-blue-500 rounded-full p-2 mr-3">
128
+ <i class="fas fa-shopping-cart text-white text-sm"></i>
129
+ </div>
130
+ <div>
131
+ <p class="text-sm font-medium">Nova venda realizada</p>
132
+ <p class="text-xs text-gray-400">iPhone 13 vendido por R$ 4.999</p>
133
+ <p class="text-xs text-gray-500 mt-1">2 minutos atrás</p>
134
+ </div>
135
+ </a>
136
+ <a href="#" class="flex items-start p-3 hover:bg-gray-700">
137
+ <div class="bg-green-500 rounded-full p-2 mr-3">
138
+ <i class="fas fa-box text-white text-sm"></i>
139
+ </div>
140
+ <div>
141
+ <p class="text-sm font-medium">Novo produto cadastrado</p>
142
+ <p class="text-xs text-gray-400">Galaxy S23 adicionado ao estoque</p>
143
+ <p class="text-xs text-gray-500 mt-1">1 hora atrás</p>
144
+ </div>
145
+ </a>
146
+ <a href="#" class="flex items-start p-3 hover:bg-gray-700">
147
+ <div class="bg-yellow-500 rounded-full p-2 mr-3">
148
+ <i class="fas fa-exclamation-triangle text-white text-sm"></i>
149
+ </div>
150
+ <div>
151
+ <p class="text-sm font-medium">Estoque baixo</p>
152
+ <p class="text-xs text-gray-400">AirPods Pro com apenas 3 unidades</p>
153
+ <p class="text-xs text-gray-500 mt-1">3 horas atrás</p>
154
+ </div>
155
+ </a>
156
+ <a href="#" class="flex items-start p-3 hover:bg-gray-700">
157
+ <div class="bg-purple-500 rounded-full p-2 mr-3">
158
+ <i class="fas fa-user-plus text-white text-sm"></i>
159
+ </div>
160
+ <div>
161
+ <p class="text-sm font-medium">Novo cliente cadastrado</p>
162
+ <p class="text-xs text-gray-400">João Silva criou uma conta</p>
163
+ <p class="text-xs text-gray-500 mt-1">Ontem</p>
164
+ </div>
165
+ </a>
166
+ </div>
167
+ <div class="p-3 text-center border-t border-gray-700">
168
+ <a href="#" class="text-sm text-blue-400">Ver todas as notificações</a>
169
+ </div>
170
+ </div>
171
+ </div>
172
+ <div class="relative">
173
+ <button id="userMenuButton" class="flex items-center space-x-2">
174
+ <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
175
+ <span class="text-sm font-semibold">AD</span>
176
+ </div>
177
+ <span class="text-sm">Admin</span>
178
+ <i class="fas fa-chevron-down text-xs"></i>
179
+ </button>
180
+ <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">
181
+ <div class="py-1">
182
+ <a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Perfil</a>
183
+ <a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Configurações</a>
184
+ <div class="border-t border-gray-700"></div>
185
+ <a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Login</a>
186
+ <a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Registrar</a>
187
+ <div class="border-t border-gray-700"></div>
188
+ <a href="#" class="block px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">Sair</a>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </header>
194
+
195
+ <!-- Main Content Area -->
196
+ <main class="flex-1 overflow-y-auto p-6 bg-gray-900">
197
+ <!-- Cards -->
198
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
199
+ <div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-blue-500">
200
+ <div class="flex justify-between items-center">
201
+ <div>
202
+ <p class="text-gray-400 text-sm">Vendas Hoje</p>
203
+ <h3 class="text-2xl font-bold text-white">R$ 24,580</h3>
204
+ <p class="text-green-400 text-sm mt-1">
205
+ <i class="fas fa-arrow-up"></i> 12% em relação a ontem
206
+ </p>
207
+ </div>
208
+ <div class="bg-blue-500 p-3 rounded-full">
209
+ <i class="fas fa-shopping-cart text-white text-xl"></i>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ <div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-green-500">
214
+ <div class="flex justify-between items-center">
215
+ <div>
216
+ <p class="text-gray-400 text-sm">Produtos em Estoque</p>
217
+ <h3 class="text-2xl font-bold text-white">1,248</h3>
218
+ <p class="text-red-400 text-sm mt-1">
219
+ <i class="fas fa-arrow-down"></i> 5% em relação ao mês passado
220
+ </p>
221
+ </div>
222
+ <div class="bg-green-500 p-3 rounded-full">
223
+ <i class="fas fa-box text-white text-xl"></i>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ <div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-yellow-500">
228
+ <div class="flex justify-between items-center">
229
+ <div>
230
+ <p class="text-gray-400 text-sm">Clientes Novos</p>
231
+ <h3 class="text-2xl font-bold text-white">48</h3>
232
+ <p class="text-green-400 text-sm mt-1">
233
+ <i class="fas fa-arrow-up"></i> 20% em relação a semana passada
234
+ </p>
235
+ </div>
236
+ <div class="bg-yellow-500 p-3 rounded-full">
237
+ <i class="fas fa-users text-white text-xl"></i>
238
+ </div>
239
+ </div>
240
+ </div>
241
+ <div class="bg-gray-800 rounded-lg shadow p-6 border-l-4 border-purple-500">
242
+ <div class="flex justify-between items-center">
243
+ <div>
244
+ <p class="text-gray-400 text-sm">Lucro Líquido</p>
245
+ <h3 class="text-2xl font-bold text-white">R$ 8,750</h3>
246
+ <p class="text-green-400 text-sm mt-1">
247
+ <i class="fas fa-arrow-up"></i> 8% em relação ao mês passado
248
+ </p>
249
+ </div>
250
+ <div class="bg-purple-500 p-3 rounded-full">
251
+ <i class="fas fa-dollar-sign text-white text-xl"></i>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </div>
256
+
257
+ <!-- Charts -->
258
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
259
+ <div class="bg-gray-800 rounded-lg shadow p-6 lg:col-span-2">
260
+ <div class="flex justify-between items-center mb-4">
261
+ <h3 class="text-lg font-semibold">Vendas Mensais</h3>
262
+ <div class="flex space-x-2">
263
+ <button class="px-3 py-1 text-xs bg-gray-700 rounded hover:bg-gray-600">Mês</button>
264
+ <button class="px-3 py-1 text-xs bg-gray-700 rounded hover:bg-gray-600">Ano</button>
265
+ </div>
266
+ </div>
267
+ <div class="chart-container">
268
+ <canvas id="salesChart"></canvas>
269
+ </div>
270
+ </div>
271
+ <div class="bg-gray-800 rounded-lg shadow p-6">
272
+ <h3 class="text-lg font-semibold mb-4">Dispositivos Mais Vendidos</h3>
273
+ <div class="chart-container">
274
+ <canvas id="devicesChart"></canvas>
275
+ </div>
276
+ </div>
277
+ </div>
278
+
279
+ <!-- Products Table -->
280
+ <div class="bg-gray-800 rounded-lg shadow overflow-hidden">
281
+ <div class="p-4 border-b border-gray-700 flex justify-between items-center">
282
+ <h3 class="text-lg font-semibold">Últimos Produtos Adicionados</h3>
283
+ <button class="px-3 py-1 text-sm bg-blue-600 rounded hover:bg-blue-700">Adicionar Produto</button>
284
+ </div>
285
+ <div class="p-4">
286
+ <table id="productsTable" class="w-full">
287
+ <thead>
288
+ <tr class="text-left text-gray-400 border-b border-gray-700">
289
+ <th class="pb-2">Produto</th>
290
+ <th class="pb-2">Categoria</th>
291
+ <th class="pb-2">Estoque</th>
292
+ <th class="pb-2">Preço</th>
293
+ <th class="pb-2">Status</th>
294
+ <th class="pb-2">Ações</th>
295
+ </tr>
296
+ </thead>
297
+ <tbody class="divide-y divide-gray-700">
298
+ <tr>
299
+ <td class="py-3 flex items-center">
300
+ <div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center">
301
+ <i class="fas fa-mobile-alt text-blue-400"></i>
302
+ </div>
303
+ <div>
304
+ <p class="font-medium">iPhone 15 Pro Max</p>
305
+ <p class="text-xs text-gray-400">Apple</p>
306
+ </div>
307
+ </td>
308
+ <td>Smartphone</td>
309
+ <td>24</td>
310
+ <td>R$ 9.999</td>
311
+ <td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td>
312
+ <td>
313
+ <button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button>
314
+ <button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button>
315
+ </td>
316
+ </tr>
317
+ <tr>
318
+ <td class="py-3 flex items-center">
319
+ <div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center">
320
+ <i class="fas fa-mobile-alt text-blue-400"></i>
321
+ </div>
322
+ <div>
323
+ <p class="font-medium">Galaxy S23 Ultra</p>
324
+ <p class="text-xs text-gray-400">Samsung</p>
325
+ </div>
326
+ </td>
327
+ <td>Smartphone</td>
328
+ <td>18</td>
329
+ <td>R$ 7.499</td>
330
+ <td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td>
331
+ <td>
332
+ <button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button>
333
+ <button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button>
334
+ </td>
335
+ </tr>
336
+ <tr>
337
+ <td class="py-3 flex items-center">
338
+ <div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center">
339
+ <i class="fas fa-headphones text-blue-400"></i>
340
+ </div>
341
+ <div>
342
+ <p class="font-medium">AirPods Pro 2</p>
343
+ <p class="text-xs text-gray-400">Apple</p>
344
+ </div>
345
+ </td>
346
+ <td>Acessório</td>
347
+ <td>3</td>
348
+ <td>R$ 1.999</td>
349
+ <td><span class="px-2 py-1 bg-yellow-900 text-yellow-400 rounded-full text-xs">Estoque Baixo</span></td>
350
+ <td>
351
+ <button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button>
352
+ <button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button>
353
+ </td>
354
+ </tr>
355
+ <tr>
356
+ <td class="py-3 flex items-center">
357
+ <div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center">
358
+ <i class="fas fa-tablet-alt text-blue-400"></i>
359
+ </div>
360
+ <div>
361
+ <p class="font-medium">iPad Pro 12.9"</p>
362
+ <p class="text-xs text-gray-400">Apple</p>
363
+ </div>
364
+ </td>
365
+ <td>Tablet</td>
366
+ <td>7</td>
367
+ <td>R$ 8.499</td>
368
+ <td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td>
369
+ <td>
370
+ <button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button>
371
+ <button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button>
372
+ </td>
373
+ </tr>
374
+ <tr>
375
+ <td class="py-3 flex items-center">
376
+ <div class="w-10 h-10 bg-gray-700 rounded mr-3 flex items-center justify-center">
377
+ <i class="fas fa-mobile-alt text-blue-400"></i>
378
+ </div>
379
+ <div>
380
+ <p class="font-medium">Xiaomi 13 Pro</p>
381
+ <p class="text-xs text-gray-400">Xiaomi</p>
382
+ </div>
383
+ </td>
384
+ <td>Smartphone</td>
385
+ <td>12</td>
386
+ <td>R$ 5.999</td>
387
+ <td><span class="px-2 py-1 bg-green-900 text-green-400 rounded-full text-xs">Disponível</span></td>
388
+ <td>
389
+ <button class="text-blue-400 hover:text-blue-300 mr-2"><i class="fas fa-edit"></i></button>
390
+ <button class="text-red-400 hover:text-red-300"><i class="fas fa-trash"></i></button>
391
+ </td>
392
+ </tr>
393
+ </tbody>
394
+ </table>
395
+ </div>
396
+ </div>
397
+ </main>
398
+ </div>
399
+ </div>
400
+
401
+ <script>
402
+ // Toggle sidebar
403
+ document.getElementById('toggleSidebar').addEventListener('click', function() {
404
+ document.querySelector('.sidebar').classList.toggle('collapsed');
405
+ document.querySelector('.content').classList.toggle('ml-64');
406
+ document.querySelector('.content').classList.toggle('ml-[70px]');
407
+ });
408
+
409
+ // Toggle notification dropdown
410
+ document.getElementById('notificationButton').addEventListener('click', function(e) {
411
+ e.stopPropagation();
412
+ document.getElementById('notificationDropdown').classList.toggle('hidden');
413
+ document.getElementById('userMenuDropdown').classList.add('hidden');
414
+ });
415
+
416
+ // Toggle user menu dropdown
417
+ document.getElementById('userMenuButton').addEventListener('click', function(e) {
418
+ e.stopPropagation();
419
+ document.getElementById('userMenuDropdown').classList.toggle('hidden');
420
+ document.getElementById('notificationDropdown').classList.add('hidden');
421
+ });
422
+
423
+ // Close dropdowns when clicking outside
424
+ document.addEventListener('click', function() {
425
+ document.getElementById('notificationDropdown').classList.add('hidden');
426
+ document.getElementById('userMenuDropdown').classList.add('hidden');
427
+ });
428
+
429
+ // Theme toggle (just UI for this example)
430
+ document.getElementById('themeToggle').addEventListener('click', function() {
431
+ const icon = this.querySelector('i');
432
+ if (icon.classList.contains('fa-moon')) {
433
+ icon.classList.remove('fa-moon');
434
+ icon.classList.add('fa-sun');
435
+ } else {
436
+ icon.classList.remove('fa-sun');
437
+ icon.classList.add('fa-moon');
438
+ }
439
+ });
440
+
441
+ // Initialize DataTable
442
+ $(document).ready(function() {
443
+ $('#productsTable').DataTable({
444
+ "paging": true,
445
+ "searching": true,
446
+ "ordering": true,
447
+ "info": true,
448
+ "language": {
449
+ "lengthMenu": "Mostrar _MENU_ registros por página",
450
+ "zeroRecords": "Nenhum registro encontrado",
451
+ "info": "Mostrando página _PAGE_ de _PAGES_",
452
+ "infoEmpty": "Nenhum registro disponível",
453
+ "infoFiltered": "(filtrado de _MAX_ registros totais)",
454
+ "search": "Pesquisar:",
455
+ "paginate": {
456
+ "first": "Primeiro",
457
+ "last": "Último",
458
+ "next": "Próximo",
459
+ "previous": "Anterior"
460
+ },
461
+ }
462
+ });
463
+ });
464
+
465
+ // Charts
466
+ // Sales Chart
467
+ const salesCtx = document.getElementById('salesChart').getContext('2d');
468
+ const salesChart = new Chart(salesCtx, {
469
+ type: 'line',
470
+ data: {
471
+ labels: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
472
+ datasets: [{
473
+ label: 'Vendas 2023',
474
+ data: [12500, 19000, 15000, 18000, 21000, 25000, 22000, 28000, 26000, 30000, 32000, 35000],
475
+ borderColor: 'rgba(59, 130, 246, 1)',
476
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
477
+ tension: 0.4,
478
+ fill: true
479
+ }]
480
+ },
481
+ options: {
482
+ responsive: true,
483
+ maintainAspectRatio: false,
484
+ plugins: {
485
+ legend: {
486
+ display: false
487
+ }
488
+ },
489
+ scales: {
490
+ y: {
491
+ beginAtZero: true,
492
+ grid: {
493
+ color: 'rgba(255, 255, 255, 0.1)'
494
+ },
495
+ ticks: {
496
+ color: 'rgba(255, 255, 255, 0.7)'
497
+ }
498
+ },
499
+ x: {
500
+ grid: {
501
+ color: 'rgba(255, 255, 255, 0.1)'
502
+ },
503
+ ticks: {
504
+ color: 'rgba(255, 255, 255, 0.7)'
505
+ }
506
+ }
507
+ }
508
+ }
509
+ });
510
+
511
+ // Devices Chart
512
+ const devicesCtx = document.getElementById('devicesChart').getContext('2d');
513
+ const devicesChart = new Chart(devicesCtx, {
514
+ type: 'doughnut',
515
+ data: {
516
+ labels: ['iPhone', 'Samsung', 'Xiaomi', 'Outros'],
517
+ datasets: [{
518
+ data: [45, 30, 15, 10],
519
+ backgroundColor: [
520
+ 'rgba(59, 130, 246, 0.8)',
521
+ 'rgba(16, 185, 129, 0.8)',
522
+ 'rgba(245, 158, 11, 0.8)',
523
+ 'rgba(139, 92, 246, 0.8)'
524
+ ],
525
+ borderColor: [
526
+ 'rgba(59, 130, 246, 1)',
527
+ 'rgba(16, 185, 129, 1)',
528
+ 'rgba(245, 158, 11, 1)',
529
+ 'rgba(139, 92, 246, 1)'
530
+ ],
531
+ borderWidth: 1
532
+ }]
533
+ },
534
+ options: {
535
+ responsive: true,
536
+ maintainAspectRatio: false,
537
+ plugins: {
538
+ legend: {
539
+ position: 'bottom',
540
+ labels: {
541
+ color: 'rgba(255, 255, 255, 0.7)'
542
+ }
543
+ }
544
+ }
545
+ }
546
+ });
547
+ </script>
548
+ <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>
549
+ </html>
prompts.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ crie 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!
2
+ tem um espaço vazio à direita do menu principal. Corrija, por favor!