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

Basic index page with navbar

parent 135d8f59
No related branches found
No related tags found
1 merge request!8create "Basic components"
...@@ -2,9 +2,9 @@ import { Html, Head, Main, NextScript } from 'next/document' ...@@ -2,9 +2,9 @@ import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() { export default function Document() {
return ( return (
<Html lang="en"> <Html lang="en" className="h-full bg-white">
<Head /> <Head />
<body> <body className='h-full'>
<Main /> <Main />
<NextScript /> <NextScript />
</body> </body>
......
...@@ -2,10 +2,20 @@ import Head from 'next/head' ...@@ -2,10 +2,20 @@ import Head from 'next/head'
import Image from 'next/image' import Image from 'next/image'
import { Inter } from 'next/font/google' import { Inter } from 'next/font/google'
import Test from './test' import Test from './test'
import NavBar from '@/components/navigation/NavBar'
import Hero from '@/components/hero/Hero'
const inter = Inter({ subsets: ['latin'] }) const inter = Inter({ subsets: ['latin'] })
const user = {
Name: 'Tom Cook',
email: 'tom@example.com',
Username: 'TomCook',
Avatar:
'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}
export default function Home() { export default function Home() {
return ( return (
<> <>
...@@ -16,7 +26,16 @@ export default function Home() { ...@@ -16,7 +26,16 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
</Head> </Head>
<main> <main>
<Test /> <NavBar user={user}>
{user &&
<Hero />
}
{!user &&
<div>
logged in
</div>
}
</NavBar>
</main> </main>
</> </>
) )
......
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