fix navbar

This commit is contained in:
ariari04 2024-09-15 18:07:26 +06:00
parent 81aafdda7c
commit 4c11bc460c
4 changed files with 4 additions and 16 deletions

View File

@ -9,7 +9,7 @@ import { Providers } from "./Providers";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Create Next App",
title: "Гос закупки",
description: "Generated by create next app",
};

BIN
src/app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -44,21 +44,10 @@ const NavMenu: React.FC<INavMenuProps> = ({ setOpenMenu }: INavMenuProps) => {
return (
<nav className="p-[48px] w-full h-full min-h-[600px] fixed left-0 top-[120px] flex flex-col gap-6 bg-white scroll inset-y-0 right-0 z-50 overflow-y-auto">
{/* <div className="flex items-center justify-between">
<Link className="-m-1.5 p-1.5" href={"/"}>
<Image src={logo} alt="Logo" className="h-8 w-auto" />
</Link>
<button
onClick={() => setOpenMenu(false)}
className="-m-2.5 rounded-md p-2.5 text-gray-700"
>
<Image src={cross} alt="cross" />
</button>
</div> */}
{LINKS().map((link) => (
<Link
onClick={() => setOpenMenu(false)}
className={`justify-start font-medium size-6${
className={`justify-start font-medium ${
pathname === link.pathname ? "text-light-blue" : ""
}`}
href={`${pathname.slice(1, 3)}/${link.pathname}`}

View File

@ -28,7 +28,6 @@ const Navbar = () => {
kg: founded_kg,
en: founded_en,
};
return (
<header className="bg-white">
<Container>
@ -44,10 +43,10 @@ const Navbar = () => {
/>
<NavLanguage />
</div>
<nav className="hidden lg:flex lg:gap-x-4">
<nav className="hidden lg:flex lg:justify-between lg:gap-x-4 w-[500px]">
{LINKS().map((link) => (
<Link
className={`text-black opacity-0.5 size-4 font-normal min-w-[150px] flex justify-center${
className={`text-black opacity-0.5 font-normal${
pathname === link.pathname ? "opacity-1 font-bold" : ""
}`}
key={link.id}