diff --git a/app/rgpv/layout.tsx b/app/rgpv/layout.tsx new file mode 100644 index 0000000..bd696f8 --- /dev/null +++ b/app/rgpv/layout.tsx @@ -0,0 +1,14 @@ +import { Breadcrumbs } from "@/components/breadcrumbs"; + +export default function RGPVLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + <> + + {children} + + ); +} diff --git a/components/breadcrumbs.tsx b/components/breadcrumbs.tsx new file mode 100644 index 0000000..a18656e --- /dev/null +++ b/components/breadcrumbs.tsx @@ -0,0 +1,63 @@ +"use client"; + +import Link from "next/link"; +import { usePathname } from "next/navigation"; +import { ChevronRight, Home } from "lucide-react"; + +export function Breadcrumbs() { + const pathname = usePathname(); + const pathNames = pathname.split("/").filter((path) => path); + + if (pathNames.length <= 1) { + return null; + } + + return ( +
+ +
+ ); +} diff --git a/components/footer.tsx b/components/footer.tsx index ffe8750..7fd6802 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -56,7 +56,7 @@ export default function Footer() {