优化导航栏性能,完善导航栏弹出菜单的移动端适配;调整导航栏与 store 公共组件的所在目录结构

This commit is contained in:
2025-06-22 10:58:41 +08:00
parent b295fea52f
commit 483a33296a
24 changed files with 469 additions and 649 deletions

View File

@@ -0,0 +1,18 @@
import {createContext} from 'react'
import Image, {StaticImageData} from 'next/image'
export const HeaderContext = createContext<{
setMenu: (value: boolean) => void
} | null>(null)
export function FragmentTitle(props: {
text: string
img: StaticImageData
}) {
return (
<h3 className="font-bold flex items-center gap-3">
<Image src={props.img} alt="icon" aria-hidden className="size-8 lg:size-9"/>
<span>{props.text}</span>
</h3>
)
}