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