homepage/landing pages 'done', dashboard started
This commit is contained in:
+10
-4
@@ -1,5 +1,6 @@
|
||||
import '../styles/globals.css';
|
||||
import type { AppProps } from 'next/app';
|
||||
import { useRouter } from 'next/router';
|
||||
import { Fraunces } from 'next/font/google'
|
||||
import Navbar from '../components/Navbar';
|
||||
import Footer from '../components/Footer';
|
||||
@@ -8,12 +9,17 @@ import classNames from 'classnames';
|
||||
const font = Fraunces({ subsets: ['latin'] })
|
||||
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
|
||||
const router = useRouter();
|
||||
const noNavPath = "/dashboard/"
|
||||
|
||||
return (
|
||||
<main className={classNames("bg-britton-dark min-h-screen flex justify-center", font.className)}>
|
||||
<div className="max-w-[1920px]">
|
||||
<Navbar />
|
||||
<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 /> */}
|
||||
<Component {...pageProps} />
|
||||
<Footer />
|
||||
{!router.pathname.includes("/dashboard/") && <Footer />}
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user