From 13e164423c4d379c80667143dae8fa9218582375 Mon Sep 17 00:00:00 2001 From: "Mr. Singleton" Date: Tue, 21 Nov 2023 11:22:58 -0500 Subject: [PATCH] fix for about us sizing --- .../animated/AnimatedAboutUsItem.tsx | 130 +++++++++--------- .../animated/AnimatedAboutUsSection.tsx | 5 +- 2 files changed, 66 insertions(+), 69 deletions(-) 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) => {