Skip to content

Commit deeac84

Browse files
committed
navbar sticky fixed
1 parent 77f334f commit deeac84

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Navbar from "../src/assets/components/layout/Navbar"
22
import Footer from "./assets/components/layout/Footer"
3+
import About from "./features/about/About"
34
import Homepage from "./features/home/Homepage"
45
export default function App() {
56
return (

src/assets/components/layout/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Navbar: React.FC = () => {
77
const navItems = ['Cases', 'About', 'Contact'];
88

99
return (
10-
<nav className="w-full bg-[#f4f4f4] px-6 py-4 md:px-12 md:py-6 border-b border-gray-200">
10+
<nav className="fixed top-0 left-0 right-0 z-50 w-full bg-[#f4f4f4] px-6 py-2 md:px-12 md:py-3 border-b border-gray-200">
1111
<div className="max-w-7xl mx-auto flex items-center justify-between">
1212

1313
{/* Logo Section */}
@@ -82,4 +82,4 @@ const Navbar: React.FC = () => {
8282
);
8383
};
8484

85-
export default Navbar;
85+
export default Navbar;

0 commit comments

Comments
 (0)