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