Skip to content

Commit efe1caa

Browse files
Merge pull request #187 from Vidhi-Ajmera16355/sticky-navbar
sticky navbar
2 parents 988166d + 9de3441 commit efe1caa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Navbar: React.FC = () => {
1515
const { toggleTheme, mode } = themeContext;
1616

1717
return (
18-
<nav className="bg-white dark:bg-gray-900 text-black dark:text-white border-b border-gray-100 dark:border-gray-800 transition-colors duration-300">
18+
<nav className="sticky top-0 z-50 bg-white dark:bg-gray-900 text-black dark:text-white border-b border-gray-100 dark:border-gray-800 transition-colors duration-300">
1919
<div className="container mx-auto px-6 py-4 flex justify-between items-center">
2020
{/* Logo Section */}
2121
<Link

0 commit comments

Comments
 (0)