Skip to content

Commit 6737adb

Browse files
authored
Merge pull request #109 from oodd-team/feat/OD-158
[OD-158] 컬러시스템 구축 & Post, MyPost 합치기
2 parents 787c9ff + 12fe603 commit 6737adb

36 files changed

Lines changed: 341 additions & 303 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import AccountCancel from './pages/AccountCancel';
1414
import Verification from './pages/verification';
1515

1616
import Post from './pages/Post';
17-
import MyPost from './pages/MyPost';
1817
import PostUpload from './pages/PostUpload';
1918
import PostImageSelect from './pages/PostImageSelect';
2019
import PostInstaConnect from './pages/PostInstaConnect';
@@ -43,7 +42,6 @@ const protectedRoutes = [
4342
{ path: '/verification', element: <Verification /> },
4443

4544
{ path: '/post/:postId', element: <Post /> },
46-
{ path: '/my-post/:postId', element: <MyPost /> },
4745
{ path: '/upload', element: <PostUpload /> },
4846
{ path: '/image-select', element: <PostImageSelect /> },
4947
{ path: '/insta-connect', element: <PostInstaConnect /> },

src/assets/default/delete.svg

Lines changed: 3 additions & 3 deletions
Loading

src/assets/default/edit.svg

Lines changed: 10 additions & 10 deletions
Loading

src/assets/default/pin.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/BottomButton/styles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const ButtonWrapper = styled.div`
1616

1717
export const Button = styled.button<{ disabled: boolean }>`
1818
background: ${({ disabled, theme }) =>
19-
disabled ? 'linear-gradient(93deg, #FFC1D6 1.22%, #F8D4D4 99.73%)' : theme.colors.gradient};
19+
disabled ? 'linear-gradient(93deg, #FFC1D6 1.22%, #F8D4D4 99.73%)' : theme.colors.brand.gradient};
2020
border-radius: 0.625rem;
2121
font-size: 1rem;
2222
width: calc(100% - 2.5rem);

