-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathHeader.js
More file actions
41 lines (38 loc) · 1.51 KB
/
Copy pathHeader.js
File metadata and controls
41 lines (38 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React, { useContext, useEffect } from "react";
import Image from "next/image";
import { AiOutlineSearch } from "react-icons/ai";
import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
const styles = {
container: "flex w-screen h-16 bg-black px-24 py-3 mb-5 fixed",
leftHeader: "flex flex-1",
searchWrapper: "flex flex-1",
searchInputContainer:
"text-white items-center flex flex-1 -ml-64 border border-gray-400 mr-64 hover:bg-[#1E2123] duration-300 p-3 rounded-lg",
searchIcon: "text-gray-400 text-3xl mr-3",
searchInputWrapper: "text-gray-400 text-lg w-full",
searchInput: "bg-transparent outline-none w-full",
rightHeader: "flex items-center justify-end text-white gap-8",
menuItem:
"cursor-pointer font-bold hover:text-green-500 duration-300 text-2xl",
};
const Header = () => {
return (
<div className={styles.container}>
<div className={styles.leftHeader}>{/* LOGO */}</div>
<div className={styles.searchWrapper}>
<div className={styles.searchInputContainer}>
<AiOutlineSearch className={styles.searchIcon} />
<div className={styles.searchInputWrapper}>
<input placeholder="Search..." className={styles.searchInput} />
</div>
</div>
</div>
<div className={styles.rightHeader}>
<div className={styles.menuItem}>Rewards</div>
<div className={styles.menuItem}>Portfolio</div>
<WalletMultiButton className={styles.menuItem} />
</div>
</div>
);
};
export default Header;