76 lines
2.4 KiB
TypeScript
Raw Normal View History

2025-02-01 06:57:24 +07:00
"use client";
import { toggleMobileMenu } from "@/utils/toggleMobileMenu";
import Nav from "./Nav";
const links = [
{ href: "#home", text: "Home", className: "active" },
{ href: "#about", text: "About" },
{ href: "#services", text: "Services" },
{ href: "#portfolio", text: "Portfolio" },
{ href: "#blog", text: "Blog" },
{ href: "#contact", text: "Contact" },
];
import Image from "next/image";
import LanguageSelect from "./LanguageSelect";
export default function Header9({ links }: any) {
return (
<div className="main-nav-sub full-wrapper">
{/* Logo (* Add your text or image to the link tag. Use SVG or PNG image format.
If you use a PNG logo image, the image resolution must be equal 200% of the visible logo
image size for support of retina screens. See details in the template documentation. *) */}
<div className="nav-logo-wrap position-static local-scroll">
<a href="#top" className="logo">
<Image
src="/assets/images/demo-slick/logo-dark.svg"
alt="Your Company Logo"
width={106}
height={36}
className="light-mode-logo"
/>
<Image
src="/assets/images/demo-slick/logo-white.svg"
alt="Your Company Logo"
width={106}
height={36}
className="dark-mode-logo"
/>
</a>
</div>
{/* Mobile Menu Button */}
<div
onClick={toggleMobileMenu}
className="mobile-nav"
role="button"
tabIndex={0}
>
<i className="mobile-nav-icon" />
<span className="visually-hidden">Menu</span>
</div>
{/* Main Menu */}
<div className="inner-nav desktop-nav">
<ul className="clearlist scroll-nav local-scroll justify-content-end scrollspyLinks">
<Nav links={links} />
<li className="desktop-nav-display">
<div className="vr mt-2" />
</li>
{/* Languages */}
<LanguageSelect />
{/* End Languages */}
<li>
<a href="#contact" className="opacity-1 no-hover">
<span
className="btn btn-mod btn-color-light btn-border-white-light btn-small btn-circle"
data-btn-animate="y"
>
Get in touch
</span>
</a>
</li>
</ul>
</div>
{/* End Main Menu */}
</div>
);
}