diff --git a/src/components/animated/AnimatedAboutUsItem.tsx b/src/components/animated/AnimatedAboutUsItem.tsx index 5cefa1c7..68a2fba3 100644 --- a/src/components/animated/AnimatedAboutUsItem.tsx +++ b/src/components/animated/AnimatedAboutUsItem.tsx @@ -1,5 +1,5 @@ import React, {FunctionComponent, useContext} from 'react' -import {Card, Grid, ThemeProvider, Typography} from '@mui/material' +import {Card, Grid, ThemeProvider, Typography, useMediaQuery} from '@mui/material' import {v4 as uuidv4} from 'uuid' import {AnimatedServiceItemNoRefType} from "../BlockContentTypes"; import ImageWIthButtonOverlay from "../image-with-button-overlay/ImageWithButtonOverlay"; @@ -16,6 +16,7 @@ interface IProps { showAmenities?: boolean } + const AnimatedAboutUsItem: FunctionComponent = (props: IProps) => { const customizedTheme = useContext(CustomizedThemeContext) const controls = useAnimationControls() @@ -34,6 +35,8 @@ const AnimatedAboutUsItem: FunctionComponent = (props: IProps) => { textColorControls.start({color: customizedTheme.customizedTheme.palette.text.primary}) } + const smDown = useMediaQuery(customizedTheme.customizedTheme.breakpoints.down('sm')) + return ( { @@ -41,76 +44,73 @@ const AnimatedAboutUsItem: FunctionComponent = (props: IProps) => { }} onHoverEnd={async () => { animateServiceNoHover() }}> - - - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + - - - - {props.service.contentTitle} - - - - {props.service.contentText} - + + + + + {props.service.contentTitle} + + + + {props.service.contentText} - + ) diff --git a/src/components/animated/AnimatedAboutUsSection.tsx b/src/components/animated/AnimatedAboutUsSection.tsx index 764eac9c..fd5b89aa 100644 --- a/src/components/animated/AnimatedAboutUsSection.tsx +++ b/src/components/animated/AnimatedAboutUsSection.tsx @@ -34,7 +34,7 @@ const AnimatedAboutUsSection: FunctionComponent = (props) => { {props.sectionData.servicesList?.map((service: AnimatedServiceItemNoRefType, index: number) => { - return + return })} = (props) => {