-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+Material UI, +Material Icons, +Header, +Colors
- Loading branch information
Showing
7 changed files
with
365 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { white, blueGrey } from 'material-ui/styles/colors'; | ||
|
||
const colors = { | ||
white, | ||
lightestblueGrey: blueGrey[50], | ||
}; | ||
|
||
export default colors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { withStyles, createStyleSheet } from 'material-ui/styles'; | ||
import AppBar from 'material-ui/AppBar'; | ||
import Toolbar from 'material-ui/Toolbar'; | ||
import Typography from 'material-ui/Typography'; | ||
import Button from 'material-ui/Button'; | ||
import IconButton from 'material-ui/IconButton'; | ||
import AvTimer from 'material-ui-icons/AvTimer'; | ||
import Settings from 'material-ui-icons/Settings'; | ||
import colors from './../colors'; | ||
|
||
const styleSheet = createStyleSheet('Header', { | ||
root: { | ||
width: '100%', | ||
}, | ||
bar: { | ||
height: 70, | ||
}, | ||
title: { | ||
flex: 1, | ||
paddingTop: 14, | ||
fontSize: 36, | ||
fontWeight: 400, | ||
letterSpacing: 1.4, | ||
}, | ||
settings: { | ||
paddingTop: 3, | ||
fontSize: 20, | ||
color: colors.lightestblueGrey, | ||
textTransform: 'capitalize', | ||
}, | ||
}); | ||
|
||
function Header(props) { | ||
const classes = props.classes; | ||
return ( | ||
<div className={classes.root}> | ||
<AppBar position="static"> | ||
<Toolbar className={classes.bar}> | ||
<IconButton color="contrast" aria-label="Menu"> | ||
<AvTimer color={colors.lightestblueGrey} /> | ||
</IconButton> | ||
<Typography | ||
color="inherit" | ||
className={classes.title} | ||
gutterBottom | ||
align="center" | ||
> | ||
Time Table Generator | ||
</Typography> | ||
<Button> | ||
<Settings color={colors.lightestblueGrey} /> | ||
<Typography | ||
color="reds" | ||
type="caption" | ||
className={classes.settings} | ||
> | ||
Settings | ||
</Typography> | ||
</Button> | ||
</Toolbar> | ||
</AppBar> | ||
</div> | ||
); | ||
} | ||
|
||
Header.propTypes = { | ||
classes: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default withStyles(styleSheet)(Header); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React, { Component } from 'react'; | ||
import Header from '../../components/header/Header'; | ||
|
||
class Home extends Component { | ||
render() { | ||
return <Header />; | ||
} | ||
} | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.