Skip to content

Commit fde82c1

Browse files
committed
πŸ’„ design(#108): νšŒμ›νƒˆν‡΄ λ°˜μ‘ν˜• μˆ˜μ •
1 parent dc6dee7 commit fde82c1

File tree

3 files changed

+97
-30
lines changed

3 files changed

+97
-30
lines changed

β€Žsrc/app/mypage/delete/page.tsxβ€Ž

Lines changed: 90 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Dropdown from "@/components/common/Dropdown";
77
import Input from "@/components/common/Input";
88
import Loader, { LoaderContainer } from "@/components/common/Loader";
99
import NavigatorBar from "@/components/common/NavigatorBar";
10+
import { theme } from "@/styles/theme";
1011
import {
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

170183
const 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-
198205
const 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

204223
const 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

231264
const 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
`;

β€Žsrc/components/common/Check.tsxβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ const CheckInput = styled.input<{ $checkType: checkType; $label: boolean }>`
9595
display: flex;
9696
9797
@media (max-height: 628px) {
98-
width: ${({ $checkType }) => ($checkType !== "large" ? "15px" : "25px")};
99-
height: ${({ $checkType }) => ($checkType !== "large" ? "15px" : "25px")};
98+
width: ${({ $checkType }) => ($checkType !== "large" ? "22px" : "25px")};
99+
height: ${({ $checkType }) => ($checkType !== "large" ? "22px" : "25px")};
100100
}
101101
`;
102102

@@ -108,8 +108,8 @@ const StyledImage = styled(Image)<{ $checkType: checkType }>`
108108
z-index: 10;
109109
110110
@media (max-height: 628px) {
111-
top: ${({ $checkType }) => ($checkType !== "large" ? "0px" : "3px")};
112-
left: ${({ $checkType }) => ($checkType !== "large" ? "0px" : "3px")};
111+
top: ${({ $checkType }) => ($checkType !== "large" ? "1px" : "3px")};
112+
left: ${({ $checkType }) => ($checkType !== "large" ? "1px" : "3px")};
113113
}
114114
`;
115115

β€Žsrc/components/common/Input.tsxβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Input = (props: InputProps) => {
7272
const isTextarea = inputType === "boxTextArea";
7373

7474
return (
75-
<Container>
75+
<Container $height={height || "auto"}>
7676
{label && <Label>{label}</Label>}
7777
{isTextarea ? (
7878
<StyledTextarea
@@ -110,10 +110,11 @@ const Input = (props: InputProps) => {
110110

111111
export default Input;
112112

113-
const Container = styled.div`
113+
const Container = styled.div<{ $height: string }>`
114114
display: flex;
115115
flex-direction: column;
116116
gap: 12px;
117+
height: ${({ $height }) => $height};
117118
`;
118119

119120
const Label = styled.label`

0 commit comments

Comments
Β (0)