@@ -7,7 +7,7 @@ import Banner from '@public/images/HomeBanner.png';
77import ActiveChallenge from '@/components/Home/ActiveChallenge' ;
88import HotChallenge from '@/components/Home/HotChallenge' ;
99import Header from '@/components/shared/Header' ;
10- import { ArrowIcon } from '@public/icons/shared' ;
10+ import { ArrowIcon , FireIcon } from '@public/icons/shared' ;
1111import {
1212 useGetParticipatingChallenge ,
1313 useGetPopularChallenge ,
@@ -70,12 +70,6 @@ const Home = () => {
7070 return `${ certifiedCount } /${ total } ` ;
7171 }
7272
73- function getCompletedChallengeCount ( ) {
74- return ParticipatingChallengeData ?. data . filter (
75- ( item : ParticipatingChallenge ) => item . achievementRate >= 100
76- ) . length ;
77- }
78-
7973 useStatusBarBridge ( {
8074 backgroundColor : '#FFF' ,
8175 translucent : true ,
@@ -151,44 +145,22 @@ const Home = () => {
151145 </ div >
152146 ) : null }
153147
154- { /* Complete Challenge */ }
155- { ParticipatingChallengeData ?. data . length != 0 &&
156- ParticipatingChallengeData ?. data . some (
157- ( item : ParticipatingChallenge ) => item . achievementRate === 100
158- ) ? (
159- < div className = "flex flex-col gap-2 mt-5" >
160- < div className = "flex items-center justify-between" >
161- < div className = "text-he" > 완료한 챌린지</ div >
162- < div className = "text-gray-300 text-fn" >
163- 총 { getCompletedChallengeCount ( ) } 개 완료
148+ < div className = "flex justify-between w-full px-5 py-4 mt-5 border border-gray-100 rounded-xl" >
149+ < div className = "flex items-center gap-[0.62rem]" >
150+ < FireIcon width = "28" height = "28" />
151+ < div className = "" >
152+ < div className = "text-gray-600 text-c1" >
153+ 오늘 추천 챌린지 도착!
154+ </ div >
155+ < div className = "text-primary-hover text-h3" >
156+ AI가 고른 맞춤 챌린지
164157 </ div >
165- </ div >
166-
167- < div className = "flex w-full overflow-scroll gap-[0.62rem] scrollbar-hide" >
168- { ParticipatingChallengeData ?. data . map (
169- ( item : ParticipatingChallenge ) => {
170- if ( item . achievementRate >= 100 ) {
171- return (
172- < ActiveChallenge
173- key = { item . challengeId }
174- isActive = {
175- item . isCertifiedToday || item . achievementRate >= 100
176- }
177- title = { item . challenge . title }
178- time = { '고정값' }
179- imgURL = { item . challenge . imgURL }
180- certificationLink = { `/challenge/${ item . challengeId } /certification` }
181- progressLink = { `/challenge/${ item . challengeId } /progress` }
182- />
183- ) ;
184- } else {
185- return '' ;
186- }
187- }
188- ) }
189158 </ div >
190159 </ div >
191- ) : null }
160+ < div className = "flex items-center" >
161+ < ArrowIcon width = "18" height = "18" location = "right" fill = "#C9C9C9" />
162+ </ div >
163+ </ div >
192164
193165 { /* Hot Challenge */ }
194166 < div className = "flex flex-col gap-2 mt-5" >
@@ -198,7 +170,7 @@ const Home = () => {
198170 router . push ( '/challenge' ) ;
199171 } }
200172 >
201- < div className = "text-he" > 요즘 뜨는 챌린지 </ div >
173+ < div className = "text-he" > 이런 챌린지는 어때요? </ div >
202174 < ArrowIcon width = "24" height = "24" location = "right" />
203175 </ div >
204176 < div className = "flex overflow-scroll gap-[0.62rem] scrollbar-hide" >
0 commit comments