INIT(app): initial commit
- Initialize project structure - Add base configuration
This commit is contained in:
23
services/nextjs/components/navigation.tsx
Normal file
23
services/nextjs/components/navigation.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
import styles from "../styles/navigation.module.css"
|
||||
|
||||
export default function Navigation() {
|
||||
const path = usePathname();
|
||||
return (
|
||||
<nav className={styles.nav}>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="/">Home</Link>
|
||||
{path === "/" ? "🔥" : ""}
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/about-us">About Us</Link>
|
||||
{path === "/about-us" ? "🔥" : ""}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user