Skip to content

Commit

Permalink
Merge pull request #394 from PerficientDave/bug/hero-letter-image-mobile
Browse files Browse the repository at this point in the history
Removing the image from the letter hero on mobile
  • Loading branch information
lovesitecore authored Mar 8, 2024
2 parents 243e958 + 922f51d commit e7fc6d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export const HeroJustificationLetter = (props: HeroProps): JSX.Element => {
direction={{ base: 'column', md: 'row' }}
justifyContent="center"
color="white"
p={5}
w="100vw"
maxH="400px"
mt={24}
Expand All @@ -145,7 +146,7 @@ export const HeroJustificationLetter = (props: HeroProps): JSX.Element => {
{/* Content box that should take the left half of the screen */}
<Box
mb={14}
w={{ base: '50vw' }} // Take full width on base, and half viewport width on md and up
w={{ base: 'full', md: '50vw' }}
maxWidth="620px" // Max width is 620px
zIndex={2}
mr={10}
Expand All @@ -167,6 +168,7 @@ export const HeroJustificationLetter = (props: HeroProps): JSX.Element => {
)}
</Box>
<Box
display={{ base: 'none', md: 'block' }}
w={{ base: '50vw' }} // Take full width on base, and half viewport width on md and up
maxWidth="620px" // Max width is 620px
>
Expand All @@ -186,6 +188,7 @@ export const HeroJustificationLetter = (props: HeroProps): JSX.Element => {
backgroundPosition="right bottom"
backgroundRepeat="no-repeat"
zIndex={0}
display={{ base: 'none', md: 'block' }}
/>
</Flex>
);
Expand Down

0 comments on commit e7fc6d0

Please sign in to comment.