Created
March 12, 2020 15:27
-
-
Save nazariyv/526ad96233efe58373c5607a29a6f6a5 to your computer and use it in GitHub Desktop.
app-layout.jsx
This file contains hidden or 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
| import React from "react"; | |
| import Header from "./header"; | |
| import { Block } from "baseui/block"; | |
| import SideNavigation from "./side-navigation"; | |
| import Footer from "./footer"; | |
| export default ({ children }) => { | |
| return ( | |
| <Block | |
| display="flex" | |
| flexDirection="column" | |
| minWidth="900px" | |
| height="100vh" | |
| > | |
| <Block> | |
| <Header /> | |
| </Block> | |
| <Block display="flex" flexDirection="row"> | |
| <Block width="180px"> | |
| <SideNavigation /> | |
| </Block> | |
| <Block flex="auto">{children}</Block> | |
| </Block> | |
| <Block marginTop="auto" paddingBottom="20px"> | |
| <Footer /> | |
| </Block> | |
| </Block> | |
| ); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment