@@ -52,22 +52,49 @@ export default function BountyCard({ bounty }: BountyProps): ReactElement {
52
52
if ( bounty . submissions ?. link ) return `/${ bounty . submissions ?. link } ` ;
53
53
if ( isChallenge ) return navigation . community . challengePath ( bounty . challenge , bounty ?. slug ) ;
54
54
return navigation . community . submissionsPath ( bounty . challenge , bounty ?. slug ) ;
55
- } , [ bounty . challenge , bounty . course ?. slug , bounty . slug , bounty . submissions ?. link , bounty . url , isChallenge , navigation . community ] ) ;
55
+ } , [ bounty . challenge , bounty . slug , bounty . submissions ?. link , bounty . url , isChallenge , navigation . community ] ) ;
56
56
57
57
const Component = link . startsWith ( "http" ) ? "a" : Link ;
58
58
59
59
return (
60
60
< div className = "p-5 flex md:flex-row-reverse md:space-x-5 px-5 min-h-32 md:h-auto md:w-full justify-between hover:bg-secondary relative" >
61
- < div className = "bg-theme-accent flex-col w-full h-full justify-between md:-space-y-1 pl-3 pr-5 mt-7 mb -5" >
61
+ < div className = "bg-theme-accent flex-col w-full h-full justify-between md:-space-y-1 pl-3 pr-5 my -5" >
62
62
< Component className = "relative w-full block" href = { link } >
63
63
< div className = "font-medium text-md md:pt-1.5" > { bounty . course ? bounty . course . name : bounty . name } </ div >
64
64
</ Component >
65
- < Component className = "inline-flex md:flex h-2/3 md:flex-row flex-col-reverse justify-between" href = { link } >
66
- < div className = "text-sm pt-8 md:pt-2 md:pb-4 text-gray-600" > { type ( ) } </ div >
67
- < div >
68
- < Reward type = "gray" reward = { bounty . reward } > </ Reward >
69
- </ div >
70
- </ Component >
65
+ < div className = "flex justify-between w-full md:block" >
66
+ < Component className = "inline-flex md:flex md:flex-row flex-col-reverse justify-between" href = { link } >
67
+ < div className = "text-sm pt-8 md:pt-2 md:pb-4 text-gray-600" > { type ( ) } </ div >
68
+ < div className = "flex" >
69
+ < Reward type = "gray" reward = { bounty . reward } > </ Reward >
70
+ </ div >
71
+ </ Component >
72
+ < Component className = "self-end relative md:hidden" href = { link } >
73
+ < Avatar
74
+ icon = { bounty . icon }
75
+ image = { bounty . image }
76
+ color = { bounty . colors ?. cover ?. background || bounty . colors ?. primary }
77
+ size = "medium-fixed"
78
+ shape = "rounded"
79
+ className = "w-15 h-15 rounded-xl overflow-hidden"
80
+ user = { null }
81
+ useLink = { false }
82
+ />
83
+ { bounty ?. submissions && (
84
+ < Badge
85
+ customStyle = { {
86
+ bottom : "-4px" ,
87
+ right : "-4px" ,
88
+ fontSize : 14 ,
89
+ backgroundColor : bounty . colors . accent ,
90
+ } }
91
+ size = "medium"
92
+ value = { bounty ?. unreviewedSubmissionsCount }
93
+ className = "bottom-0 -right-1 absolute p-4"
94
+ />
95
+ ) }
96
+ </ Component >
97
+ </ div >
71
98
{ bounty . submissions ?. length ? (
72
99
< div className = "mt-4 space-y-0 divide-y divide-gray-200 border-t border-t-solid border-gray-200" >
73
100
{ bounty . submissions . map ( ( submission ) => (
@@ -102,7 +129,7 @@ export default function BountyCard({ bounty }: BountyProps): ReactElement {
102
129
< > </ >
103
130
) }
104
131
</ div >
105
- < Component className = "self-start relative mt-15 md:mt-7 " href = { link } >
132
+ < Component className = "self-start relative mt-7 hidden md:block " href = { link } >
106
133
< Avatar
107
134
icon = { bounty . icon }
108
135
image = { bounty . image }
0 commit comments