diff --git a/frontend/src/components/events/EventCard/index.js b/frontend/src/components/events/EventCard/index.js index 2fb41ac8a..617bef956 100644 --- a/frontend/src/components/events/EventCard/index.js +++ b/frontend/src/components/events/EventCard/index.js @@ -16,7 +16,10 @@ const useStyles = makeStyles(theme => ({ flex: 1, }, top: { - height: '148px', + height: '200px', + maxWidth: 'min(100%, 400px)', + aspectRatio: '16/9', + margin: '0 auto', position: 'relative', display: 'flex', justifyContent: 'flex-end', diff --git a/frontend/src/components/events/EventHeroImage/index.js b/frontend/src/components/events/EventHeroImage/index.js index aa5c06cd6..00174d338 100644 --- a/frontend/src/components/events/EventHeroImage/index.js +++ b/frontend/src/components/events/EventHeroImage/index.js @@ -2,7 +2,7 @@ import React from 'react' import { useDispatch } from 'react-redux' import { goBack } from 'connected-react-router' -import { Box } from '@material-ui/core' +import { Box, Grid } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos' @@ -12,22 +12,31 @@ import Container from 'components/generic/Container' const useStyles = makeStyles(theme => ({ wrapper: { + position: 'relative', + background: props => props.backgroundColor ?? undefined, + paddingTop: theme.spacing(2), + }, + imageContainer: { display: 'flex', - overflow: 'hidden', }, image: { zIndex: 1, top: 0, left: 0, - width: '100%', - height: '465px', objectFit: 'cover', + aspectRatio: '16/9', + maxHeight: 500, + borderRadius: 6, + margin: '0 auto', + boxShadow: '2px 7px 15px rgba(0, 0, 0, 0.12)', }, backButtonWrapper: { position: 'absolute', zIndex: 10, width: 'auto', paddingTop: theme.spacing(3), + top: 0, + left: 0, }, buttonInner: { color: 'black', @@ -67,20 +76,40 @@ const useStyles = makeStyles(theme => ({ }, })) -export default ({ event, title = '', subheading = '', onBack }) => { +export default ({ + event, + title = '', + subheading = '', + onBack, + backgroundColor, + alignRight, +}) => { const dispatch = useDispatch() - const classes = useStyles() + const classes = useStyles({ backgroundColor }) return ( - + + + {alignRight && } + + + + + + {/* { - dispatch(push('/'))} /> - + dispatch(push('/'))} + alignRight + backgroundColor={event.theme.headerBackgroundColor} + /> diff --git a/frontend/src/pages/_pricing/index.js b/frontend/src/pages/_pricing/index.js index ce54cff05..4a88b1b9b 100644 --- a/frontend/src/pages/_pricing/index.js +++ b/frontend/src/pages/_pricing/index.js @@ -38,7 +38,7 @@ export default () => { const { t } = useTranslation() const body1 = [ 'Event registration and organization through platform.', - 'For non - profit organizations.' + 'For non - profit organizations.', ] const body2 = [ 'Event registration and organization through platform',