Merge branch 'Lino' of https://github.com/IO420/Nexus into Carlos
This commit is contained in:
@@ -36,7 +36,7 @@ export default async function Page({ searchParams }: any) {
|
|||||||
<Information
|
<Information
|
||||||
NoCuenta={student.id_cuenta}
|
NoCuenta={student.id_cuenta}
|
||||||
Nombre={student.nombre}
|
Nombre={student.nombre}
|
||||||
Carrera={student.id_carrera}
|
Carrera={student.carrera.carrera}
|
||||||
Credito={student.credito}
|
Credito={student.credito}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
import { ReactNode } from "react";
|
import { ReactNode } from "react";
|
||||||
import { PrivateRoute } from "../Routes/PrivateRoute";
|
import { PrivateRoute } from "../Routes/PrivateRoute";
|
||||||
import BarNavigation from "../Components/BarNavigation/BarNavigation";
|
import BarNavigation from "../Components/BarNavigation/BarNavigation";
|
||||||
|
import Logout from "../Components/Logout/Logout";
|
||||||
|
|
||||||
export default function PrivateLayout({ children }: { children: ReactNode }) {
|
export default function PrivateLayout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<div className="mainContainer">
|
<div className="mainContainer">
|
||||||
<BarNavigation />
|
<BarNavigation />
|
||||||
<div className="container">
|
<div className="container">
|
||||||
|
<Logout/>
|
||||||
<div className="img"></div>
|
<div className="img"></div>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,4 +21,5 @@ export default function Information(props: InformationProps) {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
//IO
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
.button-logout {
|
||||||
|
background-color: #d32f2f;
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-logout:hover {
|
||||||
|
background-color: #d12020;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 800px) {
|
||||||
|
.button-logout {
|
||||||
|
color: transparent;
|
||||||
|
padding: 1.5rem;
|
||||||
|
font-size: 0px;
|
||||||
|
top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-logout::after {
|
||||||
|
content: "";
|
||||||
|
border: 3px solid white;
|
||||||
|
border-radius: 2px;
|
||||||
|
height: 15px;
|
||||||
|
width: 15px;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-logout::before {
|
||||||
|
content: "";
|
||||||
|
border: 2px solid white;
|
||||||
|
border-radius: 1px;
|
||||||
|
height: 0px;
|
||||||
|
width: 10px;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Cookies from "js-cookie";
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
|
import "./Logout.css";
|
||||||
|
|
||||||
|
export default function Logout() {
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
const handleLogout = () => {
|
||||||
|
Cookies.remove("token", { path: "/" });
|
||||||
|
router.push("/");
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<button onClick={handleLogout} className="button button-logout">
|
||||||
|
Cerrar sesión
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -363,6 +363,12 @@ table tr {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.impressions-title {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: start;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1300px) {
|
@media (max-width: 1300px) {
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
+16
-7
@@ -1,19 +1,28 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
const handleButton = () => {
|
||||||
|
router.push("/Impresiones");
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
<img
|
<img
|
||||||
src="/404-bg.png" // 👈 pon tu imagen en /public/404-bg.png
|
src="/404-bg.png" // 👈 pon tu imagen en /public/404-bg.png
|
||||||
alt="Página no encontrada"
|
alt="Página no encontrada"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{/* Título */}
|
||||||
<h1>404 - Página no encontrada</h1>
|
<h1>404 - Página no encontrada</h1>
|
||||||
|
|
||||||
<p className="text-gray-700 text-xl mb-2">
|
{/* Texto */}
|
||||||
Lo sentimos, la página que buscas no existe
|
<p>Lo sentimos, la página que buscas no existe.</p>
|
||||||
</p>
|
<p>Por favor, verifica la URL o regresa a la página principal.</p>
|
||||||
<p className="text-gray-700 text-xl">
|
<button className="button buttonSearch"> regresa al inicio</button>
|
||||||
Por favor, verifica la URL o regresa a la página principal.
|
|
||||||
</p>
|
|
||||||
<button> Regresa al inicio</button>
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "source ~/.nvm/nvm.sh && node --version && nvm use 22.10.0 && npm install && next build && next start -p 3356",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user