Created Layout & Responsive Header Component
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { Inter } from 'next/font/google'
|
||||
import type { Metadata } from 'next'
|
||||
|
||||
import { Header } from '@/components/header'
|
||||
import { Footer } from '@/components/footer'
|
||||
|
||||
import './globals.css'
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] })
|
||||
@@ -16,7 +20,17 @@ export default function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={inter.className}>{children}</body>
|
||||
<body className={inter.className}>
|
||||
<Header />
|
||||
<main className="w-full min-h-[calc(100vh-144px)] mt-36">
|
||||
<div className="w-full max-w-7xl mx-auto h-full">{children}</div>
|
||||
</main>
|
||||
<div
|
||||
id="modal"
|
||||
className="flex items-center justify-center w-screen h-screen fixed top-0 left-[50%] translate-x-[-50%] z-1000 overflow-y-hidden pointer-events-none"
|
||||
/>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const NotFoundPage = () => (
|
||||
<main className="w-full h-full">
|
||||
<p>Not Found Page</p>
|
||||
</main>
|
||||
<div className="w-full h-full">
|
||||
<p>404 Page</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
export default NotFoundPage
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const Home = () => (
|
||||
<main className="w-full h-full">
|
||||
<p>My Clean App</p>
|
||||
</main>
|
||||
<div className="w-full h-full">
|
||||
<p>Home Page</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
export default Home
|
||||
|
||||
Reference in New Issue
Block a user