From 1bf530a6ccd6fb4d9e911739ca78315df3f4d428 Mon Sep 17 00:00:00 2001 From: 3zachm <3zachm2@gmail.com> Date: Sat, 10 Dec 2022 03:04:52 -0800 Subject: [PATCH] NavBar responsive init --- components/common/NavBar.tsx | 102 +++++++++++++++++++++++++---------- 1 file changed, 75 insertions(+), 27 deletions(-) diff --git a/components/common/NavBar.tsx b/components/common/NavBar.tsx index aab2666..e524e45 100644 --- a/components/common/NavBar.tsx +++ b/components/common/NavBar.tsx @@ -37,6 +37,7 @@ const itemAnimation: Variants = { function NavBar({ options }: NavProps) { const [navList, setNavList] = useState(options); + const [active, setActive] = useState(false); return ( - - + - - -
-

InvestBot

-

- Serving anny's community est. 2022 -

-
- + +
+
+ + InvestBot + +

+ InvestBot +

+

+ Serving anny's community est. 2022 +

+
+ { + setActive(!active); + console.log(active); + }} + > + +
+ + {navList.map((nav, index) => ( + // TODO: stylize -- I have a flight in 4 hours and its 3:04 am + {nav.content} + ))} +
); }