mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-23 23:16:50 +00:00
init game theme
This commit is contained in:
32
themes/game/components/Header.js
Normal file
32
themes/game/components/Header.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import Image from 'next/image'
|
||||
import Logo from './Logo'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
|
||||
/**
|
||||
* 顶栏
|
||||
* @returns
|
||||
*/
|
||||
export default function Header() {
|
||||
const { setSideBarVisible } = useGlobal()
|
||||
return (
|
||||
<header className="z-20">
|
||||
<div className="w-full h-16 rounded-md bg-[#1F2030] flex justify-between items-center px-4">
|
||||
<Logo />
|
||||
|
||||
<button
|
||||
className="flex xl:hidden"
|
||||
onClick={() => {
|
||||
setSideBarVisible(true)
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/svg/search.svg"
|
||||
className="mr-2"
|
||||
width={20}
|
||||
height={20}
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user