diff --git a/src/components/card-grid.jsx b/src/components/card-grid.jsx index 5a21fa49..0eeca689 100644 --- a/src/components/card-grid.jsx +++ b/src/components/card-grid.jsx @@ -2,13 +2,14 @@ import React from 'react'; import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; +import CardActionArea from '@material-ui/core/CardActionArea'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui/core/CardMedia'; import Typography from '@material-ui/core/Typography'; -import infos from '../data/dungeon-info.json'; import Grid from '@material-ui/core/Grid'; -import { homeStyles } from '../utils/styles'; import ArrowForwardIcon from '@material-ui/icons/ArrowForward'; +import infos from '../data/dungeon-info.json'; +import { homeStyles } from '../utils/styles'; export default function CardGrid(props) { const classes = homeStyles(); @@ -25,25 +26,30 @@ export default function CardGrid(props) { : `${process.env.GATSBY_BASE_IMAGE_URL}${info.image}`; return info ? ( - - - - - - {info.display} - - {post.excerpt} - - - - - + + + + + + + {info.display} + + {post.excerpt} + + + + + + ) : null; } diff --git a/src/components/hide-appbar.jsx b/src/components/hide-appbar.jsx index e4b6f210..1d3221e5 100644 --- a/src/components/hide-appbar.jsx +++ b/src/components/hide-appbar.jsx @@ -44,4 +44,4 @@ export default function HideAppBar(props) { ); -} +} \ No newline at end of file diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 619b7047..43fa17ca 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -12,7 +12,6 @@ import { homeStyles } from '../utils/styles'; export default function Home({ data }) { const classes = homeStyles(); const posts = data.allMarkdownRemark.nodes; - return ( @@ -41,11 +40,11 @@ export default function Home({ data }) { - + {/* End hero unit */} - + {posts.map((post, index) => ( - + ))} diff --git a/src/utils/styles.js b/src/utils/styles.js index 5dd364ba..e61f3707 100644 --- a/src/utils/styles.js +++ b/src/utils/styles.js @@ -25,6 +25,7 @@ export const homeStyles = makeStyles((theme) => ({ }, cardContent: { flexGrow: 1, + textAlign: 'center', }, footer: { backgroundColor: theme.palette.background.paper,