@@ -10,7 +10,7 @@ const NavBarItem = ({ item, pathname, classprops }) => (
1010 < li
1111 className = { `${
1212 pathname === item . url && 'font-bold'
13- } ${ classprops } text-ml inline-block text-blue-800 no-underline hover:text-indigo-500 py-2 px-4 items-center`}
13+ } ${ classprops } cursor-pointer text-ml inline-block text-blue-800 no-underline hover:text-indigo-500 py-2 px-4 items-center`}
1414 >
1515 { item . title }
1616 </ li >
@@ -33,7 +33,7 @@ const Navbar = () => {
3333 return (
3434 < nav className = 'sticky w-full z-30 top-0 text-white bg-white' >
3535 < div className = 'w-full container mx-auto flex flex-wrap items-center justify-between mt-0 py-2' >
36- < div className = 'pl-4 flex items-center' >
36+ < div className = 'pl-4 flex items-center cursor-pointer ' >
3737 < Link
3838 className = 'toggleColour text-black no-underline hover:no-underline font-bold text-2xl lg:text-2xl'
3939 href = '/'
@@ -88,55 +88,3 @@ flex flex-col justify-start items-end rounded-md blue-glassmorphism animate-slid
8888}
8989
9090export default Navbar
91-
92- {
93- /* <nav className='w-full z-30 top-0 text-white bg-white relative'>
94- <div className='md:flex-[0.5] flex-initial justify-center items-center'>
95- <Image
96- src='/logo.png'
97- layout='responsive'
98- width={80}
99- height={40}
100- alt='logo'
101- className='w-32 cursor-pointer'
102- />
103- </div>
104- <ul className='md:flex hidden list-none flex-row justify-between items-center flex-initial'>
105- {['Market', 'Exchange', 'Tutorials', 'Wallets'].map((item, index) => (
106- <NavBarItem key={item + index} title={item} />
107- ))}
108- <li className='bg-[#2952e3] py-2 px-7 mx-4 rounded-full cursor-pointer hover:bg-[#2546bd]'>
109- Login
110- </li>
111- </ul>
112- <div className='flex relative'>
113- {!toggleMenu && (
114- <HiMenuAlt4
115- fontSize={28}
116- className='md:hidden cursor-pointer'
117- onClick={() => setToggleMenu(true)}
118- />
119- )}
120- {toggleMenu && (
121- <AiOutlineClose
122- fontSize={28}
123- className='text-white md:hidden cursor-pointer'
124- onClick={() => setToggleMenu(false)}
125- />
126- )}
127- {toggleMenu && (
128- <ul
129- className='z-10 fixed -top-0 -right-2 p-3 w-[70vw] h-screen shadow-2xl md:hidden list-none
130- flex flex-col justify-start items-end rounded-md blue-glassmorphism animate-slide-in'
131- >
132- <li className='text-xl w-full my-2'>
133- <AiOutlineClose onClick={() => setToggleMenu(false)} />
134- </li>
135- {['Market', 'Exchange', 'Tutorials', 'Wallets'].map((item, index) => (
136- <NavBarItem key={item + index} title={item} classprops='my-2 text-lg' />
137- ))}
138- </ul>
139- )}
140- </div>
141- </nav> */
142- }
0 commit comments