2025-06-30 15:54:10 -04:00
|
|
|
import '../styles/globals.css';
|
|
|
|
|
import type { AppProps } from 'next/app';
|
2025-07-16 17:27:22 -04:00
|
|
|
import { useRouter } from 'next/router';
|
2025-07-10 11:52:38 -04:00
|
|
|
import { Fraunces } from 'next/font/google'
|
2025-06-30 15:54:10 -04:00
|
|
|
import Navbar from '../components/Navbar';
|
2025-07-01 16:56:24 -04:00
|
|
|
import Footer from '../components/Footer';
|
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
|
2025-07-02 16:39:16 -04:00
|
|
|
const font = Fraunces({ subsets: ['latin'] })
|
2025-06-30 15:54:10 -04:00
|
|
|
|
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
2025-07-16 17:27:22 -04:00
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
const noNavPath = "/dashboard/"
|
|
|
|
|
|
2025-06-30 15:54:10 -04:00
|
|
|
return (
|
2025-07-16 17:27:22 -04:00
|
|
|
<main className={classNames("bg-deepcove min-h-screen flex justify-center", font.className)}>
|
|
|
|
|
<div className="w-full max-w-[1920px]">
|
|
|
|
|
{!router.pathname.includes("/dashboard/") && <Navbar />}
|
|
|
|
|
{/* <Navbar /> */}
|
2025-07-10 11:52:38 -04:00
|
|
|
<Component {...pageProps} />
|
2025-07-16 17:27:22 -04:00
|
|
|
{!router.pathname.includes("/dashboard/") && <Footer />}
|
2025-07-10 11:52:38 -04:00
|
|
|
</div>
|
|
|
|
|
</main>
|
2025-06-30 15:54:10 -04:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default MyApp;
|