From 23649f7a87dae83aeb0ca09c0a0bb3ba60d321e4 Mon Sep 17 00:00:00 2001 From: Yashgupta9330 Date: Sat, 27 Apr 2024 01:08:45 +0530 Subject: [PATCH] added --- src/Components/Hamburger.jsx | 44 +++++++++++++++++++++++++++++------- src/Components/Home.jsx | 2 +- 2 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/Components/Hamburger.jsx b/src/Components/Hamburger.jsx index c0e39ba..2ca9823 100644 --- a/src/Components/Hamburger.jsx +++ b/src/Components/Hamburger.jsx @@ -1,9 +1,37 @@ -import Button from "./Button"; +import { useState } from "react"; import { AiOutlineClose, AiOutlineMenu } from "react-icons/ai"; -export default function Hamburger(){ - return( -
-
-
- ) -} \ No newline at end of file +import Love from "./Love"; + +export default function Hamburger() { + const [nav, setNav] = useState(false); + const navItems = ["About us", "Board of Love", "Plugins", "Contact Us"]; + + return ( +
+
setNav(!nav)} className="rounded-full bg-purple-600 flex items-center justify-center px-4 py-4"> + {nav ? : } +
+ +
+ ); +} diff --git a/src/Components/Home.jsx b/src/Components/Home.jsx index 0360c70..dc854f4 100644 --- a/src/Components/Home.jsx +++ b/src/Components/Home.jsx @@ -55,4 +55,4 @@ export default function Home() { ) -} +} \ No newline at end of file