Skip to content

Commit 3101885

Browse files
committed
Refactor mobile navigation in Navbar component to improve layout and update note link styling based on pathname
1 parent 74afc65 commit 3101885

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

components/layout/navbar.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function Navbar() {
1717
// Mobile bottom navigation
1818
const mobileNav = !isOpen && (
1919
<div className="fixed bottom-0 left-0 z-50 w-full h-16 bg-gradient-to-r from-pub-mahogany to-pub-mahogany/95 backdrop-blur-md border-t border-pub-brass/40 md:hidden shadow-2xl flex items-center justify-center">
20-
<div className="flex w-full max-w-md mx-auto justify-between items-center px-8 relative">
20+
<div className="flex w-full max-w-md mx-auto justify-center gap-[140px] items-center px-8 relative">
2121
{/* Home */}
2222
<Link href="/" className={cn(
2323
"flex flex-col items-center justify-center text-pub-foam hover:text-pub-amber transition-all",
@@ -27,14 +27,15 @@ export function Navbar() {
2727
<span className="text-xs">Home</span>
2828
</Link>
2929
{/* Add Note (only show on /bar/*) */}
30-
{pathname.startsWith('/bar/') && (
31-
<Link href="/note" className={cn(
32-
"flex flex-col items-center justify-center bg-pub-amber text-pub-mahogany rounded-full p-3 shadow-lg -mt-14 border-4 border-pub-mahogany hover:bg-pub-gold transition-all",
33-
pathname === "/note" ? "scale-110" : ""
34-
)}>
35-
<Plus className="h-7 w-7" />
36-
</Link>
37-
)}
30+
31+
<Link href="/note" className={cn(
32+
pathname.startsWith('/bar/') ? "bg-gray-500" : "bg-gray-900",
33+
"flex flex-col items-center justify-center p-3 shadow-lg transition-all",
34+
pathname === "/note" ? "scale-110" : ""
35+
)}>
36+
<Plus className="h-7 w-7" />
37+
</Link>
38+
3839
{/* Me */}
3940
<Link href="/me" className={cn(
4041
"flex flex-col items-center justify-center text-pub-foam hover:text-pub-amber transition-all",

0 commit comments

Comments
 (0)