-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
a0p0bhv
committed
Jul 17, 2023
1 parent
4a17420
commit 2cbb253
Showing
17 changed files
with
407 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import {useEffect, useState, useRef } from 'react'; | ||
import { useEffect, useState, useRef } from 'react'; | ||
import avatar from '../images/avatar.png'; | ||
import logo from '../images/logo.png'; | ||
|
||
|
||
const Dashboard_Navbar = ({ navbarShadow }: { navbarShadow: boolean }) => { | ||
const [showLogout, setShowLogout] = useState(false); | ||
|
@@ -29,32 +32,30 @@ const Dashboard_Navbar = ({ navbarShadow }: { navbarShadow: boolean }) => { | |
}; | ||
|
||
return ( | ||
<div className={`flex flex-row fixed top-0 ${navbarShadow ? 'shadow-md shadow-gray-200' : ''} z-10 bg-white w-full py-7 p-5 sm:px-9 justify-between items-center`}> | ||
<div className="flex font-bold text-[22px] space-x-2 justify-center items-center"> | ||
<img src={""} alt="logo" className="w-7 h-7" /> | ||
<div>Basket Protocol</div> | ||
<> | ||
<div className={`flex flex-row bg-white-100 fixed top-4 rounded-2xl !w-4/6 ${navbarShadow ? 'shadow-md shadow-gray-200' : ''} z-10 bg-white w-full py-6 p-5 sm:px-9 justify-between items-center bg-custom-400`}> | ||
<div className="flex font-bold text-[22px] space-x-2 justify-center items-center"> | ||
<img src={logo} alt="logo" className="w-7 h-7" /> | ||
<div>Basket Protocol</div> | ||
</div> | ||
<button onClick={() => { }} className="bg-custom-500 text-white-100 font-bold py-2 px-6 rounded-lg cursor-pointer min-w-[140px]">Create Basket</button> | ||
</div> | ||
<div className="flex space-x-5"> | ||
|
||
<div className="flex justify-center items-center space-x-2 hover:opacity-80 cursor-pointer transition duration-200" onClick={handleImageClick}> | ||
<div> | ||
<img src={""} alt="profile" className="w-11 h-11" /> | ||
{showLogout && ( | ||
<div className="absolute right-6 sm:right-56 rounded-lg shadow-lg my-1 border" ref={logoutRef}> | ||
<div className="flex space-x-2 px-2 sm:px-5 py-2 rounded-lg bg-white hover:bg-red-200 justify-center items-center"> | ||
{/* <HiOutlineLogout size={18} /> */} | ||
logout | ||
<div className='opacity-0 left-0 top-0 absolute sm:static sm:opacity-100' onClick={handleLogout}>Logout</div> | ||
</div> | ||
<div className="right-1 top-9 fixed flex justify-center items-center space-x-2 hover:opacity-80 cursor-pointer transition duration-200" onClick={handleImageClick}> | ||
<div> | ||
<img src={avatar} alt="profile" className="w-11 h-11" /> | ||
{showLogout && ( | ||
<div className="absolute right-6 sm:right-56 rounded-lg shadow-lg my-1 border" ref={logoutRef}> | ||
<div className="flex space-x-2 px-2 sm:px-5 py-2 rounded-lg bg-white hover:bg-red-200 justify-center items-center"> | ||
<div className='opacity-0 left-0 top-0 absolute sm:static sm:opacity-100' onClick={handleLogout}>Logout</div> | ||
</div> | ||
)} | ||
</div> | ||
<div className="text-gray-500 text-sm opacity-0 left-0 top-0 sm:pr-8 absolute sm:opacity-100 sm:static"> | ||
[email protected] | ||
</div> | ||
</div> | ||
)} | ||
</div> | ||
<div className="text-gray-500 text-sm opacity-0 left-0 top-0 sm:pr-8 absolute sm:opacity-100 sm:static"> | ||
Anurag | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.