mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
heo-动态导航栏
This commit is contained in:
@@ -7,7 +7,7 @@ const Logo = props => {
|
||||
const { siteInfo } = props
|
||||
return (
|
||||
<Link href='/' passHref legacyBehavior>
|
||||
<div className='pl-5 flex flex-nowrap justify-center items-center cursor-pointer font-extrabold'>
|
||||
<div className='flex flex-nowrap justify-center items-center cursor-pointer font-extrabold'>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={siteInfo?.icon} width={24} height={24} alt={BLOG.AUTHOR} className='mr-4 hidden md:block' />
|
||||
<div id='logo-text' className='group rounded-2xl flex-none relative'>
|
||||
|
||||
@@ -58,7 +58,7 @@ export default function NavSwipe(props) {
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="h-full relative w-full overflow-hidden">
|
||||
<div className="hidden lg:block h-full relative w-full overflow-hidden">
|
||||
{items.map((item, index) => (
|
||||
<div
|
||||
key={index}
|
||||
@@ -85,7 +85,7 @@ export default function NavSwipe(props) {
|
||||
|
||||
@keyframes slide-in {
|
||||
from {
|
||||
transform: translateY(${activeIndex === 0 ? '100%' : '-100%'});
|
||||
transform: translateY(${activeIndex === 1 ? '100%' : '-100%'});
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
@@ -97,7 +97,7 @@ export default function NavSwipe(props) {
|
||||
transform: translateY(0);
|
||||
}
|
||||
to {
|
||||
transform: translateY(${activeIndex === 0 ? '-100%' : '100%'});
|
||||
transform: translateY(${activeIndex === 1 ? '-100%' : '100%'});
|
||||
}
|
||||
}
|
||||
`}</style>
|
||||
|
||||
Reference in New Issue
Block a user