Skip to content

Commit ae10060

Browse files
authored
feat: 랜딩페이지 320 유연화 (#345)
1 parent a6209e5 commit ae10060

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

src/components/landing/CardsContent.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464
@include r.media-small-mobile {
6565
padding: 15px 24px;
66-
width: 280px;
66+
width: 87.5%; // 280px
6767
height: 159px;
6868
}
6969
}
@@ -167,7 +167,7 @@
167167
width: 440px;
168168
}
169169
@include r.media-small-mobile {
170-
width: 280px;
170+
width: 87.5%; // 280px
171171
height: 50px;
172172
}
173173
}

src/components/landing/CardsContent.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,11 @@ const CardsContent: React.FC<CardsContentProps> = ({
9292

9393
return isOpened ? (
9494
<div
95-
className=" cards-wrap d-flex"
95+
className="cards-wrap flex justify-center"
9696
onMouseEnter={onMouseEnter}
9797
onMouseLeave={onMouseLeave}
9898
>
99-
<div
100-
id="opened"
101-
className=" cards-content f-dir-column j-content-between"
102-
>
99+
<div id="opened" className="cards-content f-dir-column j-content-between">
103100
{/* 배경 이미지용 div */}
104101
<div
105102
className={`background-image ${showPhoto ? "visible" : ""}`}
@@ -172,7 +169,7 @@ const CardsContent: React.FC<CardsContentProps> = ({
172169
</div>
173170
) : (
174171
<div
175-
className="cards-wrap d-flex"
172+
className="cards-wrap flex justify-center"
176173
onClick={onClick}
177174
onMouseEnter={onMouseEnter}
178175
onMouseLeave={onMouseLeave}

src/components/landing/Page3Cards.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@
6363
}
6464
@include r.media-small-mobile {
6565
gap: 20px;
66+
67+
width: 100vw;
6668
}
6769
}

src/pages/MainVer2Page2.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
justify-self: center;
3838
gap: 25px;
3939
}
40+
@include r.media-small-mobile {
41+
display: flex;
42+
flex-direction: column;
43+
justify-content: center;
44+
align-items: center;
45+
width: 100vw;
46+
}
4047
}
4148

4249
.main-ver2 .page2 .page2-content {
@@ -58,7 +65,7 @@
5865
height: 231px;
5966
}
6067
@include r.media-small-mobile {
61-
width: 280px;
68+
width: 87.5%; // 280px
6269
height: 160px;
6370
}
6471
& {

0 commit comments

Comments
 (0)