This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-21 08:30:39 +00:00
|
|
|
import * as React from "react";
|
|
|
|
import styled from "styled-components";
|
2022-02-23 10:19:09 +00:00
|
|
|
|
2022-02-21 08:30:39 +00:00
|
|
|
import { PageContainer } from "../components/PageContainer";
|
2022-02-23 10:19:09 +00:00
|
|
|
import { NavBar } from "../components/Navbar";
|
2022-02-21 08:30:39 +00:00
|
|
|
import { Footer } from "../components/Footer";
|
|
|
|
|
|
|
|
const Layout = styled.div.attrs({
|
2022-02-23 10:19:09 +00:00
|
|
|
className: "min-h-screen overflow-hidden",
|
2022-02-21 08:30:39 +00:00
|
|
|
})`
|
|
|
|
background-image: url(/images/dashboard-bg.svg);
|
2022-02-23 10:19:09 +00:00
|
|
|
background-position: center -280px;
|
|
|
|
background-repeat: no-repeat;
|
2022-02-21 08:30:39 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const DashboardLayout = ({ children }) => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Layout>
|
2022-02-23 10:19:09 +00:00
|
|
|
<NavBar />
|
2022-02-21 08:30:39 +00:00
|
|
|
<PageContainer>
|
|
|
|
<main className="mt-14">{children}</main>
|
|
|
|
</PageContainer>
|
|
|
|
<Footer />
|
|
|
|
</Layout>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DashboardLayout;
|