Spaces:
Paused
Paused
File size: 764 Bytes
bd903ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
import React from "react";
import { Box, Flex } from "@chakra-ui/react";
import Header from "./Header";
import Sidebar from "./Sidebar";
const Layout = ({ children }) => (
<>
<Box bg={"#0f0f0f"}>
<Header />
<Flex>
<Box
display={{ base: "none", sm: "none", md: "block" }}
flexShrink={0}
width={"280px"}
>
<Box
position={"fixed"}
top={"10vh"}
left={"0"}
minWidth={"fit-content"}
>
<Sidebar />
</Box>
</Box>
<Box>
<Box minHeight={"90vh"} width={"100%"} margin={"auto"}>
{children}
</Box>
</Box>
</Flex>
</Box>
</>
);
export default Layout;
|