Files
next-web/src/pages/_app.tsx
T

28 lines
852 B
TypeScript
Raw Normal View History

2025-06-30 15:54:10 -04:00
import '../styles/globals.css';
import type { AppProps } from 'next/app';
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';
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) {
const router = useRouter();
const noNavPath = "/dashboard/"
2025-06-30 15:54:10 -04:00
return (
<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} />
{!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;