diff --git a/src/components/HomePage/LookAround/MobileSwiper.tsx b/src/components/HomePage/LookAround/MobileSwiper.tsx index d67b862..c4648f8 100644 --- a/src/components/HomePage/LookAround/MobileSwiper.tsx +++ b/src/components/HomePage/LookAround/MobileSwiper.tsx @@ -54,14 +54,14 @@ const SlideContent = styled.div` justify-content: center; align-items: center; margin: 0; - max-width: 100vw; /* 이미지의 최대 너비를 슬라이드 너비의 80%로 설정 */ + max-width: 100vw; max-height: 100vw; `; const StyledImage = styled.img` width: auto; height: auto; - max-width: 80%; /* 이미지의 최대 너비를 슬라이드 너비의 80%로 설정 */ - max-height: 80%; /* 이미지의 최대 높이를 슬라이드 높이의 80%로 설정 */ + max-width: 80%; + max-height: 80%; object-fit: contain; `; diff --git a/src/components/HomePage/TestersBox/AskList.tsx b/src/components/HomePage/TestersBox/AskList.tsx index 7e074bc..f5df768 100644 --- a/src/components/HomePage/TestersBox/AskList.tsx +++ b/src/components/HomePage/TestersBox/AskList.tsx @@ -77,6 +77,7 @@ const AskListWrapper = styled.div` padding-top: 46px; padding-bottom: 86px; gap: 10px; + flex-wrap: wrap; @media (max-width: ${breakpoints.md}) { width: 100%; diff --git a/src/components/HomePage/TestersBox/index.tsx b/src/components/HomePage/TestersBox/index.tsx index c78a1f2..2fb1813 100644 --- a/src/components/HomePage/TestersBox/index.tsx +++ b/src/components/HomePage/TestersBox/index.tsx @@ -120,7 +120,9 @@ const Wrapper = styled.div` width: 500px; margin: 0px; padding: 0px; + font-size: 8px; } + max-width: 90vw; `; const LogoWrapper = styled.div` diff --git a/src/pages/Mail/index.tsx b/src/pages/Mail/index.tsx index e1256b6..4f6266f 100644 --- a/src/pages/Mail/index.tsx +++ b/src/pages/Mail/index.tsx @@ -19,12 +19,15 @@ import { useMail } from '@/Provider/MailContext'; import { MailModal } from '@/components/Mail/MailModal'; import { breakpoints } from '@/styles/variants'; import { useLocation } from 'react-router-dom'; +import { useMediaQuery } from 'react-responsive'; +import { MobileSwiper } from '@/components/Mail/MobileSwiper'; export const MailPage = () => { const { isOpen, onOpen, onClose } = useDisclosure(); const [isAlertOpen, setAlertOpen] = useState(true); const mailContext = useMail(); const { isActive } = useMail(); + const isMobile = useMediaQuery({ query: `(max-width : ${breakpoints.md})` }); const location = useLocation(); @@ -90,21 +93,17 @@ export const MailPage = () => { maxWidth="1200px" margin="0 auto" > - + - + {isMobile ? : } @@ -186,4 +185,13 @@ const MedeaItems = styled(Grid)` } `; -const ImageWrapper = styled.img``; +const ImageWrapper = styled.img` + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; + overflow: hidden; + @media (max-width: ${breakpoints.md}) { + width: 90%; + } +`;