Initial commit
This commit is contained in:
12
src/components/Layout/MainPanel.js
Normal file
12
src/components/Layout/MainPanel.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Box, useStyleConfig } from '@chakra-ui/react';
|
||||
function MainPanel(props) {
|
||||
const { variant, children, ...rest } = props;
|
||||
const styles = useStyleConfig('MainPanel', { variant });
|
||||
return (
|
||||
<Box __css={styles} minH='100vh' {...rest}>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
export default MainPanel;
|
||||
12
src/components/Layout/PanelContainer.js
Normal file
12
src/components/Layout/PanelContainer.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Box, useStyleConfig } from "@chakra-ui/react";
|
||||
function PanelContainer(props) {
|
||||
const { variant, children, ...rest } = props;
|
||||
const styles = useStyleConfig("PanelContainer", { variant });
|
||||
return (
|
||||
<Box __css={styles} minH="100vh" {...rest}>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
export default PanelContainer;
|
||||
29
src/components/Layout/PanelContent.js
Normal file
29
src/components/Layout/PanelContent.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
|
||||
=========================================================
|
||||
* Argon Dashboard Chakra PRO - v1.0.0
|
||||
=========================================================
|
||||
|
||||
* Product Page: https://www.creative-tim.com/product/argon-dashboard-chakra-pro
|
||||
* Copyright 2022 Creative Tim (https://www.creative-tim.com/)
|
||||
|
||||
* Designed and Coded by Simmmple & Creative Tim
|
||||
|
||||
=========================================================
|
||||
|
||||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
*/
|
||||
|
||||
import { Box, useStyleConfig } from "@chakra-ui/react";
|
||||
function PanelContent(props) {
|
||||
const { variant, children, ...rest } = props;
|
||||
const styles = useStyleConfig("PanelContent", { variant });
|
||||
return (
|
||||
<Box __css={styles} minH="100vh" {...rest}>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
export default PanelContent;
|
||||
12
src/components/Layout/index.js
Normal file
12
src/components/Layout/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import Header from "../Header/index.js";
|
||||
import Footer from "../Footer/index.js";
|
||||
|
||||
const Layout = ({ hideFooter, children }) => (
|
||||
<div className="pt-[4.75rem] lg:pt-[5.25rem] overflow-hidden">
|
||||
<Header />
|
||||
{children}
|
||||
{hideFooter ? null : <Footer />}
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Layout;
|
||||
Reference in New Issue
Block a user