generated from 202306-NEA-DZ-FEW/capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf322cf
commit c38914d
Showing
3 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function Footer() { | ||
return <div className='h-48 w-full'>Footer</div>; | ||
} | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function Navbar() { | ||
return <div className='h-10 w-full'>Navbar</div>; | ||
} | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import * as React from "react"; | ||
import Footer from "@/components/footer/Footer"; | ||
import Navbar from "@/components/navbar/Navbar"; | ||
|
||
export default function Layout({ children }) { | ||
// Put Header or Footer around the children element | ||
// Example | ||
// return ( | ||
// <> | ||
// <Navbar /> | ||
// {children} | ||
// <Footer /> | ||
// </> | ||
// ); | ||
|
||
return <>{children}</>; | ||
return ( | ||
<div className='container mx-auto '> | ||
<Navbar /> | ||
{children} | ||
<Footer /> | ||
</div> | ||
); | ||
} |