This commit is contained in:
2025-11-05 14:51:47 -06:00
parent 82dc157549
commit 426624e0de
3 changed files with 55 additions and 14 deletions
@@ -40,6 +40,7 @@ const programas = [
export default function ProgramSelector({ titulo, opcion, tipo }: DatosEquipo) {
const [seleccion, setSeleccion] = useState("");
const [programas, setPrograma] = useState("");
const [checkboxes, setCheckboxes] = useState<Record<string, boolean>>(
programas.reduce((acc, prog) => ({ ...acc, [prog]: false }), {})
);
@@ -48,6 +49,7 @@ export default function ProgramSelector({ titulo, opcion, tipo }: DatosEquipo) {
const response = axios.get(
"https://venus.acatlan.unam.mx/asignacionTiempo_test/equipo"
);
setPrograma(response)
});
const handleChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
+44
View File
@@ -0,0 +1,44 @@
.notfound {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #f3f4f5, #f3f4f5);
color: #fff;
text-align: center;
font-family: "Inter", sans-serif;
padding: 2rem;
}
.notfound h1 {
font-size: 6rem;
color: #ff4d4d;
margin-bottom: 0.5rem;
}
.notfound h2 {
font-size: 2rem;
margin-bottom: 1rem;
}
.notfound p {
color: #050505;
max-width: 500px;
margin-bottom: 2rem;
}
.notfound button {
background: #ff4d4d;
border: none;
color: white;
padding: 0.8rem 2rem;
border-radius: 10px;
font-size: 1rem;
cursor: pointer;
transition: background 0.3s ease;
}
.notfound button:hover {
background: #e60000;
}
+9 -14
View File
@@ -1,25 +1,20 @@
"use client";
import { useRouter } from "next/navigation";
import "./NotFound.css";
export default function NotFound() {
const router = useRouter();
const handleButton = () => {
router.push("/Impresiones");
};
return (
<section>
<img src="/404-bg.png" alt="Página no encontrada" />
{/* Título */}
<h1>404 - Página no encontrada</h1>
{/* Texto */}
<p>Lo sentimos, la página que buscas no existe.</p>
<p>Por favor, verifica la URL o regresa a la página principal.</p>
<button className="button buttonSearch"> regresa al inicio</button>
<section className="notfound">
<h1>404</h1>
<h2>Página no encontrada</h2>
<p>
Lo sentimos, la página que buscas no existe o ha sido movida. Verifica
la URL o regresa a la página principal.
</p>
<button onClick={() => router.push("/")}>Regresar al inicio</button>
</section>
);
}