This commit is contained in:
Hector 2025-03-09 23:36:56 -06:00
commit 7bf0a56761
2 changed files with 82 additions and 13 deletions

View File

@ -1,11 +1,10 @@
body { body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
margin: 0; margin: 0;
padding: 20px; padding: 20px;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.container { .container {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
@ -14,9 +13,29 @@ body {
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} }
.main-content {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
}
.sala {
flex: 1;
min-width: 300px;
margin: 20px 0;
text-align: center;
}
.sidebar {
flex: 0 0 350px;
}
h1, h2 { h1, h2 {
color: #333; color: #333;
} }
.mensaje { .mensaje {
background-color: #f8d7da; background-color: #f8d7da;
color: #721c24; color: #721c24;
@ -25,10 +44,7 @@ h1, h2 {
border-radius: 4px; border-radius: 4px;
display: none; display: none;
} }
.sala {
margin: 20px 0;
text-align: center;
}
.escenario { .escenario {
background-color: #ddd; background-color: #ddd;
padding: 10px; padding: 10px;
@ -37,26 +53,31 @@ h1, h2 {
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
.filas { .filas {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 10px; gap: 10px;
} }
.fila { .fila {
display: flex; display: flex;
gap: 10px; gap: 10px;
align-items: center; align-items: center;
} }
.numero-fila { .numero-fila {
width: 30px; width: 30px;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
.asientos { .asientos {
display: flex; display: flex;
gap: 5px; gap: 5px;
} }
.asiento { .asiento {
width: 35px; width: 35px;
height: 35px; height: 35px;
@ -68,27 +89,33 @@ h1, h2 {
user-select: none; user-select: none;
font-size: 12px; font-size: 12px;
} }
.disponible { .disponible {
background-color: #28a745; background-color: #28a745;
color: white; color: white;
} }
.vendido { .vendido {
background-color: #dc3545; background-color: #dc3545;
color: white; color: white;
cursor: not-allowed; cursor: not-allowed;
} }
.seleccionado { .seleccionado {
background-color: #007bff; background-color: #007bff;
color: white; color: white;
} }
.form-group { .form-group {
margin-bottom: 15px; margin-bottom: 15px;
} }
label { label {
display: block; display: block;
margin-bottom: 5px; margin-bottom: 5px;
font-weight: bold; font-weight: bold;
} }
input[type="text"] { input[type="text"] {
width: 100%; width: 100%;
padding: 8px; padding: 8px;
@ -96,6 +123,7 @@ input[type="text"] {
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
} }
.btn { .btn {
background-color: #007bff; background-color: #007bff;
color: white; color: white;
@ -104,28 +132,68 @@ input[type="text"] {
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
} }
.btn:hover { .btn:hover {
background-color: #0069d9; background-color: #0069d9;
} }
.resumen {
margin-top: 20px; .resumen, .concierto-detalles, #formularioVenta {
padding: 15px;
background-color: #f8f9fa; background-color: #f8f9fa;
border-radius: 4px; border-radius: 4px;
} }
.resumen {
margin-top: 20px;
padding: 15px;
}
.concierto-detalles {
border-left: 4px solid #6c757d;
}
#formularioVenta {
padding: 20px;
border: 1px solid #ddd;
height: fit-content;
}
.concierto-detalles i {
color: #6c757d;
margin-right: 5px;
width: 20px;
text-align: center;
}
#formularioVenta i {
color: #495057;
margin-right: 5px;
}
.leyenda { .leyenda {
display: flex; display: flex;
gap: 15px; gap: 15px;
margin-top: 20px; margin-top: 20px;
justify-content: center; justify-content: center;
} }
.leyenda-item { .leyenda-item {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 5px; gap: 5px;
} }
.leyenda-color { .leyenda-color {
width: 20px; width: 20px;
height: 20px; height: 20px;
border-radius: 3px; border-radius: 3px;
}
@media (max-width: 992px) {
.main-content {
flex-direction: column;
}
.sidebar {
width: 100%;
}
} }

View File

@ -4,8 +4,12 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sistema de Venta de Boletos</title> <title>Sistema de Venta de Boletos</title>
<link rel="stylesheet" href="css/index.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="css/index.css">
<style>
</style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
@ -49,9 +53,6 @@
<p>Total: $<span id="totalVenta">0.00</span></p> <p>Total: $<span id="totalVenta">0.00</span></p>
<button type="submit" id="btnVender" class="btn btn-primary">Confirmar Venta</button> <button type="submit" id="btnVender" class="btn btn-primary">Confirmar Venta</button>
</div> </div>
<!-- Campo oculto para almacenar IDs de asientos seleccionados --> <!-- Campo oculto para almacenar IDs de asientos seleccionados -->
<div id="asientosSeleccionadosInput"></div> <div id="asientosSeleccionadosInput"></div>