@@ -7,6 +7,7 @@ import Dropdown from "@/components/common/Dropdown";
77import Input from "@/components/common/Input" ;
88import Loader , { LoaderContainer } from "@/components/common/Loader" ;
99import NavigatorBar from "@/components/common/NavigatorBar" ;
10+ import { theme } from "@/styles/theme" ;
1011import {
1112 clearOnboarding ,
1213 clearTokens ,
@@ -89,9 +90,9 @@ const DeleteAccount = () => {
8990
9091 return (
9192 < Container >
92- < Wrapper >
93+ < NavigatorBarWrapper >
9394 < NavigatorBar title = "νμ νν΄" cancel = { false } />
94- </ Wrapper >
95+ </ NavigatorBarWrapper >
9596 < MainWrapper >
9697 < MainTitle > μ λ§ λ ν°λ§μ νν΄νμκ² μ΄μ?</ MainTitle >
9798 < SubTitle >
@@ -113,13 +114,14 @@ const DeleteAccount = () => {
113114 λ λμ μλΉμ€λ₯Ό μν΄ μ견μ λ¨κ²¨μ£ΌμΈμ
114115 < span > { textarea . length + " / 500" } </ span >
115116 </ QuestionText >
116- < Input
117- inputType = "boxTextArea"
118- value = { textarea }
119- onChange = { setTextarea }
120- //placeholder="BoxTexarea Input (height=150px)"
121- height = "150px"
122- />
117+ < InputWrapper >
118+ < Input
119+ inputType = "boxTextArea"
120+ value = { textarea }
121+ onChange = { setTextarea }
122+ height = "100%"
123+ />
124+ </ InputWrapper >
123125 </ QuestionWrapper >
124126 < Check
125127 checkType = "box"
@@ -129,15 +131,15 @@ const DeleteAccount = () => {
129131 onChange = { handleBoxChange }
130132 />
131133 </ MainWrapper >
132- < Wrapper >
134+ < ButtonWrapper >
133135 < Button
134136 buttonType = "primary"
135137 size = "large"
136138 text = "νν΄νκΈ°"
137139 disabled = { ! isAbled }
138140 onClick = { handleDeleteUser }
139141 />
140- </ Wrapper >
142+ </ ButtonWrapper >
141143 </ Container >
142144 ) ;
143145} ;
@@ -163,8 +165,19 @@ const Container = styled.div`
163165 min-height: 100%;
164166 max-height: 100%;
165167 justify-content: space-between;
166- color: white;
168+ color: ${ theme . colors . white } ;
167169 background: ${ ( props ) => props . theme . colors . bg } ;
170+ position: relative;
171+ ` ;
172+
173+ const NavigatorBarWrapper = styled . div `
174+ display: flex;
175+ width: 100%;
176+ padding: 24px;
177+
178+ @media (max-height: 720px) {
179+ padding: 24px 24px 0 24px;
180+ }
168181` ;
169182
170183const MainWrapper = styled . div `
@@ -175,40 +188,55 @@ const MainWrapper = styled.div`
175188 overflow-y: auto;
176189 box-sizing: border-box;
177190 &::-webkit-scrollbar {
178- width: 5px; /* Width of the scrollbar */
191+ width: 5px;
179192 }
180193
181194 &::-webkit-scrollbar-track {
182195 background: ${ ( props : any ) => props . theme . colors . gray800 } ;
183- border-radius: 10px; /* Rounded corners */
196+ border-radius: 10px;
184197 }
185198
186199 &::-webkit-scrollbar-thumb {
187200 background: ${ ( props : any ) => props . theme . colors . gray600 } ;
188- border-radius: 10px; /* Rounded corners */
201+ border-radius: 10px;
189202 }
190203` ;
191204
192- const Wrapper = styled . div `
193- display: flex;
194- width: 100%;
195- padding: 24px;
196- ` ;
197-
198205const MainTitle = styled . div `
199206 ${ ( props : any ) => props . theme . fonts . title01 } ;
200207 color: ${ ( props : any ) => props . theme . colors . white } ;
201208 padding: 9px 0;
209+
210+ @media (max-height: 720px) {
211+ ${ theme . fonts . title02 } ;
212+ }
213+
214+ @media (max-height: 628px) {
215+ ${ theme . fonts . body14 } ;
216+ }
217+
218+ @media (max-height: 628px) {
219+ ${ theme . fonts . body14 } ;
220+ }
202221` ;
203222
204223const SubTitle = styled . div `
205224 ${ ( props : any ) => props . theme . fonts . body08 } ;
206225 color: ${ ( props : any ) => props . theme . colors . white } ;
207226 margin-bottom: 35px;
208227
209- //λ°μν
210- @media (max-width: 375px) {
211- margin-bottom: 5px;
228+ @media (max-height: 720px) {
229+ margin-bottom: 18px;
230+ }
231+
232+ @media (max-height: 700px) {
233+ color: ${ theme . colors . gray300 } ;
234+ ${ theme . fonts . body09 } ;
235+ }
236+
237+ @media (max-height: 628px) {
238+ color: ${ theme . colors . gray300 } ;
239+ ${ theme . fonts . body13 } ;
212240 }
213241` ;
214242
@@ -226,6 +254,11 @@ const QuestionText = styled.div`
226254 ${ ( props : any ) => props . theme . fonts . caption03 } ;
227255 color: ${ ( props : any ) => props . theme . colors . white } ;
228256 }
257+
258+ @media (max-width: 330px) {
259+ flex-direction: column;
260+ align-items: flex-start;
261+ }
229262` ;
230263
231264const QuestionWrapper = styled . div `
@@ -234,4 +267,37 @@ const QuestionWrapper = styled.div`
234267 flex-direction: column;
235268 gap: 12px;
236269 padding: 20px 0;
270+
271+ @media (max-height: 700px) {
272+ padding: 0 0 30px 0;
273+ }
274+
275+ @media (max-height: 628px) {
276+ padding: 0 0 20px 0;
277+ }
278+ ` ;
279+
280+ const InputWrapper = styled . div `
281+ width: 100%;
282+ height: 150px;
283+
284+ @media (max-height: 670px) {
285+ height: 130px;
286+ }
287+
288+ @media (max-height: 628px) {
289+ height: 110px;
290+ }
291+
292+ @media (max-height: 550px) {
293+ height: 90px;
294+ }
295+ ` ;
296+
297+ const ButtonWrapper = styled . div `
298+ width: 100%;
299+ position: absolute;
300+ padding: 0 20px;
301+ bottom: 40px;
302+ left: 0;
237303` ;
0 commit comments