-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #845 from adamkendis/FRONT-v2Layout
Super basic v2 starter
- Loading branch information
Showing
159 changed files
with
1,449 additions
and
828 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
*.json | ||
*.test.js* | ||
v1/* | ||
|
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
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,59 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import PropTypes from 'proptypes'; | ||
import { | ||
Container, | ||
Typography, | ||
} from '@material-ui/core'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import moment from 'moment'; | ||
|
||
// TODO: pull style constants into mui theme | ||
const useStyles = makeStyles({ | ||
footer: { | ||
position: 'absolute', | ||
bottom: 0, | ||
height: '40px', | ||
width: '100%', | ||
backgroundColor: '#2A404E', | ||
}, | ||
lastUpdated: { | ||
lineHeight: '40px', | ||
fontSize: '14px', | ||
}, | ||
}); | ||
|
||
// TODO: check with UI/UX re placement of social media, privacy policy links | ||
const Footer = ({ | ||
lastUpdated, | ||
}) => { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<footer className={classes.footer}> | ||
<Container maxWidth="xs"> | ||
{ lastUpdated && ( | ||
<Typography className={classes.lastUpdated}> | ||
Data Updated Through: | ||
| ||
{moment(lastUpdated).format('MMMM Do YYYY, h:mm:ss a')} | ||
</Typography> | ||
)} | ||
</Container> | ||
</footer> | ||
); | ||
}; | ||
|
||
const mapStateToProps = state => ({ | ||
lastUpdated: state.metadata.lastPulled, | ||
}); | ||
|
||
Footer.propTypes = { | ||
lastUpdated: PropTypes.string, | ||
}; | ||
|
||
Footer.defaultProps = { | ||
lastUpdated: undefined, | ||
}; | ||
|
||
export default connect(mapStateToProps, null)(Footer); |
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,47 @@ | ||
import React from 'react'; | ||
// import { NavLink } from 'react-router-dom'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import { | ||
AppBar, | ||
Button, | ||
Toolbar, | ||
Typography, | ||
} from '@material-ui/core'; | ||
|
||
const useStyles = makeStyles({ | ||
appBar: { | ||
height: '62px', | ||
backgroundColor: '#2A404E', | ||
}, | ||
button: { | ||
textTransform: 'none', | ||
}, | ||
title: { | ||
flexGrow: 1, | ||
fontFamily: 'Oswald, sans-serif', | ||
fontSize: '30px', | ||
fontWeight: 'bold', | ||
letterSpacing: '4px', | ||
}, | ||
}); | ||
|
||
// TODO: links/routing, mobile | ||
const Header = () => { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<AppBar position="static" className={classes.appBar}> | ||
<Toolbar> | ||
<Typography variant="h1" className={classes.title}> | ||
311DATA | ||
</Typography> | ||
<Button className={classes.button}>Explore 311 Data</Button> | ||
<Button className={classes.button}>About 311 Data</Button> | ||
<Button className={classes.button}>Contact Us</Button> | ||
<Button className={classes.button}>Help Center</Button> | ||
</Toolbar> | ||
</AppBar> | ||
); | ||
}; | ||
|
||
export default 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,7 @@ | ||
import React from 'react'; | ||
|
||
const Map = () => ( | ||
<div>Map goes here</div> | ||
); | ||
|
||
export default Map; |
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
Oops, something went wrong.