Layout.js 661 B

12345678910111213141516171819202122232425262728293031
  1. import { BackTop, Layout as _Layout } from "tiny-ui";
  2. import { Menu } from ".";
  3. const { Header, Footer, Content } = _Layout;
  4. const layoutStyle = {
  5. marginBottom: "2rem",
  6. };
  7. const headerStyle = {};
  8. const contentStyle = {
  9. minHeight: "200px",
  10. lineHeight: "1rem",
  11. };
  12. const footerStyle = {};
  13. const Layout = ({ page, children, ...rest }) => {
  14. return (
  15. <_Layout style={layoutStyle}>
  16. <Header style={headerStyle}>
  17. <Menu page={page} />
  18. </Header>
  19. <Content style={contentStyle}>{children}</Content>
  20. <Footer style={footerStyle}></Footer>
  21. <BackTop visibilityHeight={100} />
  22. </_Layout>
  23. );
  24. };
  25. export default Layout;