2025-10-02 18:10:07 -07:00
|
|
|
"use client";
|
|
|
|
|
|
2026-01-25 16:15:25 +05:30
|
|
|
import { usePathname } from "next/navigation";
|
2025-10-27 08:37:08 -07:00
|
|
|
import { FooterNew } from "@/components/homepage/footer-new";
|
2025-10-02 18:10:07 -07:00
|
|
|
import { Navbar } from "@/components/homepage/navbar";
|
|
|
|
|
|
|
|
|
|
export default function HomePageLayout({ children }: { children: React.ReactNode }) {
|
2026-01-25 16:15:25 +05:30
|
|
|
const pathname = usePathname();
|
|
|
|
|
const isAuthPage = pathname === "/login" || pathname === "/register";
|
|
|
|
|
|
2025-10-02 18:10:07 -07:00
|
|
|
return (
|
2026-01-08 23:03:43 -08:00
|
|
|
<main className="min-h-screen bg-linear-to-b from-gray-50 to-gray-100 text-gray-900 dark:from-black dark:to-gray-900 dark:text-white overflow-x-hidden">
|
2025-10-02 18:10:07 -07:00
|
|
|
<Navbar />
|
|
|
|
|
{children}
|
2026-01-25 16:15:25 +05:30
|
|
|
{!isAuthPage && <FooterNew />}
|
2025-10-02 18:10:07 -07:00
|
|
|
</main>
|
|
|
|
|
);
|
|
|
|
|
}
|