SurfSense/surfsense_web/app/(home)/layout.tsx

19 lines
614 B
TypeScript
Raw Normal View History

2025-10-02 18:10:07 -07:00
"use client";
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 }) {
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}
{!isAuthPage && <FooterNew />}
2025-10-02 18:10:07 -07:00
</main>
);
}