diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 30a2ba7..4f4a203 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -16,17 +16,19 @@ export default function Footer() { return ( ); } diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 34700e4..cf8a0f2 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -1,6 +1,13 @@ +'use client'; + +import Link from 'next/link'; +import { usePathname } from 'next/navigation'; + import Logo from '@/components/Logo'; export default function Header() { + const pathName = usePathname(); + const menuList = [ { name: '首页', @@ -17,23 +24,25 @@ export default function Header() { ]; return ( -
- +
+
+ -
    - {menuList.map(({ name, path }) => ( -
  • - {name} -
  • - ))} -
+
+
    + {menuList.map(({ name, path }) => ( +
  • + {name} +
  • + ))} +
- + +
+
); } diff --git a/src/components/Logo.tsx b/src/components/Logo.tsx index 029ee9a..eb8c855 100644 --- a/src/components/Logo.tsx +++ b/src/components/Logo.tsx @@ -1,5 +1,3 @@ export default function AppLogo() { - return ( -

- ); + return

; }