fixed barnavigation state

This commit is contained in:
2025-09-08 15:06:01 -04:00
parent 978b58c03c
commit 0242a7b968
5 changed files with 34 additions and 8 deletions
@@ -17,6 +17,7 @@
color: white;
font-weight: bold;
width: 100%;
transition: background-color 0.3s ease;
}
.barNavigation li:hover {
@@ -65,7 +66,7 @@
top: 100%;
width: 100%;
background-color: rgba(0, 61, 121, 1);
transition: max-height 0.3s ease, opacity 0.3s ease;
transition: color 0.3s ease, opacity 0.3s ease;
}
.subMenu.open ul {
@@ -9,8 +9,11 @@ function BarNavigation() {
const toggleMenu = () => setOpenMenu(!openMenu);
const toggleSubMenu = (index: number) => {
setOpenSubMenu(openSubMenu === index ? null : index);
if (typeof window !== "undefined" && window.innerWidth <= 800) {
setOpenSubMenu(openSubMenu === index ? null : index);
}
};
return (
<nav className="barNavigation">
<div
+2 -2
View File
@@ -25,8 +25,8 @@
content: "";
top: 0;
left: -20px;
width: 30%;
height: 50%;
width: 70%;
height: 100%;
min-width: 300px;
background-color: #d59f0f;
transform: skew(-45deg);