Skip to content

Commit 2116d01

Browse files
praveenzspapsinghdev
authored andcommitted
bug-fix:navbar hides properly
1 parent 93ca6d9 commit 2116d01

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

apps/web/src/app/(main)/(landing)/layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import Navbar from '@/components/landing-sections/navbar'
21
import React from 'react'
32

43
const Layout = ({ children }: { children: React.ReactNode }) => {
54
return (
65
<section>
7-
<Navbar />
86
{children}
97
</section>
108
)

apps/web/src/components/landing-sections/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Navbar = () => {
4646
return (
4747
<motion.nav
4848
initial={{ opacity: 0 }}
49-
animate={showNavbar ? { opacity: 1 } : { opacity: 0 }}
49+
animate={showNavbar ? { opacity: 1 } : { opacity: 0, display: 'none' }}
5050
transition={{ duration: 0.3 }}
5151
className={cn(
5252
" z-40 flex items-center justify-between px-4 py-3 bg-neutral-900/5 backdrop-blur-xl border-white/10",

0 commit comments

Comments
 (0)