diff --git a/app/(private)/Impresiones/page.tsx b/app/(private)/Impresiones/page.tsx
index ba1edda..01bf9e3 100644
--- a/app/(private)/Impresiones/page.tsx
+++ b/app/(private)/Impresiones/page.tsx
@@ -36,7 +36,7 @@ export default async function Page({ searchParams }: any) {
diff --git a/app/(private)/layout.tsx b/app/(private)/layout.tsx
index 78eaa06..64368d2 100644
--- a/app/(private)/layout.tsx
+++ b/app/(private)/layout.tsx
@@ -1,12 +1,14 @@
import { ReactNode } from "react";
import { PrivateRoute } from "../Routes/PrivateRoute";
import BarNavigation from "../Components/BarNavigation/BarNavigation";
+import Logout from "../Components/Logout/Logout";
export default function PrivateLayout({ children }: { children: ReactNode }) {
return (
diff --git a/app/Components/Information/information.tsx b/app/Components/Information/information.tsx
index 0332b48..3b1db2c 100644
--- a/app/Components/Information/information.tsx
+++ b/app/Components/Information/information.tsx
@@ -21,4 +21,5 @@ export default function Information(props: InformationProps) {
);
-}
\ No newline at end of file
+}
+//IO
\ No newline at end of file
diff --git a/app/Components/Logout/Logout.css b/app/Components/Logout/Logout.css
new file mode 100644
index 0000000..44f2c9a
--- /dev/null
+++ b/app/Components/Logout/Logout.css
@@ -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%);
+ }
+}
diff --git a/app/Components/Logout/Logout.tsx b/app/Components/Logout/Logout.tsx
new file mode 100644
index 0000000..8fa3fc0
--- /dev/null
+++ b/app/Components/Logout/Logout.tsx
@@ -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 (
+
+ );
+}
diff --git a/app/globals.css b/app/globals.css
index dd2bcad..a3b6673 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -363,6 +363,12 @@ table tr {
align-items: center;
}
+.impressions-title {
+ font-size: 1.75rem;
+ font-weight: bold;
+ text-align: start;
+}
+
@media (max-width: 1300px) {
.container {
width: 100%;
diff --git a/app/not-found.tsx b/app/not-found.tsx
index 9af9ceb..ce4601f 100644
--- a/app/not-found.tsx
+++ b/app/not-found.tsx
@@ -1,19 +1,28 @@
+"use client";
+
+import { useRouter } from "next/navigation";
+
export default function NotFound() {
+ const router = useRouter();
+
+ const handleButton = () => {
+ router.push("/Impresiones");
+ };
+
return (
+
+ {/* TĆtulo */}
404 - PƔgina no encontrada
-
- Lo sentimos, la pƔgina que buscas no existe
-
-
- Por favor, verifica la URL o regresa a la pƔgina principal.
-
-
+ {/* Texto */}
+ Lo sentimos, la pƔgina que buscas no existe.
+ Por favor, verifica la URL o regresa a la pƔgina principal.
+
);
}
diff --git a/package.json b/package.json
index 4c53cc4..e142761 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev --turbopack",
"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"
},
"dependencies": {