Skip to content

Commit 17b7f7e

Browse files
authored
Merge pull request #277 from DguFarmSystem/develop
release: 2025년 5월 개발분 통합 릴리즈
2 parents bb1345f + b7db3ea commit 17b7f7e

36 files changed

+925
-272
lines changed

apps/farminglog/src/components/Header/Header.styled.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export const ProfileContainer = styled.div<{ $isMobile: boolean }>`
183183
display: flex;
184184
flex-direction: row;
185185
align-items: center;
186+
cursor: pointer;
186187
187188
height: ${({ $isMobile }) => ($isMobile ? "50px" : "60px")};
188189
padding-right: ${({ $isMobile }) => ($isMobile ? "0px" : "20px")};

apps/farminglog/src/components/Popup/popup.styled.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export const HeaderPin = styled.div<ResponsiveProps>`
217217
flex-shrink: 0;
218218
aspect-ratio: 1/1;
219219
margin: 3px 6px 0px 6px;
220+
cursor: pointer;
220221
221222
border-radius: ${({ $isApp }) => ($isApp ? '6px' : '100px')};
222223
background: #FF9A4D;

apps/farminglog/src/components/Popup/popup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const MyPageLayout: React.FC<PopupProps> = ({
166166
alt="로그아웃"
167167
width={isMobile ? 20 : 40}
168168
height={isMobile ? 20 : 40}
169+
style={{ cursor: "pointer" }}
169170
/>
170171
</button>
171172
)}
@@ -230,8 +231,7 @@ const MessageLayout: React.FC<PopupProps> = ({
230231
};
231232

232233
/** 4) INFO 팝업 */
233-
const InfoLayout: React.FC<PopupProps> = ({
234-
}) => {
234+
const InfoLayout: React.FC<PopupProps> = () => {
235235
const { isMobile, isApp } = useMediaQueries();
236236

237237
return (

apps/farminglog/src/layouts/WhiteContentContainer.styled.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export const MainContainer = styled.div<ResponsiveProps>`
1616
flex-direction: column;
1717
justify-content: flex-start;
1818
align-items: center;
19+
20+
1921
`;
2022

2123
export const ContentContainer = styled.div<ResponsiveProps>`
@@ -31,6 +33,7 @@ export const ContentContainer = styled.div<ResponsiveProps>`
3133
3234
border-radius: 5px;
3335
background: var(--FarmSystem_White, #FCFCFC);
36+
border-radius: ${({ $isMobile }) => ($isMobile ? '3px' : '10px')};
3437
`;
3538

3639

@@ -45,6 +48,8 @@ export const ContentContainerHeader = styled.div<ResponsiveProps>`
4548
background: var(--FarmSystem_White, #FCFCFC);
4649
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
4750
`}
51+
border-radius: ${({ $isMobile }) =>
52+
$isMobile ? '3px 3px 0 0' : '10px 10px 0 0'};
4853
`;
4954

5055
export const ContentContainerTitle = styled.h1<ResponsiveProps>`
@@ -68,4 +73,5 @@ export const GoBackButton = styled.button<ResponsiveProps>`
6873
height: ${({ $isApp }) => ($isApp ? '24px' : '35px')};
6974
flex-shrink: 0;
7075
margin-left: ${({ $isApp }) => ($isApp ? '0px' : '25px')};
76+
cursor: pointer;
7177
`;

apps/farminglog/src/pages/farminglog/create/index.styled.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ export const GoBackButton = styled.button<ResponsiveProps>`
320320
padding: ${({ $isApp }) => ($isApp ? '5px 17.5px 5px 18.5px' : '15px 30px')};
321321
justify-content: center;
322322
align-items: center;
323+
cursor: pointer;
323324
324325
border-radius: ${({ $isApp }) => ($isApp ? '5px' : '10px')};
325326
background: var(--FarmSystem_DarkGrey, #999);
@@ -331,6 +332,7 @@ export const CreateButton = styled.button<ResponsiveProps>`
331332
padding: ${({ $isApp }) => ($isApp ? '5px 17.5px 5px 18.5px' : '15px 30px')};
332333
justify-content: center;
333334
align-items: center;
335+
cursor: pointer;
334336
335337
border-radius: ${({ $isApp }) => ($isApp ? '5px' : '10px')};
336338
background: #5CD282;

apps/farminglog/src/pages/farminglog/view/index.styled.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export const FarmingLogWriteButton = styled.button<ResponsiveProps>`
122122
gap: 10px;
123123
flex-shrink: 0;
124124
aspect-ratio: 1/1;
125+
cursor: pointer;
125126
126127
border-radius: 35px;
127128
background: #5CD282;
@@ -132,4 +133,5 @@ export const FarmingLogWriteButtonImage = styled.img<ResponsiveProps>`
132133
height: 25px;
133134
flex-shrink: 0;
134135
aspect-ratio: 1/1;
136+
cursor: pointer;
135137
`;

apps/farminglog/src/pages/home/Ranking/ranking.styled.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ export const Phrase = styled.div<{ isApp: boolean }>`
8484
export const RankingTitle = styled.div<{ isApp: boolean }>`
8585
margin-top: 30px;
8686
display: flex;
87-
width: 80%;
87+
width: 82%;
88+
left: 2%;
8889
justify-content: ${({ isApp }) => (isApp ? 'space-between' : 'space-around')};
8990
align-items: center;
9091
`;
@@ -124,6 +125,7 @@ export const RankingItem = styled.div<{
124125
align-items: center;
125126
background-color: ${({ bgColor }) => bgColor};
126127
border-radius: 12px;
128+
cursor: pointer;
127129
128130
border: ${({ isMe }) => (isMe ? '3px solid #29d4a7' : 'none')};
129131
`;
@@ -173,7 +175,7 @@ export const ProfileIcon = styled.img`
173175
display: flex;
174176
justify-content: center;
175177
align-items: center;
176-
padding: 4px;
178+
/* padding: 4px; */
177179
`;
178180

179181
export const ColumnBox = styled.div`

apps/farminglog/src/pages/home/Ranking/ranking.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export default function RankingPreview() {
9898
· 랭킹은 씨앗을 기준으로 매일 자정마다 정렬돼요.
9999
<br />
100100
· 씨앗은 트랙별 우수활동자 심사에 반영돼요.
101+
<br />
102+
· 친구 프로필을 눌러 응원할 수 있어요!
101103
</S.PhaseDesc>
102104

103105
<S.RankingTitle isApp={isApp}>

apps/farminglog/src/pages/ranking/index.styles.tsx

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,21 @@ export const ColumnBox = styled.div`
169169

170170
export const RankingTitle = styled.div<{ isApp: boolean }>`
171171
margin-top: 30px;
172-
margin-bottom: -30px;
172+
margin-bottom: -40px;
173173
display: flex;
174174
flex-direction: row;
175-
width: 80%;
176-
justify-content: ${({ isApp }) => (isApp ? 'space-around' : 'space-around')};
175+
left: 2%;
176+
width: 82%;
177+
justify-content: ${({ isApp }) => (isApp ? 'space-between' : 'space-around')};
177178
align-items: center;
179+
border-radius: ${({ isApp }) => (isApp ? '3px' : '10px')};
178180
`;
179181

180182
export const RankingTitleText = styled.div<{ isApp: boolean }>`
181183
width: ${({ isApp }) => (isApp ? '75px' : '90px')};
182184
font-size: ${({ isApp }) => (isApp ? '9px' : '12px')};
183185
margin-bottom: 10px;
186+
text-align: center;
184187
`;
185188

186189

@@ -190,6 +193,7 @@ export const RankingList = styled.div`
190193
gap: 8px;
191194
width: 100%;
192195
align-items: center;
196+
padding-bottom: 40px;
193197
`;
194198

195199
export const RankingItem = styled.div<{
@@ -207,6 +211,7 @@ export const RankingItem = styled.div<{
207211
border-radius: 12px;
208212
padding: ${({ isApp }) => (isApp ? '20px' : '16px')};
209213
border: ${({ isMe }) => (isMe ? '3px solid #29D4A7' : 'none')};
214+
cursor: pointer;
210215
`;
211216

212217

@@ -283,3 +288,30 @@ export const Balloon = styled.img`
283288
height: auto;
284289
z-index: 10;
285290
`;
291+
292+
293+
export const PhaseTitle = styled.div<{$isMobile: boolean }>`
294+
font-family: 'Pretendard Variable';
295+
font-weight: 700;
296+
font-size: 24px;
297+
line-height: 30px;
298+
letter-spacing: -0.24px;
299+
300+
text-align: center; /* 가로 중앙 */
301+
display: flex;
302+
align-items: center; /* 세로 중앙 */
303+
justify-content: center;
304+
margin-bottom: -30px;
305+
`;
306+
307+
export const PhaseDesc = styled.div<{ $isMobile: boolean }>`
308+
display: inline-flex;
309+
margin: 0 auto;
310+
justify-content: flex-start;
311+
font-size: ${({ $isMobile }) => ($isMobile ? '14px' : '16px')};
312+
font-weight: 400;
313+
font-family: "Pretendard Variable";
314+
line-height: ${({ $isMobile }) => ($isMobile ? '20px' : '30px')};
315+
letter-spacing: ${({ $isMobile }) => ($isMobile ? '-0.12px' : '-0.24px')};
316+
317+
`;

apps/farminglog/src/pages/ranking/index.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as S from './index.styles';
55
import useMediaQueries from '@/hooks/useMediaQueries';
66
import FarmLogo from '../../assets/Icons/FarmSystem_Logo.png';
77
import Crown from '../../assets/Icons/crown.png';
8-
import Sign from '@/components/Ranking/sign';
98
import CheerBalloon from './components/CheerBalloon';
109
import { useUserRankingQuery } from '@/services/query/useUserRankingQuery';
1110
import { convertTrackToString } from '@/utils/convertTrackToString';
@@ -14,11 +13,11 @@ import WhiteContentContainer from '@/layouts/WhiteContentContainer';
1413
import Popup from "@/components/Popup/popup";
1514
import { useUserInfoQuery } from "@repo/auth/services/query/useUserInfoQuery";
1615

17-
const headerTexts = [
18-
'랭킹은 씨앗을 기준으로 매일 자정마다 정렬돼요.',
19-
'씨앗은 트랙별 우수활동자 심사에 반영돼요.',
20-
'친구의 프로필을 눌러 응원할 수 있어요!'
21-
];
16+
// const headerTexts = [
17+
// '랭킹은 씨앗을 기준으로 매일 자정마다 정렬돼요.',
18+
// '씨앗은 트랙별 우수활동자 심사에 반영돼요.',
19+
// '친구의 프로필을 눌러 응원할 수 있어요!'
20+
// ];
2221

2322
export default function Main() {
2423
const navigate = useNavigate();
@@ -57,7 +56,16 @@ export default function Main() {
5756
return (
5857
<WhiteContentContainer title='랭킹' >
5958

60-
<Sign isApp={isApp} isMobile={isMobile} texts={headerTexts} />
59+
<S.PhaseTitle $isMobile={isMobile}>
60+
씨앗이 쌓이면, 랭킹이 바로 올라요!
61+
</S.PhaseTitle>
62+
<S.PhaseDesc $isMobile={isMobile}>
63+
· 랭킹은 씨앗을 기준으로 0시간마다 정렬돼요.
64+
<br />
65+
· 씨앗은 트랙별 우수활동자 심사에 반영돼요.
66+
<br />
67+
· 친구 프로필을 눌러 응원할 수 있어요!
68+
</S.PhaseDesc>
6169

6270
<S.RankingTitle isApp={isApp}>
6371
<S.RankingTitleText isApp={isApp}>순위</S.RankingTitleText>

0 commit comments

Comments
 (0)