11import React from 'react'
22
3- import { ConnectButton } from '@rainbow-me/rainbowkit'
43import classNames from 'classnames'
4+ import Image from 'next/image'
55
66import { SITE_EMOJI , SITE_NAME } from '@/lib/constants'
77import useScroll from '@/lib/hooks/useScroll'
88
99import { LinkComponent } from '../app/LinkComponent'
1010import { ThemeSwitcher } from '../app/ThemeSwitcher'
11+ import { BranchColorMode } from '../branch/BranchColorMode'
1112import BranchIsAuthenticated from '../branch/BranchIsAuthenticated'
1213import BranchIsWalletConnected from '../branch/BranchIsWalletConnected'
1314import ResponsiveMobileAndDesktop from '../responsive/ResponsiveMobileAndDesktop'
1415import ButtonSIWELogin from '../siwe/ButtonSIWELogin'
15- import MenuMobile from './MenuMobile'
1616import UserDropdown from './UserDropdown'
1717
1818interface Props {
@@ -25,7 +25,7 @@ export function Header(props: Props) {
2525 props . className ,
2626 'Header' ,
2727 'fixed top-0 w-full' ,
28- ' px-10 py-3 mb-8 flex items-center' ,
28+ 'px-6 lg: px-10 py-3 mb-8 flex items-center' ,
2929 {
3030 'border-b border-gray-200 bg-white/50 backdrop-blur-xl dark:bg-black/50 dark:border-gray-800' : scrolled ,
3131 } ,
@@ -34,47 +34,31 @@ export function Header(props: Props) {
3434 return (
3535 < header className = { classes } >
3636 < ResponsiveMobileAndDesktop >
37- < >
38- < LinkComponent href = "/" className = "flex flex-1 items-center" >
39- < span className = "mr-1 text-3xl" > { SITE_EMOJI } </ span >
40- </ LinkComponent >
41- < div className = "flex items-center gap-4" >
42- < ThemeSwitcher />
43- < ConnectButton
44- showBalance = { false }
45- accountStatus = { {
46- smallScreen : 'avatar' ,
47- largeScreen : 'avatar' ,
48- } }
49- chainStatus = { {
50- smallScreen : 'icon' ,
51- largeScreen : 'icon' ,
52- } }
53- />
54- < MenuMobile >
55- < div className = "btn btn-light btn-sm" > MENU</ div >
56- </ MenuMobile >
57- </ div >
58- </ >
59- < >
60- < LinkComponent className = "flex items-center" href = "/" >
61- < span className = "mr-1" > { SITE_EMOJI } </ span >
62- < h1 className = "text-2xl font-bold" > { SITE_NAME } </ h1 >
63- </ LinkComponent >
64-
65- < div className = "flex-1" />
66-
67- < div className = "flex items-center gap-4" >
68- < BranchIsWalletConnected >
69- < BranchIsAuthenticated >
70- < UserDropdown />
71- < ButtonSIWELogin />
72- </ BranchIsAuthenticated >
73- </ BranchIsWalletConnected >
74- < ThemeSwitcher />
75- </ div >
76- </ >
37+ < LinkComponent href = "/" className = "flex flex-1 items-center " >
38+ < BranchColorMode >
39+ < Image alt = "Logo" src = "/logo-dark.png" width = { 32 } height = { 32 } />
40+ < Image alt = "Logo" src = "/logo-white.png" width = { 32 } height = { 32 } />
41+ </ BranchColorMode >
42+ </ LinkComponent >
43+ < LinkComponent className = "flex items-center" href = "/" >
44+ < BranchColorMode >
45+ < Image alt = "Logo" src = "/logo-dark.png" width = { 32 } height = { 32 } />
46+ < Image alt = "Logo" src = "/logo-white.png" width = { 32 } height = { 32 } />
47+ </ BranchColorMode >
48+ < h1 className = "text-gradient-sand ml-2 text-2xl font-bold" > { SITE_NAME } </ h1 >
49+ </ LinkComponent >
7750 </ ResponsiveMobileAndDesktop >
51+ < div className = "flex-1" />
52+
53+ < div className = "flex items-center gap-4" >
54+ < BranchIsWalletConnected >
55+ < BranchIsAuthenticated >
56+ < UserDropdown />
57+ < ButtonSIWELogin />
58+ </ BranchIsAuthenticated >
59+ </ BranchIsWalletConnected >
60+ < ThemeSwitcher />
61+ </ div >
7862 </ header >
7963 )
8064}
0 commit comments