diff --git a/src/App.css b/src/App.css index d6e66c01..1d17d1c4 100644 --- a/src/App.css +++ b/src/App.css @@ -66,3 +66,25 @@ code { height: 16px; margin-right: 10px; } + +#navigation { + display: flex; + flex-direction: row; + justify-content: space-between; + margin-left: 10em; + margin-right: 10em; + margin-top: 3em; +} + +#main-header { + font-size: 3em; +} + +#post-container { + display: flex; + justify-content: center; +} + +.single-view-header { + text-align: center; +} diff --git a/src/components/Drawer.js b/src/components/Drawer.js index 23eca6c9..2fb10640 100644 --- a/src/components/Drawer.js +++ b/src/components/Drawer.js @@ -4,6 +4,14 @@ import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom' +const styles = { + button: { + width: "7em", + height: "3em", + }, +}; + + export default class DrawerNav extends React.Component { constructor(props) { @@ -19,6 +27,8 @@ export default class DrawerNav extends React.Component { return (
diff --git a/src/components/Explore.js b/src/components/Explore.js index d74f9e01..d17f7523 100644 --- a/src/components/Explore.js +++ b/src/components/Explore.js @@ -19,20 +19,19 @@ class Explore extends Component { render(){ return(
-

Explore

- {this.props.posts.length > 0 && - this.props.posts.map(post => -
- -
-
- )} +

Explore

+ {this.props.posts.length > 0 && + this.props.posts.map(post => +
+ +
+ )}
) } diff --git a/src/components/LikePhoto.js b/src/components/LikePhoto.js index 3d6e7f9f..66833755 100644 --- a/src/components/LikePhoto.js +++ b/src/components/LikePhoto.js @@ -11,7 +11,7 @@ class LikePhoto extends Component { render(){ return(
- this.props.like(e, this.props.postUrl, this.props.postAddress, this.props.contract.likePost, this.props.accounts[0])}/> + this.props.like(e, this.props.postUrl, this.props.postAddress, this.props.contract.likePost, this.props.accounts[0])}/>
) } diff --git a/src/components/Post.js b/src/components/Post.js index 6ff403df..34bef59a 100644 --- a/src/components/Post.js +++ b/src/components/Post.js @@ -3,31 +3,34 @@ import {Card, CardActions, CardHeader, CardMedia, CardTitle } from 'material-ui/ import LikePhoto from './LikePhoto'; const cardStyle = { - width: '30vw' + width: '40vw' } const Post = props => ( - - - } - > - - - {!props.isPreview && -
- - - - -
- } -
+
+ + + } + > + + + {!props.isPreview && +
+ + + + +
+ } +
+

+
) export default Post; diff --git a/src/components/Routes.js b/src/components/Routes.js index 8e9f620c..226245a6 100644 --- a/src/components/Routes.js +++ b/src/components/Routes.js @@ -9,6 +9,13 @@ import CreatePost from './CreatePost'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom'; +const styles = { + button: { + width: "7em", + height: "3em", + }, +}; + export default class Routes extends Component { componentDidMount () {} @@ -17,8 +24,14 @@ export default class Routes extends Component {
- - +