mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
30 lines
885 B
TypeScript
30 lines
885 B
TypeScript
import Link from "next/link";
|
|
import ThemeSwitcher from "@/components/ThemeSwitcher";
|
|
|
|
const HamburgerMenu = ({ menuVisible }: { menuVisible: boolean }) => {
|
|
return (
|
|
<div
|
|
className={`absolute top-0 -right-[173px] ${
|
|
menuVisible ? "-translate-x-full" : ""
|
|
} z-[9999] bg-teal-600 flex md:hidden dark:bg-gray-600 transition-transform duration-500 ease-linear`}
|
|
>
|
|
<ul className="list-reset text-white mt-16 p-5">
|
|
<li className="py-5">
|
|
<Link href="/tournois">Tournois</Link>
|
|
</li>
|
|
<li className="py-5">
|
|
<Link href="/qui-sommes-nous">Qui Sommes-Nous</Link>
|
|
</li>
|
|
<li className="py-5">
|
|
<Link href="/contactez-nous">Contactez-Nous</Link>
|
|
</li>
|
|
<li className="py-5">
|
|
<ThemeSwitcher />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default HamburgerMenu;
|