Skip to content
Snippets Groups Projects
Commit 47ba4253 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

fix footer position

parent 8b5f2cb6
No related branches found
No related tags found
4 merge requests!19fix type imports,!14Footer, Page layout fix and theme restructure,!13Styletweaks,!12WIP: footer
import { Box, makeStyles } from '@material-ui/core';
import React from 'react';
import styled from 'styled-components';
import Footer from '../components/Footer';
import Header from '../components/Header';
const Container = styled.div(
(props) => `
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: ${props.theme.palette.background.default};
`,
);
const MainContent = styled.div`
height: 100%;
`;
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
minHeight: '100vh',
background: theme.palette.background.default,
},
}));
const Page: React.FC = ({ children }) => {
const classes = useStyles();
return (
<Container>
<Box className={classes.root}>
<Header />
<MainContent>{children}</MainContent>
<Box flexGrow={1} flexShrink={0} flexBasis="auto">
{children}
</Box>
<Footer />
</Container>
</Box>
);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment