Skip to content
Snippets Groups Projects
Commit 220d945c authored by Matt Kirby's avatar Matt Kirby
Browse files

Implement new nav menu provider

parent 7d19dcf1
No related branches found
No related tags found
1 merge request!7Resolve "Adding basic post component"
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -4,12 +4,16 @@ import { Inter } from 'next/font/google'
import styles from '../styles/Home.module.css'
import NavigationProvider from '@/components/navigation/NavProvider'
import { useState } from 'react'
import TitleBar from '@/components/titlebar/TitleBar'
const inter = Inter({ subsets: ['latin'] })
export default function Home() {
const [navState, setNavState] = useState<boolean>(false);
return (
<>
<Head>
......@@ -19,7 +23,9 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" />
</Head>
<main className={styles.home}>
<NavigationProvider>
<NavigationProvider navState={navState}>
<TitleBar NavBarToggle={() => setNavState(!navState)}/>
</NavigationProvider>
</main>
</>
......
......@@ -52,4 +52,5 @@ overflow: hidden;
align-items: flex-end;
height: 100%;
justify-content: end;
color:rgb(100 116 139);
}
\ No newline at end of file
......@@ -45,6 +45,7 @@
align-items: flex-end;
height: 100%;
justify-content: end;
color:rgb(100 116 139);
}
.postContentContainer {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment