Layout.js 833 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. position: "sticky",
  9. top: "0"
  10. };
  11. const contentStyle = {
  12. minHeight: "200px",
  13. lineHeight: "1rem"
  14. };
  15. const footerStyle = {
  16. textAlign: "right",
  17. fontSize: ".8rem",
  18. color: "rgba(255,255,255,0.75)"
  19. };
  20. const Layout = ({ page, children, ...rest }) => {
  21. return (
  22. <_Layout style={layoutStyle}>
  23. <Header style={headerStyle}>
  24. <Menu page={page} />
  25. </Header>
  26. <Content style={contentStyle}>{children}</Content>
  27. <Footer style={footerStyle}>
  28. &copy;2023 Hendrickson Hawk Band - Power Line
  29. </Footer>
  30. <BackTop visibilityHeight={100} />
  31. </_Layout>
  32. );
  33. };
  34. export default Layout;