-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from AbuQamar7379/feature/new-feature-abu
Implement layout for Background design, Conditionally rendering pages!
- Loading branch information
Showing
5 changed files
with
60 additions
and
50 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
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,22 @@ | ||
import React from "react"; | ||
import Navbar from "./components/Navbar/Navbar"; | ||
import Footer from "./components/Footer/Footer"; | ||
import BgComponent from "./components/BgComponent/BgComponent"; | ||
import './index.css'; | ||
|
||
const Layout = ({ children }) => { | ||
return ( | ||
<div | ||
className="layoutWrapper" | ||
> | ||
<div className="bgCompWrapper"> | ||
<BgComponent /> | ||
</div> | ||
<Navbar /> | ||
<main>{children}</main> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Layout; |
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
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
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 |
---|---|---|
|
@@ -14,5 +14,6 @@ root.render( | |
}} | ||
> | ||
<App /> | ||
|
||
</SnackbarProvider> | ||
); |