HEO 导航栏配色

This commit is contained in:
tangly1024.com
2024-01-31 15:23:42 +08:00
parent ef35774b04
commit 44608a2ca8
3 changed files with 8 additions and 5 deletions

View File

@@ -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'>

View File

@@ -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>

View File

@@ -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 === '/'
? <>