Spaces:
Running
Running
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ParkFlow Pro - Control de Estacionamiento</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/parking-grid.js"></script> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <parking-navbar></parking-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="flex flex-col lg:flex-row gap-8"> | |
| <!-- Configuración del estacionamiento --> | |
| <section class="w-full lg:w-1/3 bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6 flex items-center"> | |
| <i data-feather="settings" class="mr-2"></i> Configuración | |
| </h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Número de plazas</label> | |
| <input type="number" id="parking-slots" min="1" max="200" | |
| class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" | |
| value="20"> | |
| </div> | |
| <button id="update-layout" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-md transition duration-200 flex items-center justify-center"> | |
| <i data-feather="refresh-cw" class="mr-2"></i> Actualizar diseño | |
| </button> | |
| <div class="border-t pt-4"> | |
| <h3 class="text-lg font-medium text-gray-800 mb-3">Tipos de clientes</h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div> | |
| <span class="text-sm">Mensual con plaza fija</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div> | |
| <span class="text-sm">Mensual rotativo</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div> | |
| <span class="text-sm">Por hora</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Visualización del estacionamiento --> | |
| <section class="w-full lg:w-2/3"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 flex items-center"> | |
| <i data-feather="map-pin" class="mr-2"></i> Plazas de estacionamiento | |
| </h2> | |
| <div class="text-sm text-gray-500"> | |
| <span id="available-slots">20</span>/<span id="total-slots">20</span> disponibles | |
| </div> | |
| </div> | |
| <parking-grid></parking-grid> | |
| </div> | |
| <!-- Panel de control --> | |
| <div class="mt-6 bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6 flex items-center"> | |
| <i data-feather="sliders" class="mr-2"></i> Panel de control | |
| </h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <button id="monthly-fixed-btn" class="bg-green-100 hover:bg-green-200 text-green-800 font-medium py-3 px-4 rounded-md transition duration-200 flex items-center justify-center"> | |
| <i data-feather="user-check" class="mr-2"></i> Ingreso mensual fijo | |
| </button> | |
| <button id="monthly-rotating-btn" class="bg-yellow-100 hover:bg-yellow-200 text-yellow-800 font-medium py-3 px-4 rounded-md transition duration-200 flex items-center justify-center"> | |
| <i data-feather="repeat" class="mr-2"></i> Ingreso mensual rotativo | |
| </button> | |
| <button id="hourly-btn" class="bg-red-100 hover:bg-red-200 text-red-800 font-medium py-3 px-4 rounded-md transition duration-200 flex items-center justify-center"> | |
| <i data-feather="clock" class="mr-2"></i> Ingreso por hora | |
| </button> | |
| </div> | |
| <div class="mt-6 border-t pt-6"> | |
| <h3 class="text-lg font-medium text-gray-800 mb-3">Registro de salida</h3> | |
| <div class="flex items-center space-x-4"> | |
| <input type="text" id="exit-plate" placeholder="Placa del vehículo" class="flex-1 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <button id="process-exit" class="bg-gray-800 hover:bg-gray-900 text-white font-medium py-2 px-4 rounded-md transition duration-200 flex items-center"> | |
| <i data-feather="log-out" class="mr-2"></i> Procesar salida | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </div> | |
| </main> | |
| <!-- Modal --> | |
| <div id="modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-white rounded-lg shadow-xl w-full max-w-md mx-4"> | |
| <div class="p-6"> | |
| <h3 id="modal-title" class="text-xl font-bold text-gray-800 mb-4"></h3> | |
| <div id="modal-content" class="mb-6"></div> | |
| <div class="flex justify-end space-x-3"> | |
| <button id="modal-cancel" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">Cancelar</button> | |
| <button id="modal-confirm" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">Confirmar</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |