Skip to content

Commit 1eebcc3

Browse files
committed
Implemented sticky navbar for persistent visibility during scroll
1 parent 55ed18f commit 1eebcc3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Navbar.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ function Navbar({ scrollToFooter }: NavbarProps) {
146146
return (
147147
<div
148148
style={{
149+
position: "sticky",
150+
top: 0,
151+
zIndex: 1000,
149152
background: "#1b2540",
150153
height: "65px",
151154
lineHeight: "65px",
@@ -325,4 +328,4 @@ function Navbar({ scrollToFooter }: NavbarProps) {
325328
);
326329
}
327330

328-
export default Navbar;
331+
export default Navbar;

0 commit comments

Comments
 (0)