restructuring layout

This commit is contained in:
2025-09-26 16:56:07 -06:00
parent dce377b586
commit 3bd6d6b7c2
64 changed files with 187 additions and 195 deletions
+45
View File
@@ -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: 2rem;
font-size: 0px;
top: 15px;
}
.button-logout::after {
content: "";
border: 3px solid white;
border-radius: 2px;
height: 2rem;
width: 2rem;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.button-logout::before {
content: "";
border: 2px solid white;
border-radius: 1px;
height: 0px;
width: 1.5rem;
position: absolute;
left: 50%;
top: 50%;
transform: translate(0, -50%);
}
}
+24
View File
@@ -0,0 +1,24 @@
"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 (
<>
<h4></h4>
<button onClick={handleLogout} className="button button-logout">
Cerrar sesión
</button>
</>
);
}