Skip to content

Commit 14eb8f1

Browse files
authored
feat: 랜딩페이지 디자인 버그 수정 (#320)
* feat: MainVer2 버튼 두 겹씩, 각 메뉴별 글씨 위치 수정 * feat: MainVer2 텍스트 줄바꿈 방지 및 크기 px로 고정
1 parent 19aabc0 commit 14eb8f1

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

src/pages/MainVer2.jsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const MainVer2 = () => {
101101
<h1 className=" title">
102102
당신의 대본이
103103
<br />
104-
무대위에 오르기까지
104+
<span className="whitespace-nowrap">무대위에 오르기까지</span>
105105
</h1>
106106

107107
<h5 className=" sub-title whitespace-nowrap">
@@ -187,7 +187,13 @@ const MainVer2 = () => {
187187
? content2Texts()
188188
: content3Texts()}
189189

190-
<h1 className={page2TitleClassName}>
190+
<h1
191+
className={clsx(
192+
page2TitleClassName,
193+
!(isTablet || isMobile || isSmallMobile) &&
194+
"translate-x-[20px]"
195+
)}
196+
>
191197
{!(isTablet || isMobile || isSmallMobile)
192198
? content2Title()
193199
: content3Title()}
@@ -231,11 +237,14 @@ const MainVer2 = () => {
231237
? content3Texts()
232238
: content2Texts()}
233239

234-
<ImageBtn
235-
src={page2ButtonImg}
236-
alt="->"
237-
className="page2-button"
238-
/>
240+
{/* 아마 이미지 export할 때 버튼 포함/버튼 제외로 다르게 불러와진 것 같음. -> 다르게 처리 */}
241+
{(isTablet || isMobile || isSmallMobile) && (
242+
<ImageBtn
243+
src={page2ButtonImg}
244+
alt="->"
245+
className="page2-button"
246+
/>
247+
)}
239248
</div>
240249
</div>
241250
</div>

src/pages/MainVer2.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
.main-ver2 .page1 .title {
8787
padding-top: 138px;
8888

89-
font-size: 6.667vh; /* 72px */
89+
font-size: 72px;
9090
font-style: normal;
9191
font-weight: 700;
9292
line-height: 120%; /* 86.4px */

0 commit comments

Comments
 (0)