Skip to content

Commit

Permalink
Merge pull request #111 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
design: swiper 크기 수정
  • Loading branch information
seung365 authored Aug 20, 2024
2 parents b032941 + a68901b commit bd541e6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/components/HomePage/LookAround/MobileSwiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ export const MobileSwiper = () => {
>
<SwiperSlide>
<SlideContent>
<img src="/images/composition1.svg" alt="살펴보기 이미지 1" />
<StyledImage src="/images/composition1.svg" alt="살펴보기 이미지 1" />
</SlideContent>
</SwiperSlide>
<SwiperSlide>
<SlideContent>
<img src="/images/composition2.svg" alt="살펴보기 이미지 2" />
<StyledImage src="/images/composition2.svg" alt="살펴보기 이미지 2" />
</SlideContent>
</SwiperSlide>
<SwiperSlide>
<SlideContent>
<img src="/images/composition3.svg" alt="살펴보기 이미지 3" />
<StyledImage src="/images/composition3.svg" alt="살펴보기 이미지 3" />
</SlideContent>
</SwiperSlide>
</SwiperWrapper>
Expand All @@ -43,11 +43,17 @@ const SwiperWrapper = styled(Swiper)`
`;

const SlideContent = styled.div`
text-align: center;
font-size: 18px;
/* Center slide text vertically */
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
`;

const StyledImage = styled.img`
width: auto;
height: auto;
max-width: 80%; /* 이미지의 최대 너비를 슬라이드 너비의 80%로 설정 */
max-height: 80%; /* 이미지의 최대 높이를 슬라이드 높이의 80%로 설정 */
object-fit: contain;
`;

0 comments on commit bd541e6

Please sign in to comment.