mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
HEO 导航栏配色
This commit is contained in:
@@ -130,7 +130,11 @@ const NavBar = props => {
|
||||
`}</style>
|
||||
|
||||
{/* 顶部导航菜单栏 */}
|
||||
<nav id='nav' className={`${fixedNav ? 'fixed' : 'relative bg-none'} ${textWhite ? 'text-white ' : 'text-black dark:text-white'} ${navBgWhite ? 'bg-white dark:bg-[#18171d]' : 'bg-none'} z-20 h-16 top-0 w-full`}>
|
||||
<nav id='nav' className={`z-20 h-16 top-0 w-full
|
||||
${fixedNav ? 'fixed' : 'relative bg-transparent'}
|
||||
${textWhite ? 'text-white ' : 'text-black dark:text-white'}
|
||||
${navBgWhite ? 'bg-white dark:bg-[#18171d]' : 'bg-transparent'}`}>
|
||||
|
||||
<div className='flex h-full mx-auto justify-between items-center max-w-[86rem] px-8'>
|
||||
{/* 左侧logo */}
|
||||
<div className='flex'>
|
||||
|
||||
@@ -65,7 +65,7 @@ export default function SlideOver(props) {
|
||||
<div className="absolute left-0 top-0 -ml-8 flex pr-2 pt-4 sm:-ml-10 sm:pr-4">
|
||||
<button
|
||||
type="button"
|
||||
className="rounded-md text-gray-300 hover:text-white focus:outline-none focus:ring-2 focus:ring-white"
|
||||
className="rounded-md text-gray-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-white"
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
<span className="sr-only">Close panel</span>
|
||||
|
||||
@@ -62,9 +62,8 @@ const LayoutBase = props => {
|
||||
const headerSlot = (
|
||||
<header>
|
||||
{/* 顶部导航 */}
|
||||
<div id="nav-bar-wrapper" className="h-16">
|
||||
<NavBar {...props} />
|
||||
</div>
|
||||
<NavBar {...props} />
|
||||
|
||||
{/* 通知横幅 */}
|
||||
{router.route === '/'
|
||||
? <>
|
||||
|
||||
Reference in New Issue
Block a user