src/components/ClothingInfoItem/styles.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const ClothingInfoItemContainer = styled.li`
66
display: flex;
77
flex-direction: row;
88
align-items: center;
9-
border: 0.0625rem solid ${({ theme }) => theme.colors.pink2};
9+
border: 0.0625rem solid ${({ theme }) => theme.colors.brand.primaryLight};
1010
border-radius: 0.5rem;
1111
padding: 10px;
1212
min-width: 20.9375rem;
@@ -25,7 +25,6 @@ export const ClothingInfoLeft = styled.div`
2525
2626
.infoDetail {
2727
overflow: hidden;
28-
white-space: nowrap;
2928
text-overflow: ellipsis;
3029
width: 75%;
3130
display: flex;
@@ -40,7 +39,13 @@ export const ClothingInfoLeft = styled.div`
4039
.model {
4140
margin-right: auto;
4241
color: ${({ theme }) => theme.colors.black};
43-
//overflow-x: hidden;
42+
overflow: hidden;
43+
text-overflow: ellipsis;
44+
display: -webkit-box;
45+
-webkit-line-clamp: 2; /* 최대 2줄로 제한 */
46+
-webkit-box-orient: vertical;
47+
word-break: keep-all; /* 단어 단위로 줄바꿈 */
48+
overflow-wrap: break-word; /* 단어가 너무 길 경우 다음 줄로 넘김 */
4449
}
4550
`;
4651

src/components/Modal/styles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export const ModalContainer = styled.div<{ $isCloseButtonVisible: boolean }>`
2020
align-items: center;
2121
justify-content: center;
2222
text-align: center;
23-
gap: 1rem;
23+
gap: 1.5rem;
2424
width: 21.25rem;
2525
max-width: calc(100% - 2.5rem);
2626
max-height: 30%;
27-
padding: 1.25rem;
27+
padding: 2rem 1.5rem 1.5rem 1.5rem;
2828
${({ $isCloseButtonVisible }) => ($isCloseButtonVisible ? 'padding-top: 2.5rem' : '')};
2929
background-color: ${({ theme }) => theme.colors.white};
3030
border-radius: 0.625rem;

src/components/PostItem/style.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const Pin = styled.img`
6363
display: flex;
6464
position: absolute;
6565
top: 0.75rem;
66-
left: 1.25rem;
66+
left: 0.75rem;
6767
justify-content: center;
6868
align-items: center;
6969
`;

src/pages/AccountCancel/index.tsx

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { CancelContainer, SubTitle, Text, InfoBox, InfoItem, CheckboxWrapper } from './styles';
2+
import { CancelContainer, SubTitle, Text, InfoBox, InfoItem, CheckboxWrapper, CheckboxInput } from './styles';
33
import { StyledText } from '../../components/Text/StyledText';
44
import theme from '../../styles/theme';
55
import { OODDFrame } from '../../components/Frame/Frame';
@@ -74,18 +74,13 @@ const AccountCancel: React.FC = () => {
7474
<TopBar text="회원 탈퇴" LeftButtonSrc={back} onClickLeftButton={() => navigate(-1)} />
7575

7676
<SubTitle>
77-
<StyledText as="div" $textTheme={{ style: 'body1-medium', lineHeight: 2 }} color={theme.colors.black}>
77+
<StyledText as="div" $textTheme={{ style: 'headline2-medium', lineHeight: 2 }} color={theme.colors.black}>
7878
OOTD 탈퇴 전 확인하세요!
7979
</StyledText>
8080
</SubTitle>
8181
<Text as="div">
82-
<StyledText as="div" $textTheme={{ style: 'body2-light', lineHeight: 1 }} color={theme.colors.black}>
83-
탈퇴하시면 이용 중인 서비스가 폐쇄되며,
84-
</StyledText>
85-
</Text>
86-
<Text as="div">
87-
<StyledText as="div" $textTheme={{ style: 'body2-light', lineHeight: 1 }} color={theme.colors.black}>
88-
모든 데이터는 복구할 수 없습니다.
82+
<StyledText as="div" $textTheme={{ style: 'caption1-regular', lineHeight: 1 }} color={theme.colors.black}>
83+
{`탈퇴하시면 이용 중인 서비스가 폐쇄되며,\n모든 데이터는 복구할 수 없습니다.`}
8984
</StyledText>
9085
</Text>
9186
<InfoBox>
@@ -102,12 +97,7 @@ const AccountCancel: React.FC = () => {
10297
</InfoBox>
10398
<CheckboxWrapper as="div">
10499
<label style={{ display: 'flex', alignItems: 'center', cursor: 'pointer' }}>
105-
<input
106-
type="checkbox"
107-
checked={isChecked}
108-
onChange={handleCheckboxChange}
109-
style={{ marginRight: '8px' }} // 텍스트와 체크박스 간격 조절
110-
/>
100+
<CheckboxInput type="checkbox" checked={isChecked} onChange={handleCheckboxChange} />
111101
<StyledText as="span" $textTheme={{ style: 'body4-light', lineHeight: 1 }} color={theme.colors.gray3}>
112102
안내사항을 모두 확인하였으며, 이에 동의합니다.
113103
</StyledText>

src/pages/AccountCancel/styles.tsx

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const CancelContainer = styled.div`
88
margin: 0 auto;
99
width: 100%;
1010
flex-grow: 1; /* flexbox에서 공간을 채우도록 설정 */
11-
padding: 1.25rem; /* 20px */
1211
display: flex;
1312
flex-direction: column;
1413
`;
@@ -35,14 +34,14 @@ export const InfoBox = styled.div`
3534
background: #f5f5f5;
3635
padding: 70px; /* 20px */
3736
margin-top: 10px;
38-
border-radius: 10px;
37+
border-radius: 10px;
3938
margin: 10px 20px 1.25rem 20px; /* 10px 위 여백, 20px 좌우 여백, 20px 아래 여백 */
4039
`;
4140

4241
export const InfoItem = styled.p`
4342
font-size: 0.875rem; /* 14px */
4443
margin-bottom: 0.625rem; /* 10px */
45-
padding: 2px 10px;
44+
padding: 2px 10px;
4645
display: flex;
4746
justify-content: center;
4847
align-items: center;
@@ -53,13 +52,35 @@ export const InfoItem = styled.p`
5352
export const CheckboxWrapper = styled.div`
5453
display: flex;
5554
align-items: center;
56-
margin-bottom: 1.25rem;
57-
padding: 0rem 15px;
55+
margin-bottom: 1.25rem;
56+
padding: 0rem 15px;
5857
5958
input[type='checkbox'] {
6059
margin-right: 0.625rem; /* 10px */
61-
border-radius: 50%;
60+
}
61+
`;
6262

63+
export const CheckboxInput = styled.input`
64+
margin-right: 0.625rem;
65+
cursor: pointer;
66+
appearance: none; /* 기본 스타일 제거 */
67+
width: 1.25rem;
68+
height: 1.25rem;
69+
border: 0.125rem solid #e0e0e0;
70+
border-radius: 0.25rem;
71+
position: relative;
72+
&:checked {
73+
background-color: #ffbbda;
74+
border-color: #ff2389;
75+
}
76+
&:checked::after {
77+
content: '✓';
78+
color: white;
79+
font-size: 0.875rem;
80+
position: absolute;
81+
top: 50%;
82+
left: 50%;
83+
transform: translate(-50%, -50%); /* 정확히 중앙으로 배치 */
6384
}
6485
`;
6586

0 commit comments

Comments
 (0)