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
Branches master
No related tags found
1 merge request!7Resolve "Adding basic post component"
...@@ -4,12 +4,16 @@ import { Inter } from 'next/font/google' ...@@ -4,12 +4,16 @@ import { Inter } from 'next/font/google'
import styles from '../styles/Home.module.css' import styles from '../styles/Home.module.css'
import NavigationProvider from '@/components/navigation/NavProvider' import NavigationProvider from '@/components/navigation/NavProvider'
import { useState } from 'react' import { useState } from 'react'
import TitleBar from '@/components/titlebar/TitleBar'
const inter = Inter({ subsets: ['latin'] }) const inter = Inter({ subsets: ['latin'] })
export default function Home() { export default function Home() {
const [navState, setNavState] = useState<boolean>(false);
return ( return (
<> <>
<Head> <Head>
...@@ -19,7 +23,9 @@ export default function Home() { ...@@ -19,7 +23,9 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
</Head> </Head>
<main className={styles.home}> <main className={styles.home}>
<NavigationProvider>
<NavigationProvider navState={navState}>
<TitleBar NavBarToggle={() => setNavState(!navState)}/>
</NavigationProvider> </NavigationProvider>
</main> </main>
</> </>
......
...@@ -52,4 +52,5 @@ overflow: hidden; ...@@ -52,4 +52,5 @@ overflow: hidden;
align-items: flex-end; align-items: flex-end;
height: 100%; height: 100%;
justify-content: end; justify-content: end;
color:rgb(100 116 139);
} }
\ No newline at end of file
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
align-items: flex-end; align-items: flex-end;
height: 100%; height: 100%;
justify-content: end; justify-content: end;
color:rgb(100 116 139);
} }
.postContentContainer { .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