new structure

This commit is contained in:
2025-10-27 17:42:41 -06:00
parent d7bd1924fb
commit 0d4225e244
6 changed files with 13 additions and 9 deletions
+4 -2
View File
@@ -3,8 +3,11 @@ import Image from "next/image";
import header from "../app/styles/layout/header.module.scss";
import Link from "next/link";
import BarNavigation from "./BarNavigation";
import { usePathname } from "next/navigation";
function Header() {
const pathname = usePathname(); // obtenemos la ruta actual
return (
<header className={header.header}>
<Link
@@ -34,9 +37,8 @@ function Header() {
maxHeight: "50%",
alignItems: "end",
}}
className=""
>
<BarNavigation />
{pathname !== "/" && <BarNavigation />}
</div>
</header>
);