fixed barnavigation styles
This commit is contained in:
@@ -20,7 +20,7 @@ export default function page() {
|
||||
});
|
||||
|
||||
// Estado para saber si mostramos los campos de SO y Procesador
|
||||
const mostrarCamposComputadora = formData.tipoEquipo !== "Impresora";
|
||||
const mostrarCamposComputadora = formData.tipoEquipo !== "Impresora";
|
||||
|
||||
const handleGuardar = () => {
|
||||
console.log("Formulario enviado:", formData);
|
||||
@@ -32,7 +32,7 @@ const mostrarCamposComputadora = formData.tipoEquipo !== "Impresora";
|
||||
};
|
||||
|
||||
// Función para actualizar el estado y limpiar campos si es impresora
|
||||
const handleChange = (e) => {
|
||||
const handleChange = (e: any) => {
|
||||
const { name, value } = e.target;
|
||||
setFormData((prev) => {
|
||||
let updated = { ...prev, [name]: value };
|
||||
@@ -120,7 +120,6 @@ const mostrarCamposComputadora = formData.tipoEquipo !== "Impresora";
|
||||
<option value="En reparación">En reparación</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{/* Columna Centro */}
|
||||
@@ -161,7 +160,10 @@ const mostrarCamposComputadora = formData.tipoEquipo !== "Impresora";
|
||||
<select
|
||||
value={formData.sistemaOperativo}
|
||||
onChange={(e) =>
|
||||
setFormData({ ...formData, sistemaOperativo: e.target.value })
|
||||
setFormData({
|
||||
...formData,
|
||||
sistemaOperativo: e.target.value,
|
||||
})
|
||||
}
|
||||
>
|
||||
<option value="">Selecciona sistema operativo</option>
|
||||
@@ -238,11 +240,15 @@ const mostrarCamposComputadora = formData.tipoEquipo !== "Impresora";
|
||||
<button type="button" className="btnGuardar" onClick={handleGuardar}>
|
||||
Guardar
|
||||
</button>
|
||||
<button type="button" className="btnCancelar" onClick={handleCancelar}>
|
||||
<button
|
||||
type="button"
|
||||
className="btnCancelar"
|
||||
onClick={handleCancelar}
|
||||
>
|
||||
Cancelar
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
.barNavigation {
|
||||
text-align: center;
|
||||
justify-content: end;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
@@ -11,7 +12,7 @@
|
||||
.barNavigation ul {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
width: 100%;
|
||||
width: 90%;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@@ -93,7 +94,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #383838;
|
||||
font-size: 1.5rem;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.links {
|
||||
@@ -115,7 +116,7 @@
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
font-size: 1.2rem;
|
||||
font-size: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -128,7 +129,7 @@
|
||||
}
|
||||
|
||||
/* ✅ Ajustes para móvil */
|
||||
@media (max-width: 800px) {
|
||||
@media (max-width: 1000px) {
|
||||
.menuToggle {
|
||||
display: flex;
|
||||
position: relative;
|
||||
@@ -173,7 +174,6 @@
|
||||
background-color: rgb(1, 92, 184);
|
||||
}
|
||||
|
||||
|
||||
.logout-button {
|
||||
margin-top: 10px;
|
||||
font-size: 1rem;
|
||||
@@ -185,4 +185,4 @@
|
||||
tbody {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
.agregarEquipoContainer {
|
||||
background-color: #ffffff;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
@@ -157,4 +156,4 @@
|
||||
padding: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
padding: 0 10px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 90px;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.header::after {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
margin-bottom: 15px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #003e79;
|
||||
font-size: 2rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
button {
|
||||
|
||||
@@ -44,8 +44,7 @@ function BarNavigation() {
|
||||
<span>Agregar equipo</span>
|
||||
</Link>
|
||||
</li>
|
||||
{/* ✅ Botón directo, sin onClick en el <li> */}
|
||||
<li>
|
||||
<li className="subMenu">
|
||||
<button className="logout-button" onClick={cerrarSesion}>
|
||||
Cerrar sesión
|
||||
</button>
|
||||
@@ -55,4 +54,5 @@ function BarNavigation() {
|
||||
);
|
||||
}
|
||||
|
||||
export default BarNavigation;
|
||||
export default BarNavigation;
|
||||
//IO
|
||||
|
||||
@@ -29,8 +29,8 @@ function Header() {
|
||||
style={{
|
||||
display: "flex",
|
||||
width: "100%",
|
||||
marginLeft: "40px",
|
||||
marginTop: "40px",
|
||||
height: "100%",
|
||||
paddingLeft: "40px",
|
||||
maxHeight: "50%",
|
||||
alignItems: "end",
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user