Skip to content

Commit

Permalink
πŸ’„ design(#108): νšŒμ›νƒˆν‡΄ λ°˜μ‘ν˜• μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
yyypearl committed Dec 6, 2024
1 parent dc6dee7 commit fde82c1
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 30 deletions.
114 changes: 90 additions & 24 deletions src/app/mypage/delete/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Dropdown from "@/components/common/Dropdown";
import Input from "@/components/common/Input";
import Loader, { LoaderContainer } from "@/components/common/Loader";
import NavigatorBar from "@/components/common/NavigatorBar";
import { theme } from "@/styles/theme";
import {
clearOnboarding,
clearTokens,
Expand Down Expand Up @@ -89,9 +90,9 @@ const DeleteAccount = () => {

return (
<Container>
<Wrapper>
<NavigatorBarWrapper>
<NavigatorBar title="νšŒμ› νƒˆν‡΄" cancel={false} />
</Wrapper>
</NavigatorBarWrapper>
<MainWrapper>
<MainTitle>정말 λ ˆν„°λ§μ„ νƒˆν‡΄ν•˜μ‹œκ² μ–΄μš”?</MainTitle>
<SubTitle>
Expand All @@ -113,13 +114,14 @@ const DeleteAccount = () => {
더 λ‚˜μ€ μ„œλΉ„μŠ€λ₯Ό μœ„ν•΄ μ˜κ²¬μ„ λ‚¨κ²¨μ£Όμ„Έμš”
<span>{textarea.length + " / 500"}</span>
</QuestionText>
<Input
inputType="boxTextArea"
value={textarea}
onChange={setTextarea}
//placeholder="BoxTexarea Input (height=150px)"
height="150px"
/>
<InputWrapper>
<Input
inputType="boxTextArea"
value={textarea}
onChange={setTextarea}
height="100%"
/>
</InputWrapper>
</QuestionWrapper>
<Check
checkType="box"
Expand All @@ -129,15 +131,15 @@ const DeleteAccount = () => {
onChange={handleBoxChange}
/>
</MainWrapper>
<Wrapper>
<ButtonWrapper>
<Button
buttonType="primary"
size="large"
text="νƒˆν‡΄ν•˜κΈ°"
disabled={!isAbled}
onClick={handleDeleteUser}
/>
</Wrapper>
</ButtonWrapper>
</Container>
);
};
Expand All @@ -163,8 +165,19 @@ const Container = styled.div`
min-height: 100%;
max-height: 100%;
justify-content: space-between;
color: white;
color: ${theme.colors.white};
background: ${(props) => props.theme.colors.bg};
position: relative;
`;

const NavigatorBarWrapper = styled.div`
display: flex;
width: 100%;
padding: 24px;
@media (max-height: 720px) {
padding: 24px 24px 0 24px;
}
`;

const MainWrapper = styled.div`
Expand All @@ -175,40 +188,55 @@ const MainWrapper = styled.div`
overflow-y: auto;
box-sizing: border-box;
&::-webkit-scrollbar {
width: 5px; /* Width of the scrollbar */
width: 5px;
}
&::-webkit-scrollbar-track {
background: ${(props: any) => props.theme.colors.gray800};
border-radius: 10px; /* Rounded corners */
border-radius: 10px;
}
&::-webkit-scrollbar-thumb {
background: ${(props: any) => props.theme.colors.gray600};
border-radius: 10px; /* Rounded corners */
border-radius: 10px;
}
`;

const Wrapper = styled.div`
display: flex;
width: 100%;
padding: 24px;
`;

const MainTitle = styled.div`
${(props: any) => props.theme.fonts.title01};
color: ${(props: any) => props.theme.colors.white};
padding: 9px 0;
@media (max-height: 720px) {
${theme.fonts.title02};
}
@media (max-height: 628px) {
${theme.fonts.body14};
}
@media (max-height: 628px) {
${theme.fonts.body14};
}
`;

const SubTitle = styled.div`
${(props: any) => props.theme.fonts.body08};
color: ${(props: any) => props.theme.colors.white};
margin-bottom: 35px;
//λ°˜μ‘ν˜•
@media (max-width: 375px) {
margin-bottom: 5px;
@media (max-height: 720px) {
margin-bottom: 18px;
}
@media (max-height: 700px) {
color: ${theme.colors.gray300};
${theme.fonts.body09};
}
@media (max-height: 628px) {
color: ${theme.colors.gray300};
${theme.fonts.body13};
}
`;

Expand All @@ -226,6 +254,11 @@ const QuestionText = styled.div`
${(props: any) => props.theme.fonts.caption03};
color: ${(props: any) => props.theme.colors.white};
}
@media (max-width: 330px) {
flex-direction: column;
align-items: flex-start;
}
`;

const QuestionWrapper = styled.div`
Expand All @@ -234,4 +267,37 @@ const QuestionWrapper = styled.div`
flex-direction: column;
gap: 12px;
padding: 20px 0;
@media (max-height: 700px) {
padding: 0 0 30px 0;
}
@media (max-height: 628px) {
padding: 0 0 20px 0;
}
`;

const InputWrapper = styled.div`
width: 100%;
height: 150px;
@media (max-height: 670px) {
height: 130px;
}
@media (max-height: 628px) {
height: 110px;
}
@media (max-height: 550px) {
height: 90px;
}
`;

const ButtonWrapper = styled.div`
width: 100%;
position: absolute;
padding: 0 20px;
bottom: 40px;
left: 0;
`;
8 changes: 4 additions & 4 deletions src/components/common/Check.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const CheckInput = styled.input<{ $checkType: checkType; $label: boolean }>`
display: flex;
@media (max-height: 628px) {
width: ${({ $checkType }) => ($checkType !== "large" ? "15px" : "25px")};
height: ${({ $checkType }) => ($checkType !== "large" ? "15px" : "25px")};
width: ${({ $checkType }) => ($checkType !== "large" ? "22px" : "25px")};
height: ${({ $checkType }) => ($checkType !== "large" ? "22px" : "25px")};
}
`;

Expand All @@ -108,8 +108,8 @@ const StyledImage = styled(Image)<{ $checkType: checkType }>`
z-index: 10;
@media (max-height: 628px) {
top: ${({ $checkType }) => ($checkType !== "large" ? "0px" : "3px")};
left: ${({ $checkType }) => ($checkType !== "large" ? "0px" : "3px")};
top: ${({ $checkType }) => ($checkType !== "large" ? "1px" : "3px")};
left: ${({ $checkType }) => ($checkType !== "large" ? "1px" : "3px")};
}
`;

Expand Down
5 changes: 3 additions & 2 deletions src/components/common/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const Input = (props: InputProps) => {
const isTextarea = inputType === "boxTextArea";

return (
<Container>
<Container $height={height || "auto"}>
{label && <Label>{label}</Label>}
{isTextarea ? (
<StyledTextarea
Expand Down Expand Up @@ -110,10 +110,11 @@ const Input = (props: InputProps) => {

export default Input;

const Container = styled.div`
const Container = styled.div<{ $height: string }>`
display: flex;
flex-direction: column;
gap: 12px;
height: ${({ $height }) => $height};
`;

const Label = styled.label`
Expand Down

0 comments on commit fde82c1

Please sign in to comment.