Skip to content

Commit 9ff1f21

Browse files
committed
added Footer
1 parent 6429dea commit 9ff1f21

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

src/components/Footer/Footer.jsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
import { withStyles } from 'material-ui/styles';
4+
5+
import styles from './styles';
6+
7+
class Footer extends React.PureComponent {
8+
static propTypes = {
9+
classes: PropTypes.shape({}).isRequired,
10+
children: PropTypes.element.isRequired,
11+
};
12+
13+
render() {
14+
const { classes, children } = this.props;
15+
return (
16+
<div className={classes.footer}>
17+
{children}
18+
</div>
19+
);
20+
}
21+
}
22+
23+
export default withStyles(styles)(Footer);

src/components/Footer/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Footer from './Footer';
2+
3+
export default Footer;

src/components/Footer/styles.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const styles = theme => ({
2+
footer: {
3+
backgroundColor: theme.palette.background.appBar,
4+
color: theme.palette.getContrastText(theme.palette.background.appBar),
5+
padding: '20px 10px',
6+
},
7+
message: {
8+
textAlign: 'center',
9+
marginBottom: '30px',
10+
},
11+
logoImage: {
12+
maxHeight: '50px',
13+
maxWidth: '300px',
14+
margin: '0',
15+
padding: '0',
16+
},
17+
});
18+
19+
export default styles;

0 commit comments

Comments
 (0)