Spaces:
Running

SGVco commited on
Commit
b859909
·
verified ·
1 Parent(s): 0725f58

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +427 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Logiroute
3
- emoji: 🦀
4
- colorFrom: purple
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: logiroute
3
+ emoji: 🐳
4
+ colorFrom: red
5
  colorTo: pink
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,427 @@
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>LogiRoute - Gestão de Transportes</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 href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
10
+ <style>
11
+ body {
12
+ font-family: 'Inter', sans-serif;
13
+ background-color: #f8fafc;
14
+ }
15
+ .sidebar {
16
+ transition: all 0.3s ease;
17
+ }
18
+ .map-container {
19
+ height: 500px;
20
+ border-radius: 12px;
21
+ overflow: hidden;
22
+ }
23
+ .kpi-card:hover {
24
+ transform: translateY(-5px);
25
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
26
+ }
27
+ .file-upload {
28
+ border: 2px dashed #cbd5e1;
29
+ transition: all 0.3s ease;
30
+ }
31
+ .file-upload:hover {
32
+ border-color: #6366f1;
33
+ background-color: #f8fafc;
34
+ }
35
+ @media (max-width: 768px) {
36
+ .sidebar {
37
+ transform: translateX(-100%);
38
+ position: absolute;
39
+ z-index: 50;
40
+ }
41
+ .sidebar-open {
42
+ transform: translateX(0);
43
+ }
44
+ }
45
+ </style>
46
+ </head>
47
+ <body class="bg-gray-50">
48
+ <div class="flex h-screen overflow-hidden">
49
+ <!-- Sidebar -->
50
+ <div class="sidebar bg-indigo-700 text-white w-64 flex-shrink-0 flex flex-col">
51
+ <div class="p-4 flex items-center justify-between border-b border-indigo-600">
52
+ <div class="flex items-center space-x-2">
53
+ <i class="fas fa-truck-fast text-2xl text-indigo-200"></i>
54
+ <span class="text-xl font-bold">LogiRoute</span>
55
+ </div>
56
+ <button id="sidebar-toggle" class="md:hidden text-white">
57
+ <i class="fas fa-times"></i>
58
+ </button>
59
+ </div>
60
+ <nav class="flex-1 overflow-y-auto p-4 space-y-2">
61
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-800">
62
+ <i class="fas fa-chart-line"></i>
63
+ <span>Dashboard</span>
64
+ </a>
65
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800">
66
+ <i class="fas fa-route"></i>
67
+ <span>Roteirização</span>
68
+ </a>
69
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800">
70
+ <i class="fas fa-file-import"></i>
71
+ <span>Importar Dados</span>
72
+ </a>
73
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800">
74
+ <i class="fas fa-clipboard-list"></i>
75
+ <span>Ordens de Frete</span>
76
+ </a>
77
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800">
78
+ <i class="fas fa-truck"></i>
79
+ <span>Transportadoras</span>
80
+ </a>
81
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800">
82
+ <i class="fas fa-file-export"></i>
83
+ <span>Relatórios</span>
84
+ </a>
85
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-800">
86
+ <i class="fas fa-cog"></i>
87
+ <span>Configurações</span>
88
+ </a>
89
+ </nav>
90
+ <div class="p-4 border-t border-indigo-600">
91
+ <div class="flex items-center space-x-3">
92
+ <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center">
93
+ <i class="fas fa-user"></i>
94
+ </div>
95
+ <div>
96
+ <div class="font-medium">Admin User</div>
97
+ <div class="text-xs text-indigo-200">admin@logiroute.com</div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+
103
+ <!-- Main Content -->
104
+ <div class="flex-1 flex flex-col overflow-hidden">
105
+ <!-- Top Navigation -->
106
+ <header class="bg-white shadow-sm z-10">
107
+ <div class="flex items-center justify-between px-6 py-4">
108
+ <div class="flex items-center space-x-4">
109
+ <button id="mobile-sidebar-toggle" class="md:hidden text-gray-600">
110
+ <i class="fas fa-bars text-xl"></i>
111
+ </button>
112
+ <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
113
+ </div>
114
+ <div class="flex items-center space-x-4">
115
+ <div class="relative">
116
+ <button class="text-gray-600 hover:text-gray-800">
117
+ <i class="fas fa-bell text-xl"></i>
118
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
119
+ </button>
120
+ </div>
121
+ <div class="relative">
122
+ <button class="text-gray-600 hover:text-gray-800">
123
+ <i class="fas fa-envelope text-xl"></i>
124
+ <span class="absolute top-0 right-0 w-2 h-2 bg-blue-500 rounded-full"></span>
125
+ </button>
126
+ </div>
127
+ <div class="w-px h-8 bg-gray-200"></div>
128
+ <button class="flex items-center space-x-2 text-gray-600 hover:text-gray-800">
129
+ <span class="hidden md:inline">Admin User</span>
130
+ <i class="fas fa-chevron-down"></i>
131
+ </button>
132
+ </div>
133
+ </div>
134
+ </header>
135
+
136
+ <!-- Main Content Area -->
137
+ <main class="flex-1 overflow-y-auto p-6 bg-gray-50">
138
+ <!-- KPI Cards -->
139
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
140
+ <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300">
141
+ <div class="flex items-center justify-between">
142
+ <div>
143
+ <p class="text-sm font-medium text-gray-500">Ordens de Frete</p>
144
+ <h3 class="text-2xl font-bold mt-1">1,248</h3>
145
+ <p class="text-sm text-green-500 mt-2 flex items-center">
146
+ <i class="fas fa-arrow-up mr-1"></i> 12% vs último mês
147
+ </p>
148
+ </div>
149
+ <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center">
150
+ <i class="fas fa-file-invoice text-indigo-600 text-xl"></i>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300">
155
+ <div class="flex items-center justify-between">
156
+ <div>
157
+ <p class="text-sm font-medium text-gray-500">Entregas Concluídas</p>
158
+ <h3 class="text-2xl font-bold mt-1">1,092</h3>
159
+ <p class="text-sm text-green-500 mt-2 flex items-center">
160
+ <i class="fas fa-arrow-up mr-1"></i> 8% vs último mês
161
+ </p>
162
+ </div>
163
+ <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center">
164
+ <i class="fas fa-check-circle text-green-600 text-xl"></i>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300">
169
+ <div class="flex items-center justify-between">
170
+ <div>
171
+ <p class="text-sm font-medium text-gray-500">Entregas Atrasadas</p>
172
+ <h3 class="text-2xl font-bold mt-1">48</h3>
173
+ <p class="text-sm text-red-500 mt-2 flex items-center">
174
+ <i class="fas fa-arrow-down mr-1"></i> 3% vs último mês
175
+ </p>
176
+ </div>
177
+ <div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center">
178
+ <i class="fas fa-clock text-red-600 text-xl"></i>
179
+ </div>
180
+ </div>
181
+ </div>
182
+ <div class="kpi-card bg-white rounded-xl shadow-sm p-6 transition-all duration-300">
183
+ <div class="flex items-center justify-between">
184
+ <div>
185
+ <p class="text-sm font-medium text-gray-500">Custo Médio por Entrega</p>
186
+ <h3 class="text-2xl font-bold mt-1">R$ 145</h3>
187
+ <p class="text-sm text-green-500 mt-2 flex items-center">
188
+ <i class="fas fa-arrow-down mr-1"></i> 5% vs último mês
189
+ </p>
190
+ </div>
191
+ <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center">
192
+ <i class="fas fa-dollar-sign text-blue-600 text-xl"></i>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </div>
197
+
198
+ <!-- Main Content Grid -->
199
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
200
+ <!-- Map and Routing -->
201
+ <div class="lg:col-span-2 bg-white rounded-xl shadow-sm p-6">
202
+ <div class="flex items-center justify-between mb-4">
203
+ <h2 class="text-lg font-semibold text-gray-800">Roteirização</h2>
204
+ <div class="flex space-x-2">
205
+ <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm flex items-center">
206
+ <i class="fas fa-route mr-2"></i> Otimizar Rota
207
+ </button>
208
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm flex items-center">
209
+ <i class="fas fa-layer-group mr-2"></i> Camadas
210
+ </button>
211
+ </div>
212
+ </div>
213
+ <div class="map-container">
214
+ <!-- Google Maps will be loaded here -->
215
+ <div id="map" class="w-full h-full bg-gray-200 flex items-center justify-center">
216
+ <div class="text-center">
217
+ <i class="fas fa-map-marked-alt text-4xl text-gray-400 mb-2"></i>
218
+ <p class="text-gray-500">Carregando mapa...</p>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ <!-- Data Import -->
225
+ <div class="bg-white rounded-xl shadow-sm p-6">
226
+ <h2 class="text-lg font-semibold text-gray-800 mb-4">Importar Dados</h2>
227
+ <div class="file-upload p-6 rounded-lg text-center mb-4 cursor-pointer">
228
+ <i class="fas fa-file-excel text-4xl text-green-500 mb-3"></i>
229
+ <p class="font-medium text-gray-700">Arraste e solte arquivos Excel aqui</p>
230
+ <p class="text-sm text-gray-500 mt-1">ou clique para selecionar</p>
231
+ <input type="file" class="hidden" accept=".xlsx, .xls, .csv">
232
+ </div>
233
+ <div class="mb-4">
234
+ <label class="block text-sm font-medium text-gray-700 mb-1">Tipo de Dados</label>
235
+ <select class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
236
+ <option>Freight Unit (FU)</option>
237
+ <option>Freight Order (FO)</option>
238
+ <option>Clientes</option>
239
+ <option>Transportadoras</option>
240
+ </select>
241
+ </div>
242
+ <div class="flex items-center space-x-2 mb-4">
243
+ <i class="fas fa-info-circle text-blue-500"></i>
244
+ <span class="text-sm text-gray-600">Formato compatível com SAP TM</span>
245
+ </div>
246
+ <button class="w-full bg-indigo-600 text-white py-2 rounded-md flex items-center justify-center">
247
+ <i class="fas fa-upload mr-2"></i> Importar Dados
248
+ </button>
249
+ <div class="mt-4 border-t pt-4">
250
+ <h3 class="text-sm font-medium text-gray-700 mb-2">Conectar ao Google Sheets</h3>
251
+ <button class="w-full bg-green-600 text-white py-2 rounded-md flex items-center justify-center">
252
+ <i class="fab fa-google mr-2"></i> Conectar Google Sheets
253
+ </button>
254
+ </div>
255
+ </div>
256
+ </div>
257
+
258
+ <!-- Freight Orders Table -->
259
+ <div class="bg-white rounded-xl shadow-sm p-6">
260
+ <div class="flex items-center justify-between mb-4">
261
+ <h2 class="text-lg font-semibold text-gray-800">Ordens de Frete</h2>
262
+ <div class="flex space-x-2">
263
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm flex items-center">
264
+ <i class="fas fa-filter mr-2"></i> Filtrar
265
+ </button>
266
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm flex items-center">
267
+ <i class="fas fa-file-export mr-2"></i> Exportar
268
+ </button>
269
+ </div>
270
+ </div>
271
+ <div class="overflow-x-auto">
272
+ <table class="min-w-full divide-y divide-gray-200">
273
+ <thead class="bg-gray-50">
274
+ <tr>
275
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID FO</th>
276
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cliente</th>
277
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transportadora</th>
278
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Veículo</th>
279
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data</th>
280
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
281
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th>
282
+ </tr>
283
+ </thead>
284
+ <tbody class="bg-white divide-y divide-gray-200">
285
+ <tr>
286
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1001</td>
287
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">ABC Comércio</td>
288
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">TransRápido</td>
289
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">CBA-1234</td>
290
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023</td>
291
+ <td class="px-6 py-4 whitespace-nowrap">
292
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Concluído</span>
293
+ </td>
294
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
295
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
296
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
297
+ </td>
298
+ </tr>
299
+ <tr>
300
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1002</td>
301
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">XYZ Indústria</td>
302
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">LogiExpress</td>
303
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">DEF-5678</td>
304
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">16/06/2023</td>
305
+ <td class="px-6 py-4 whitespace-nowrap">
306
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Em Trânsito</span>
307
+ </td>
308
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
309
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
310
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
311
+ </td>
312
+ </tr>
313
+ <tr>
314
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1003</td>
315
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Comercial Delta</td>
316
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Veloz Cargas</td>
317
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">GHI-9012</td>
318
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">17/06/2023</td>
319
+ <td class="px-6 py-4 whitespace-nowrap">
320
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Agendado</span>
321
+ </td>
322
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
323
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
324
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">FO-1004</td>
329
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Alimentos Omega</td>
330
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">TransRápido</td>
331
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">JKL-3456</td>
332
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">18/06/2023</td>
333
+ <td class="px-6 py-4 whitespace-nowrap">
334
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Atrasado</span>
335
+ </td>
336
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
337
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
338
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
339
+ </td>
340
+ </tr>
341
+ </tbody>
342
+ </table>
343
+ </div>
344
+ <div class="flex items-center justify-between mt-4">
345
+ <div class="text-sm text-gray-500">
346
+ Mostrando 1 a 4 de 1,248 ordens
347
+ </div>
348
+ <div class="flex space-x-2">
349
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm">
350
+ Anterior
351
+ </button>
352
+ <button class="px-3 py-1 bg-indigo-600 text-white rounded-md text-sm">
353
+ 1
354
+ </button>
355
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm">
356
+ 2
357
+ </button>
358
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm">
359
+ ...
360
+ </button>
361
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm">
362
+ 25
363
+ </button>
364
+ <button class="px-3 py-1 bg-white border border-gray-300 text-gray-700 rounded-md text-sm">
365
+ Próximo
366
+ </button>
367
+ </div>
368
+ </div>
369
+ </div>
370
+ </main>
371
+ </div>
372
+ </div>
373
+
374
+ <script>
375
+ // Mobile sidebar toggle
376
+ document.getElementById('mobile-sidebar-toggle').addEventListener('click', function() {
377
+ document.querySelector('.sidebar').classList.toggle('sidebar-open');
378
+ });
379
+
380
+ document.getElementById('sidebar-toggle').addEventListener('click', function() {
381
+ document.querySelector('.sidebar').classList.toggle('sidebar-open');
382
+ });
383
+
384
+ // File upload interaction
385
+ const fileUpload = document.querySelector('.file-upload');
386
+ const fileInput = document.querySelector('.file-upload input');
387
+
388
+ fileUpload.addEventListener('click', function() {
389
+ fileInput.click();
390
+ });
391
+
392
+ fileUpload.addEventListener('dragover', function(e) {
393
+ e.preventDefault();
394
+ this.classList.add('border-indigo-600', 'bg-indigo-50');
395
+ });
396
+
397
+ fileUpload.addEventListener('dragleave', function() {
398
+ this.classList.remove('border-indigo-600', 'bg-indigo-50');
399
+ });
400
+
401
+ fileUpload.addEventListener('drop', function(e) {
402
+ e.preventDefault();
403
+ this.classList.remove('border-indigo-600', 'bg-indigo-50');
404
+ // Handle dropped files
405
+ console.log('Files dropped:', e.dataTransfer.files);
406
+ });
407
+
408
+ // Initialize Google Maps (this would be replaced with actual API key in production)
409
+ function initMap() {
410
+ // This is just a placeholder - in a real app you would use the Google Maps API
411
+ console.log('Map would be initialized here with API key');
412
+ }
413
+
414
+ // Load Google Maps API
415
+ function loadGoogleMaps() {
416
+ const script = document.createElement('script');
417
+ script.src = `https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap`;
418
+ script.async = true;
419
+ script.defer = true;
420
+ document.head.appendChild(script);
421
+ }
422
+
423
+ // Uncomment this in production with a valid API key
424
+ // loadGoogleMaps();
425
+ </script>
426
+ <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=SGVco/logiroute" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
427
+ </html>