@@ -33,23 +33,23 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
33
33
34
34
35
35
return (
36
- < div className = "w-full flex flex-col sm:flex-row md:flex-col lg:flex-row border-solid border border-gray-200 bg-gray-50 rounded-3xl mb-5 group text-gray-700 " >
37
- < div className = "border-solid border -m-px border-gray-200 bg-white rounded-3xl sm:p-8 sm:pb-6 p-6 sm:w-2/3 md:w-auto lg:w-2/3" >
36
+ < div className = "w-full flex flex-col sm:flex-row md:flex-col lg:flex-row border-solid border border-surface-border-primary bg-surface-bg-secondary rounded-3xl mb-5 group text-surface-text-secondary " >
37
+ < div className = "border-solid border -m-px border-surface-border-primary bg-surface-bg-primary rounded-3xl sm:p-8 sm:pb-6 p-6 sm:w-2/3 md:w-auto lg:w-2/3" >
38
38
< div className = "flex flex-col mb-1" >
39
39
< div className = "lg:pr-20" >
40
40
{ expiresAt && (
41
- < div className = "text-gray-400 text-sm font-normal mb-4.5 md:mb-6" >
41
+ < div className = "text-surface-text-tertiary text-sm font-normal mb-4.5 md:mb-6" >
42
42
< span > { t ( "communities.overview.challenge.deadline" ) } </ span >
43
43
< span className = "font-medium pl-1" > { expiresAt } </ span >
44
44
</ div >
45
45
) }
46
- < div className = "text-lg text-gray-900 font-medium leading-normal mb-3" > { data . name } </ div >
46
+ < div className = "text-lg text-surface-text-primary font-medium leading-normal mb-3" > { data . name } </ div >
47
47
< Badges challenge = { data } />
48
- < div className = "text-sm text-gray-700 " > { data . description } </ div >
48
+ < div className = "text-sm text-surface-text-secondary " > { data . description } </ div >
49
49
</ div >
50
50
< div className = "divide-y-2 divide-gray-200 divide-dotted flex flex-col mt-8" >
51
51
{ learningMaterialsCount && (
52
- < p className = "pb-3 md:pb-4 text-sm font-medium text-gray-400 " > { `${ learningMaterialsCount } Learning ${ learningMaterialsCount === 1 ? "material" : "materials" } included` } </ p >
52
+ < p className = "pb-3 md:pb-4 text-sm font-medium text-surface-text-tertiary " > { `${ learningMaterialsCount } Learning ${ learningMaterialsCount === 1 ? "material" : "materials" } included` } </ p >
53
53
) }
54
54
< div className = "lg:flex lg:flex-row flex-col justify-between pt-3 md:pt-4 items-center" >
55
55
< Link href = { link } >
@@ -66,11 +66,11 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
66
66
< Image src = { data ?. certificateData ?. icon } alt = "achievement" fill priority />
67
67
</ div >
68
68
< div className = "" >
69
- < h1 className = "font-bold text-gray-400 text-xs uppercase pb-3" > { t ( "communities.overview.challenge.unlock.certificate" ) } </ h1 >
69
+ < h1 className = "font-bold text-surface-text-tertiary text-xs uppercase pb-3" > { t ( "communities.overview.challenge.unlock.certificate" ) } </ h1 >
70
70
< RewardCertificate rewards = { data ?. rewards } />
71
71
</ div >
72
- { data ?. isHackathon && < p className = "py-1.5 border-t border-gray-200 text-sm" > { t ( "communities.overview.challenge.participate" , { token : reward ?. token } ) } </ p > }
72
+ { data ?. isHackathon && < p className = "py-1.5 border-t border-surface-border-primary text-sm" > { t ( "communities.overview.challenge.participate" , { token : reward ?. token } ) } </ p > }
73
73
</ div >
74
74
</ div >
75
75
) ;
76
- }
76
+ }
0 commit comments