no full reload navbar

This commit is contained in:
2025-01-04 21:30:51 +01:00
parent bceb32ae7e
commit 9c82f5e5c6
+7 -6
View File
@@ -1,6 +1,7 @@
"use client"; "use client";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import Link from "next/link";
export default function Navbar() { export default function Navbar() {
const pathname = usePathname(); const pathname = usePathname();
@@ -9,7 +10,7 @@ export default function Navbar() {
<nav className="py-4 flex"> <nav className="py-4 flex">
<div className="mx-auto flex"> <div className="mx-auto flex">
<div className="space-x-4 text-white block font-bold"> <div className="space-x-4 text-white block font-bold">
<a <Link
href="/" href="/"
className={ className={
"hover:text-red transition-colors duration-300" + "hover:text-red transition-colors duration-300" +
@@ -17,8 +18,8 @@ export default function Navbar() {
} }
> >
Home Home
</a> </Link>
<a <Link
href="/pricing" href="/pricing"
className={ className={
"hover:text-red transition-colors duration-300" + "hover:text-red transition-colors duration-300" +
@@ -26,8 +27,8 @@ export default function Navbar() {
} }
> >
Pricing Pricing
</a> </Link>
<a <Link
href="/blog" href="/blog"
className={ className={
"hover:text-red transition-colors duration-300" + "hover:text-red transition-colors duration-300" +
@@ -35,7 +36,7 @@ export default function Navbar() {
} }
> >
Blog Blog
</a> </Link>
</div> </div>
</div> </div>
</nav> </nav>