@@ -49,20 +49,24 @@ const Onboarding = () => {
4949 < ContentWrapper { ...handlers } >
5050 < ContentSlider style = { { transform : `translateX(${ xOffset } %)` } } >
5151 < Content active = { currentPage === 0 } >
52- < MainTitle > 채팅방 속 잠들어 있는 편지를 보관하세요</ MainTitle >
53- < SubTitle >
54- 소중한 사람에게 받은 메신저 편지를
55- < br /> 레터링에 모아둘 수 있어요
56- </ SubTitle >
52+ < Text >
53+ < MainTitle > 채팅방 속 잠들어 있는 편지를 보관하세요</ MainTitle >
54+ < SubTitle >
55+ 소중한 사람에게 받은 메신저 편지를
56+ < br /> 레터링에 모아둘 수 있어요
57+ </ SubTitle >
58+ </ Text >
5759 < ContentImage src = "/assets/onboarding/onboarding-pic2.png" />
5860 </ Content >
5961 < Content active = { currentPage === 1 } >
60- < MainTitle > 드래그하여 손쉽게 편지를 정리해봐요</ MainTitle >
61- < SubTitle >
62- 행성은 폴더의 역할과 같아요
63- < br />
64- 원하는 행성 안에 편지를 보관할 수 있어요
65- </ SubTitle >
62+ < Text >
63+ < MainTitle > 드래그하여 손쉽게 편지를 정리해봐요</ MainTitle >
64+ < SubTitle >
65+ 행성은 폴더의 역할과 같아요
66+ < br />
67+ 원하는 행성 안에 편지를 보관할 수 있어요
68+ </ SubTitle >
69+ </ Text >
6670 < ContentImage src = "/assets/gif/onboarding_final.gif" />
6771 </ Content >
6872 </ ContentSlider >
@@ -78,12 +82,14 @@ const Onboarding = () => {
7882 ) ) }
7983 </ LetterImageContainer >
8084 ) }
85+ </ MainContainer >
86+ < ButtonWrapper >
8187 < Button
8288 buttonType = "primary"
8389 text = { currentPage === 0 ? '다음' : '시작하기' }
8490 onClick = { handleBtnClick }
8591 />
86- </ MainContainer >
92+ </ ButtonWrapper >
8793 </ Container >
8894 ) ;
8995} ;
@@ -106,10 +112,10 @@ const Container = styled.div`
106112 display: flex;
107113 flex-direction: column;
108114 width: 100%;
109- min-width: 393px;
110115 height: 100%;
116+ min-height: 550px;
111117 justify-content: space-between;
112- color: white;
118+ color: ${ theme . colors . white } ;
113119 background-image: url('/assets/mypage/img_background.png');
114120 background-size: cover;
115121 background-position: center;
@@ -120,13 +126,14 @@ const Container = styled.div`
120126const MainContainer = styled . div `
121127 display: flex;
122128 flex-direction: column;
129+ width: 100%;
123130 height: 100%;
131+ min-height: 550px;
124132 align-items: center;
125133 justify-content: space-between;
126- padding: 24px;
134+ padding: 24px 24px 80px 24px ;
127135 overflow: hidden;
128136 box-sizing: border-box;
129- width: 100%;
130137 touch-action: none; /* 기본 스크롤 방지 */
131138 transition: transform 0.3s ease-in-out; /* 페이지 전환 애니메이션 */
132139` ;
@@ -148,26 +155,46 @@ const ContentSlider = styled.div`
148155
149156const Content = styled . div < { active : boolean } > `
150157 width: 100%;
151- min-height: 800px;
158+ height: 100vh;
159+ min-height: 550px;
152160 flex-shrink: 0;
153161 overflow: hidden;
154162 display: flex;
155163 flex-direction: column;
156164 align-items: center;
157- justify-content: center ;
165+ justify-content: flex-start ;
158166 overflow: hidden;
159167 position: relative;
160168` ;
161169
170+ const Text = styled . div `
171+ width: 100%;
172+ flex-direction: column;
173+ align-items: center;
174+ justify-content: center;
175+ padding-top: 100px;
176+
177+ @media (max-height: 850px) {
178+ padding-top: 80px;
179+ }
180+ @media (max-height: 800px) {
181+ padding-top: 60px;
182+ }
183+ @media (max-height: 700px) {
184+ padding-top: 30px;
185+ }
186+ @media (max-height: 628px) {
187+ padding-top: 10px;
188+ }
189+ @media (max-height: 580px) {
190+ padding-top: 0px;
191+ }
192+ ` ;
193+
162194const MainTitle = styled . div `
163- color: white;
195+ color: ${ theme . colors . white } ;
164196 text-align: center;
165- font-family: Pretendard;
166- font-size: 20px;
167- font-style: normal;
168- font-weight: 600;
169- line-height: 34px;
170- letter-spacing: -0.6px;
197+ ${ theme . fonts . title01 } ;
171198 box-sizing: border-box;
172199 padding-top: 31px;
173200 user-select: none;
@@ -196,18 +223,20 @@ const LetterImage = styled.img`
196223 aspect-ratio: 1; // 정사각형 비율 유지
197224 border-radius: 5px;
198225 object-fit: cover;
199- background-color: black;
200226` ;
201227
202228const ContentImage = styled . img `
203- width: 80%;
204- min-width: 280px;
205- min-height: 600px;
206- margin-top: 36px;
229+ max-width: 346px;
230+ max-height: 60vh;
231+ height: auto;
207232 align-items: center;
208233 border-radius: 12px;
209234 border: 4px solid ${ theme . colors . gray800 } ;
210235 object-fit: contain;
236+ position: absolute;
237+ bottom: 65px;
238+ left: 50%;
239+ transform: translateX(-50%);
211240
212241 //드래그방지
213242 -webkit-user-select: none;
@@ -230,3 +259,12 @@ const LoaderContainer = styled.div`
230259 align-items: center;
231260 justify-content: center;
232261` ;
262+
263+ const ButtonWrapper = styled . div `
264+ width: 100%;
265+ padding: 0 24px;
266+ position: absolute;
267+ bottom: 24px;
268+ left: 50%;
269+ transform: translateX(-50%);
270+ ` ;
0 commit comments