page templates
This commit is contained in:
12
src/app/blog/page.tsx
Normal file
12
src/app/blog/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { usePathname } from "next/navigation"
|
||||||
|
|
||||||
|
export default function Page() {
|
||||||
|
const pathName = usePathname()
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{pathName}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
12
src/app/fun/page.tsx
Normal file
12
src/app/fun/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { usePathname } from "next/navigation"
|
||||||
|
|
||||||
|
export default function Page() {
|
||||||
|
const pathName = usePathname()
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{pathName}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
12
src/app/projects/page.tsx
Normal file
12
src/app/projects/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { usePathname } from "next/navigation"
|
||||||
|
|
||||||
|
export default function Page() {
|
||||||
|
const pathName = usePathname()
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{pathName}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user