Files
front-Censo/src/components/header.tsx
T

49 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-10-22 13:27:10 -06:00
"use client";
import Image from "next/image";
import header from "../app/styles/layout/header.module.scss";
2025-10-22 13:27:10 -06:00
import Link from "next/link";
import BarNavigation from "./BarNavigation";
2025-10-27 17:42:41 -06:00
import { usePathname } from "next/navigation";
2025-10-22 13:27:10 -06:00
function Header() {
2025-10-29 14:30:06 -06:00
const pathname = usePathname();
2025-10-27 17:42:41 -06:00
2025-10-22 13:27:10 -06:00
return (
<header className={header.header}>
<Link
href="https://www.unam.mx/"
target="_blank"
className={header.center}
style={{
display: "flex",
alignItems: "center",
}}
>
<Image
className={header.logo}
2025-10-23 15:59:45 -06:00
src="/logo-blanco.png"
2025-10-22 13:27:10 -06:00
alt="Logo FES"
2025-10-23 16:32:26 -06:00
width={250}
2025-10-24 17:16:03 -06:00
height={70}
2025-10-22 13:27:10 -06:00
/>
</Link>
<div className={header.yellowPart}></div>
<div
style={{
display: "flex",
width: "100%",
2025-10-27 14:23:52 -06:00
height: "100%",
paddingLeft: "40px",
2025-10-22 13:27:10 -06:00
maxHeight: "50%",
alignItems: "end",
}}
>
2025-10-27 17:42:41 -06:00
{pathname !== "/" && <BarNavigation />}
2025-10-22 13:27:10 -06:00
</div>
</header>
);
}
export default Header;
2025-10-23 16:32:26 -06:00
//IO