CEFIDE commited on
Commit
bc2fba8
·
verified ·
1 Parent(s): 1bb1045

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +522 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Aula Virtual
3
- emoji: 📚
4
- colorFrom: blue
5
- colorTo: red
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: aula-virtual
3
+ emoji: 🐳
4
+ colorFrom: pink
5
+ colorTo: yellow
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,522 @@
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="es">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CEFIDE - Aula Virtual</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
+ <style>
10
+ .sidebar {
11
+ transition: all 0.3s ease;
12
+ }
13
+ @media (max-width: 768px) {
14
+ .sidebar {
15
+ transform: translateX(-100%);
16
+ position: absolute;
17
+ z-index: 50;
18
+ height: 100vh;
19
+ }
20
+ .sidebar.active {
21
+ transform: translateX(0);
22
+ }
23
+ }
24
+ .course-card:hover {
25
+ transform: translateY(-5px);
26
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
27
+ }
28
+ .tab-content {
29
+ display: none;
30
+ }
31
+ .tab-content.active {
32
+ display: block;
33
+ }
34
+ </style>
35
+ </head>
36
+ <body class="bg-gray-100 font-sans">
37
+ <!-- Header -->
38
+ <header class="bg-indigo-900 text-white shadow-lg">
39
+ <div class="container mx-auto px-4 py-3 flex justify-between items-center">
40
+ <div class="flex items-center space-x-2">
41
+ <button id="menu-toggle" class="md:hidden text-xl focus:outline-none">
42
+ <i class="fas fa-bars"></i>
43
+ </button>
44
+ <div class="flex items-center">
45
+ <i class="fas fa-balance-scale text-2xl mr-2"></i>
46
+ <h1 class="text-xl font-bold">CEFIDE</h1>
47
+ </div>
48
+ </div>
49
+ <div class="flex items-center space-x-4">
50
+ <div class="relative">
51
+ <i class="fas fa-bell text-xl cursor-pointer"></i>
52
+ <span class="absolute -top-1 -right-1 bg-red-500 text-white rounded-full w-4 h-4 flex items-center justify-center text-xs">3</span>
53
+ </div>
54
+ <div class="flex items-center space-x-2">
55
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Usuario" class="w-8 h-8 rounded-full">
56
+ <span class="hidden md:inline">Prof. cefide</span>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </header>
61
+
62
+ <div class="flex">
63
+ <!-- Sidebar -->
64
+ <aside class="sidebar w-64 bg-white shadow-md">
65
+ <div class="p-4 border-b">
66
+ <h2 class="text-lg font-semibold text-indigo-900">Panel de Control</h2>
67
+ </div>
68
+ <nav class="p-4">
69
+ <ul class="space-y-2">
70
+ <li>
71
+ <a href="#" class="flex items-center p-2 text-indigo-900 bg-indigo-50 rounded-lg">
72
+ <i class="fas fa-home mr-3"></i>
73
+ <span>Inicio</span>
74
+ </a>
75
+ </li>
76
+ <li>
77
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-indigo-50 rounded-lg">
78
+ <i class="fas fa-graduation-cap mr-3"></i>
79
+ <span>Cursos</span>
80
+ </a>
81
+ </li>
82
+ <li>
83
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-indigo-50 rounded-lg">
84
+ <i class="fas fa-users mr-3"></i>
85
+ <span>Estudiantes</span>
86
+ </a>
87
+ </li>
88
+ <li>
89
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-indigo-50 rounded-lg">
90
+ <i class="fas fa-chart-line mr-3"></i>
91
+ <span>Ventas</span>
92
+ </a>
93
+ </li>
94
+ <li>
95
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-indigo-50 rounded-lg">
96
+ <i class="fas fa-file-invoice-dollar mr-3"></i>
97
+ <span>Facturación</span>
98
+ </a>
99
+ </li>
100
+ <li>
101
+ <a href="#" class="flex items-center p-2 text-gray-700 hover:bg-indigo-50 rounded-lg">
102
+ <i class="fas fa-cog mr-3"></i>
103
+ <span>Configuración</span>
104
+ </a>
105
+ </li>
106
+ </ul>
107
+ </nav>
108
+ <div class="p-4 border-t mt-4">
109
+ <div class="bg-indigo-50 p-3 rounded-lg">
110
+ <h3 class="font-medium text-indigo-900">Nuevo Curso</h3>
111
+ <p class="text-sm text-gray-600 mt-1">Crea un nuevo curso de derecho</p>
112
+ <button class="mt-2 w-full bg-indigo-600 text-white py-1 px-3 rounded-md text-sm hover:bg-indigo-700 transition">
113
+ <i class="fas fa-plus mr-1"></i> Crear
114
+ </button>
115
+ </div>
116
+ </div>
117
+ </aside>
118
+
119
+ <!-- Main Content -->
120
+ <main class="flex-1 p-6">
121
+ <!-- Dashboard Header -->
122
+ <div class="flex justify-between items-center mb-6">
123
+ <h2 class="text-2xl font-bold text-gray-800">Bienvenido al Centro de Estudios</h2>
124
+ <div class="flex space-x-2">
125
+ <button class="bg-white border border-gray-300 px-4 py-2 rounded-md text-sm hover:bg-gray-50">
126
+ <i class="fas fa-download mr-1"></i> Exportar
127
+ </button>
128
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-md text-sm hover:bg-indigo-700">
129
+ <i class="fas fa-plus mr-1"></i> Nuevo
130
+ </button>
131
+ </div>
132
+ </div>
133
+
134
+ <!-- Stats Cards -->
135
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
136
+ <div class="bg-white p-4 rounded-lg shadow">
137
+ <div class="flex justify-between">
138
+ <div>
139
+ <p class="text-gray-500">Cursos Activos</p>
140
+ <h3 class="text-2xl font-bold mt-1">12</h3>
141
+ </div>
142
+ <div class="bg-indigo-100 text-indigo-600 p-3 rounded-full">
143
+ <i class="fas fa-book-open text-xl"></i>
144
+ </div>
145
+ </div>
146
+ <p class="text-sm text-green-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 2 nuevos este mes</p>
147
+ </div>
148
+ <div class="bg-white p-4 rounded-lg shadow">
149
+ <div class="flex justify-between">
150
+ <div>
151
+ <p class="text-gray-500">Estudiantes</p>
152
+ <h3 class="text-2xl font-bold mt-1">348</h3>
153
+ </div>
154
+ <div class="bg-green-100 text-green-600 p-3 rounded-full">
155
+ <i class="fas fa-users text-xl"></i>
156
+ </div>
157
+ </div>
158
+ <p class="text-sm text-green-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 15 nuevos esta semana</p>
159
+ </div>
160
+ <div class="bg-white p-4 rounded-lg shadow">
161
+ <div class="flex justify-between">
162
+ <div>
163
+ <p class="text-gray-500">Ingresos</p>
164
+ <h3 class="text-2xl font-bold mt-1">$24,580</h3>
165
+ </div>
166
+ <div class="bg-blue-100 text-blue-600 p-3 rounded-full">
167
+ <i class="fas fa-dollar-sign text-xl"></i>
168
+ </div>
169
+ </div>
170
+ <p class="text-sm text-green-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 12% desde ayer</p>
171
+ </div>
172
+ <div class="bg-white p-4 rounded-lg shadow">
173
+ <div class="flex justify-between">
174
+ <div>
175
+ <p class="text-gray-500">Tasa de finalización</p>
176
+ <h3 class="text-2xl font-bold mt-1">78%</h3>
177
+ </div>
178
+ <div class="bg-purple-100 text-purple-600 p-3 rounded-full">
179
+ <i class="fas fa-chart-pie text-xl"></i>
180
+ </div>
181
+ </div>
182
+ <p class="text-sm text-red-500 mt-2"><i class="fas fa-arrow-down mr-1"></i> 2% menos que el mes pasado</p>
183
+ </div>
184
+ </div>
185
+
186
+ <!-- Tabs Navigation -->
187
+ <div class="bg-white rounded-lg shadow mb-6">
188
+ <div class="border-b border-gray-200">
189
+ <nav class="flex -mb-px">
190
+ <button data-tab="courses" class="tab-button py-4 px-6 text-center border-b-2 font-medium text-sm border-indigo-500 text-indigo-600">
191
+ <i class="fas fa-book mr-2"></i>Cursos
192
+ </button>
193
+ <button data-tab="students" class="tab-button py-4 px-6 text-center border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
194
+ <i class="fas fa-users mr-2"></i>Estudiantes
195
+ </button>
196
+ <button data-tab="sales" class="tab-button py-4 px-6 text-center border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
197
+ <i class="fas fa-shopping-cart mr-2"></i>Ventas
198
+ </button>
199
+ </nav>
200
+ </div>
201
+ </div>
202
+
203
+ <!-- Tab Contents -->
204
+ <div id="courses" class="tab-content active">
205
+ <div class="bg-white rounded-lg shadow overflow-hidden mb-6">
206
+ <div class="px-6 py-4 border-b border-gray-200">
207
+ <div class="flex justify-between items-center">
208
+ <h3 class="text-lg font-medium text-gray-900">Todos los Cursos</h3>
209
+ <div class="relative">
210
+ <input type="text" placeholder="Buscar curso..." class="pl-8 pr-4 py-2 border rounded-md text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500">
211
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ <div class="divide-y divide-gray-200">
216
+ <!-- Course Item -->
217
+ <div class="p-6 hover:bg-gray-50 transition">
218
+ <div class="flex flex-col md:flex-row md:items-center">
219
+ <div class="flex-1">
220
+ <div class="flex items-center">
221
+ <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
222
+ <i class="fas fa-gavel text-xl"></i>
223
+ </div>
224
+ <div>
225
+ <h4 class="font-medium text-gray-900">Teoría General del Derecho</h4>
226
+ <p class="text-sm text-gray-500 mt-1">Prof. Carlos Méndez</p>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ <div class="mt-4 md:mt-0 flex items-center space-x-4">
231
+ <div class="text-center">
232
+ <p class="text-sm text-gray-500">Estudiantes</p>
233
+ <p class="font-medium">42</p>
234
+ </div>
235
+ <div class="text-center">
236
+ <p class="text-sm text-gray-500">Precio</p>
237
+ <p class="font-medium">$120</p>
238
+ </div>
239
+ <div class="flex space-x-2">
240
+ <button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-full">
241
+ <i class="fas fa-edit"></i>
242
+ </button>
243
+ <button class="p-2 text-red-600 hover:bg-red-50 rounded-full">
244
+ <i class="fas fa-trash"></i>
245
+ </button>
246
+ </div>
247
+ </div>
248
+ </div>
249
+ </div>
250
+ <!-- More courses... -->
251
+ </div>
252
+ <div class="px-6 py-4 border-t border-gray-200 flex justify-between items-center">
253
+ <p class="text-sm text-gray-500">Mostrando 1 a 5 de 12 cursos</p>
254
+ <div class="flex space-x-2">
255
+ <button class="px-3 py-1 border rounded-md text-sm hover:bg-gray-50">Anterior</button>
256
+ <button class="px-3 py-1 border rounded-md text-sm bg-indigo-600 text-white hover:bg-indigo-700">1</button>
257
+ <button class="px-3 py-1 border rounded-md text-sm hover:bg-gray-50">2</button>
258
+ <button class="px-3 py-1 border rounded-md text-sm hover:bg-gray-50">Siguiente</button>
259
+ </div>
260
+ </div>
261
+ </div>
262
+
263
+ <h3 class="text-lg font-medium text-gray-900 mb-4">Nuevos Cursos</h3>
264
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
265
+ <!-- Course Card -->
266
+ <div class="course-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
267
+ <div class="bg-indigo-600 h-2"></div>
268
+ <div class="p-5">
269
+ <div class="flex justify-between items-start">
270
+ <div>
271
+ <h4 class="font-bold text-lg mb-1">Filosofía del Derecho</h4>
272
+ <p class="text-sm text-gray-600">Prof. Ana López</p>
273
+ </div>
274
+ <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Nuevo</span>
275
+ </div>
276
+ <p class="text-gray-500 text-sm mt-3">Exploración de las principales corrientes filosóficas que han influido en el desarrollo del derecho moderno.</p>
277
+ <div class="mt-4 flex justify-between items-center">
278
+ <div>
279
+ <p class="text-xs text-gray-500">Inicia: 15/08/2023</p>
280
+ <p class="text-sm font-medium text-indigo-600 mt-1">$150</p>
281
+ </div>
282
+ <button class="bg-indigo-600 text-white px-3 py-1 rounded-md text-sm hover:bg-indigo-700">
283
+ Inscribir
284
+ </button>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ <!-- More course cards... -->
289
+ </div>
290
+ </div>
291
+
292
+ <div id="students" class="tab-content">
293
+ <div class="bg-white rounded-lg shadow overflow-hidden">
294
+ <div class="px-6 py-4 border-b border-gray-200">
295
+ <div class="flex justify-between items-center">
296
+ <h3 class="text-lg font-medium text-gray-900">Estudiantes Registrados</h3>
297
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-md text-sm hover:bg-indigo-700">
298
+ <i class="fas fa-user-plus mr-1"></i> Nuevo Estudiante
299
+ </button>
300
+ </div>
301
+ </div>
302
+ <div class="overflow-x-auto">
303
+ <table class="min-w-full divide-y divide-gray-200">
304
+ <thead class="bg-gray-50">
305
+ <tr>
306
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
307
+ Nombre
308
+ </th>
309
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
310
+ Email
311
+ </th>
312
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
313
+ Cursos
314
+ </th>
315
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
316
+ Estado
317
+ </th>
318
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
319
+ Acciones
320
+ </th>
321
+ </tr>
322
+ </thead>
323
+ <tbody class="bg-white divide-y divide-gray-200">
324
+ <tr>
325
+ <td class="px-6 py-4 whitespace-nowrap">
326
+ <div class="flex items-center">
327
+ <div class="flex-shrink-0 h-10 w-10">
328
+ <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/42.jpg" alt="">
329
+ </div>
330
+ <div class="ml-4">
331
+ <div class="text-sm font-medium text-gray-900">María González</div>
332
+ <div class="text-sm text-gray-500">DNI: 12345678</div>
333
+ </div>
334
+ </div>
335
+ </td>
336
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
337
+ maria.gonzalez@example.com
338
+ </td>
339
+ <td class="px-6 py-4 whitespace-nowrap">
340
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
341
+ 3 cursos
342
+ </span>
343
+ </td>
344
+ <td class="px-6 py-4 whitespace-nowrap">
345
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
346
+ Activo
347
+ </span>
348
+ </td>
349
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
350
+ <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Editar</a>
351
+ <a href="#" class="text-red-600 hover:text-red-900">Eliminar</a>
352
+ </td>
353
+ </tr>
354
+ <!-- More student rows... -->
355
+ </tbody>
356
+ </table>
357
+ </div>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="sales" class="tab-content">
362
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
363
+ <div class="lg:col-span-2">
364
+ <div class="bg-white rounded-lg shadow overflow-hidden">
365
+ <div class="px-6 py-4 border-b border-gray-200">
366
+ <h3 class="text-lg font-medium text-gray-900">Registro de Ventas</h3>
367
+ </div>
368
+ <div class="p-6">
369
+ <div class="mb-6">
370
+ <label for="course" class="block text-sm font-medium text-gray-700 mb-1">Seleccionar Curso</label>
371
+ <select id="course" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
372
+ <option>Teoría General del Derecho</option>
373
+ <option>Filosofía del Derecho</option>
374
+ <option>Derecho Constitucional</option>
375
+ <option>Derecho Penal</option>
376
+ </select>
377
+ </div>
378
+ <div class="mb-6">
379
+ <label for="student" class="block text-sm font-medium text-gray-700 mb-1">Seleccionar Estudiante</label>
380
+ <select id="student" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
381
+ <option>María González</option>
382
+ <option>Juan Pérez</option>
383
+ <option>Laura Martínez</option>
384
+ <option>Carlos Sánchez</option>
385
+ </select>
386
+ </div>
387
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
388
+ <div>
389
+ <label for="price" class="block text-sm font-medium text-gray-700 mb-1">Precio</label>
390
+ <div class="relative rounded-md shadow-sm">
391
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
392
+ <span class="text-gray-500 sm:text-sm">$</span>
393
+ </div>
394
+ <input type="text" name="price" id="price" class="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-7 pr-12 sm:text-sm border-gray-300 rounded-md" placeholder="0.00">
395
+ <div class="absolute inset-y-0 right-0 flex items-center">
396
+ <label for="currency" class="sr-only">Currency</label>
397
+ <select id="currency" name="currency" class="focus:ring-indigo-500 focus:border-indigo-500 h-full py-0 pl-2 pr-7 border-transparent bg-transparent text-gray-500 sm:text-sm rounded-md">
398
+ <option>USD</option>
399
+ <option>EUR</option>
400
+ <option>PEN</option>
401
+ </select>
402
+ </div>
403
+ </div>
404
+ </div>
405
+ <div>
406
+ <label for="payment" class="block text-sm font-medium text-gray-700 mb-1">Método de Pago</label>
407
+ <select id="payment" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
408
+ <option>Tarjeta de Crédito</option>
409
+ <option>Transferencia Bancaria</option>
410
+ <option>PayPal</option>
411
+ <option>Efectivo</option>
412
+ </select>
413
+ </div>
414
+ </div>
415
+ <div class="flex justify-end">
416
+ <button class="bg-indigo-600 text-white px-6 py-2 rounded-md text-sm hover:bg-indigo-700">
417
+ <i class="fas fa-save mr-2"></i> Registrar Venta
418
+ </button>
419
+ </div>
420
+ </div>
421
+ </div>
422
+ </div>
423
+ <div>
424
+ <div class="bg-white rounded-lg shadow overflow-hidden">
425
+ <div class="px-6 py-4 border-b border-gray-200">
426
+ <h3 class="text-lg font-medium text-gray-900">Ventas Recientes</h3>
427
+ </div>
428
+ <div class="p-6">
429
+ <div class="space-y-4">
430
+ <div class="flex items-start">
431
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
432
+ <i class="fas fa-receipt"></i>
433
+ </div>
434
+ <div class="ml-4">
435
+ <p class="text-sm font-medium text-gray-900">Teoría General del Derecho</p>
436
+ <p class="text-sm text-gray-500">María González - $120</p>
437
+ <p class="text-xs text-gray-400 mt-1">Hoy, 10:45 AM</p>
438
+ </div>
439
+ </div>
440
+ <!-- More recent sales... -->
441
+ </div>
442
+ </div>
443
+ </div>
444
+ </div>
445
+ </div>
446
+ </div>
447
+ </main>
448
+ </div>
449
+
450
+ <script>
451
+ // Toggle mobile menu
452
+ document.getElementById('menu-toggle').addEventListener('click', function() {
453
+ document.querySelector('.sidebar').classList.toggle('active');
454
+ });
455
+
456
+ // Tab functionality
457
+ const tabButtons = document.querySelectorAll('.tab-button');
458
+ const tabContents = document.querySelectorAll('.tab-content');
459
+
460
+ tabButtons.forEach(button => {
461
+ button.addEventListener('click', () => {
462
+ const tabId = button.getAttribute('data-tab');
463
+
464
+ // Remove active class from all buttons and contents
465
+ tabButtons.forEach(btn => {
466
+ btn.classList.remove('border-indigo-500', 'text-indigo-600');
467
+ btn.classList.add('border-transparent', 'text-gray-500');
468
+ });
469
+ tabContents.forEach(content => {
470
+ content.classList.remove('active');
471
+ });
472
+
473
+ // Add active class to clicked button and corresponding content
474
+ button.classList.add('border-indigo-500', 'text-indigo-600');
475
+ button.classList.remove('border-transparent', 'text-gray-500');
476
+ document.getElementById(tabId).classList.add('active');
477
+ });
478
+ });
479
+
480
+ // Sample data for charts (you would replace this with real data)
481
+ const salesData = {
482
+ labels: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun'],
483
+ datasets: [{
484
+ label: 'Ventas 2023',
485
+ data: [12000, 19000, 15000, 18000, 22000, 25000],
486
+ backgroundColor: 'rgba(79, 70, 229, 0.2)',
487
+ borderColor: 'rgba(79, 70, 229, 1)',
488
+ borderWidth: 1,
489
+ tension: 0.4
490
+ }]
491
+ };
492
+
493
+ // Initialize charts (you would need to include Chart.js for this to work)
494
+ if (typeof Chart !== 'undefined') {
495
+ const salesChart = new Chart(
496
+ document.getElementById('salesChart'),
497
+ {
498
+ type: 'line',
499
+ data: salesData,
500
+ options: {
501
+ responsive: true,
502
+ plugins: {
503
+ legend: {
504
+ position: 'top',
505
+ },
506
+ tooltip: {
507
+ mode: 'index',
508
+ intersect: false,
509
+ }
510
+ },
511
+ scales: {
512
+ y: {
513
+ beginAtZero: true
514
+ }
515
+ }
516
+ }
517
+ }
518
+ );
519
+ }
520
+ </script>
521
+ <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=CEFIDE/aula-virtual" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
522
+ </html>