Skip to content
Snippets Groups Projects
Commit a7acc510 authored by esikkala's avatar esikkala
Browse files

Update front page layout

parent e71698b5
No related branches found
No related tags found
No related merge requests found
...@@ -13,14 +13,16 @@ import thumbImage from '../../img/thumb.png'; ...@@ -13,14 +13,16 @@ import thumbImage from '../../img/thumb.png';
const styles = theme => ({ const styles = theme => ({
root: { root: {
width: '100%' width: '100%',
height: '100%',
overflow: 'auto'
}, },
icon: { icon: {
marginRight: theme.spacing.unit * 2, marginRight: theme.spacing.unit * 2,
}, },
heroUnit: { // heroUnit: {
backgroundColor: 'rgb(238, 238, 238)' // backgroundColor: 'rgb(238, 238, 238)'
}, // },
heroContent: { heroContent: {
maxWidth: 1100, maxWidth: 1100,
paddingTop: theme.spacing.unit * 3, paddingTop: theme.spacing.unit * 3,
...@@ -37,7 +39,7 @@ const styles = theme => ({ ...@@ -37,7 +39,7 @@ const styles = theme => ({
}, },
}, },
card: { card: {
maxWidth: 340, //maxWidth: 340,
}, },
media: { media: {
height: 100, height: 100,
...@@ -58,7 +60,6 @@ let Main = props => { ...@@ -58,7 +60,6 @@ let Main = props => {
return ( return (
<div className={classes.root}> <div className={classes.root}>
{/* Hero unit */}
<div className={classes.layout}> <div className={classes.layout}>
<div className={classes.heroContent}> <div className={classes.heroContent}>
<Typography component="h1" variant="h3" align="center" color="textPrimary" gutterBottom> <Typography component="h1" variant="h3" align="center" color="textPrimary" gutterBottom>
...@@ -72,10 +73,9 @@ let Main = props => { ...@@ -72,10 +73,9 @@ let Main = props => {
</div> </div>
</div> </div>
<div className={classNames(classes.layout, classes.cardGrid)}> <div className={classNames(classes.layout, classes.cardGrid)}>
{/* End hero unit */}
<Grid container spacing={40}> <Grid container spacing={40}>
<Grid item sm={6} md={4} lg={4}> <Grid item xs={12} sm={6} md={4}>
<Card className={classes.card}> <Card className={classes.card}>
<CardActionArea component={ManuscriptsLink}> <CardActionArea component={ManuscriptsLink}>
<CardMedia <CardMedia
...@@ -95,7 +95,7 @@ let Main = props => { ...@@ -95,7 +95,7 @@ let Main = props => {
</Card> </Card>
</Grid> </Grid>
<Grid item sm={6} md={4} lg={4}> <Grid item xs={12} sm={6} md={4}>
<Card className={classes.card}> <Card className={classes.card}>
<CardActionArea component={WorksLink}> <CardActionArea component={WorksLink}>
<CardMedia <CardMedia
...@@ -115,7 +115,7 @@ let Main = props => { ...@@ -115,7 +115,7 @@ let Main = props => {
</Card> </Card>
</Grid> </Grid>
<Grid item sm={6} md={4} lg={4}> <Grid item xs={12} sm={6} md={4}>
<Card className={classes.card}> <Card className={classes.card}>
<CardActionArea disabled> <CardActionArea disabled>
<CardMedia <CardMedia
...@@ -135,7 +135,7 @@ let Main = props => { ...@@ -135,7 +135,7 @@ let Main = props => {
</Card> </Card>
</Grid> </Grid>
<Grid item sm={6} md={4} lg={4}> <Grid item xs={12} sm={6} md={4}>
<Card className={classes.card}> <Card className={classes.card}>
<CardActionArea component={PeopleLink}> <CardActionArea component={PeopleLink}>
<CardMedia <CardMedia
...@@ -155,7 +155,7 @@ let Main = props => { ...@@ -155,7 +155,7 @@ let Main = props => {
</Card> </Card>
</Grid> </Grid>
<Grid item sm={6} md={4} lg={4}> <Grid item xs={12} sm={6} md={4}>
<Card className={classes.card}> <Card className={classes.card}>
<CardActionArea component={OrganizationsLink}> <CardActionArea component={OrganizationsLink}>
<CardMedia <CardMedia
...@@ -175,7 +175,7 @@ let Main = props => { ...@@ -175,7 +175,7 @@ let Main = props => {
</Card> </Card>
</Grid> </Grid>
<Grid item sm={6} md={4} lg={4}> <Grid item xs={12} sm={6} md={4}>
<Card className={classes.card}> <Card className={classes.card}>
<CardActionArea component={PlacesLink}> <CardActionArea component={PlacesLink}>
<CardMedia <CardMedia
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment