File tree 2 files changed +60
-6
lines changed
src/shared/components/Settings/ExperienceAndSkills/WorkSkills/Skills
2 files changed +60
-6
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable max-len */
1
2
/**
2
3
* Child component of Settings/Profile renders "Skills" section of profile setting page.
3
4
*/
@@ -375,12 +376,7 @@ export default class Skills extends ConsentComponent {
375
376
< div styleName = "title-wrap" style = { { alignItems : userSkills . length >= MIN_SKILLS_TO_REMIND ? 'center' : 'flex-start' } } >
376
377
< h2 styleName = "form-title" > Skills</ h2 >
377
378
{
378
- userSkills . length < MIN_SKILLS_TO_REMIND ? (
379
- // eslint-disable-next-line max-len
380
- < p > To be able to match you with the best opportunities at Topcoder,< br /> please be sure you have at least { MIN_SKILLS_TO_REMIND } skills listed in your profile.</ p >
381
- ) : (
382
- < YouGotSkillsBadge />
383
- )
379
+ userSkills . length >= MIN_SKILLS_TO_REMIND && < YouGotSkillsBadge />
384
380
}
385
381
</ div >
386
382
@@ -390,6 +386,27 @@ export default class Skills extends ConsentComponent {
390
386
</ div >
391
387
392
388
< div styleName = "form-body" >
389
+ {
390
+ userSkills . length < MIN_SKILLS_TO_REMIND && (
391
+ < div styleName = "skill-note" >
392
+ < svg
393
+ xmlns = "http://www.w3.org/2000/svg"
394
+ width = "24"
395
+ height = "24"
396
+ fill = "none"
397
+ viewBox = "0 0 24 24"
398
+ >
399
+ < path
400
+ fill = "#137D60"
401
+ fillRule = "evenodd"
402
+ d = "M12 4a8 8 0 100 16 8 8 0 000-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm9-4a1 1 0 011-1h.01a1 1 0 110 2H12a1 1 0 01-1-1zm-1 4a1 1 0 011-1h1a1 1 0 011 1v3a1 1 0 110 2h-1a1 1 0 01-1-1v-3a1 1 0 01-1-1z"
403
+ clipRule = "evenodd"
404
+ />
405
+ </ svg >
406
+ < p > To be able to match you with the best opportunities at Topcoder, please be sure you have at least < span > { MIN_SKILLS_TO_REMIND } skills</ span > listed in your profile.</ p >
407
+ </ div >
408
+ )
409
+ }
393
410
{ skillList }
394
411
</ div >
395
412
Original file line number Diff line number Diff line change
1
+ /* stylelint-disable no-descending-specificity */
1
2
@import " ~styles/mixins" ;
2
3
3
4
.skillList {
92
93
93
94
.form-body {
94
95
flex : 0 0 calc (50% + 13px );
96
+ display : flex ;
97
+ flex-direction : column ;
95
98
}
96
99
97
100
.form-footer {
131
134
}
132
135
}
133
136
137
+ .skill-note {
138
+ display : flex ;
139
+ background-color : $color-black-5 ;
140
+ padding : $pad-md $pad-lg ;
141
+ border-radius : 4px ;
142
+ margin-bottom : $pad-lg ;
143
+
144
+ svg {
145
+ margin-right : $margin-md ;
146
+ min-width : 24px ;
147
+ }
148
+
149
+ p ,
150
+ span {
151
+ @include roboto-medium ;
152
+
153
+ line-height : 24px ;
154
+ }
155
+
156
+ span {
157
+ color : $color-turq-160 ;
158
+ }
159
+ }
160
+
134
161
@include xs-to-md {
135
162
.form-container {
136
163
padding : $pad-xxl $pad-lg ;
179
206
}
180
207
}
181
208
}
209
+
210
+ @include xs-to-sm {
211
+ .skill-note {
212
+ flex-direction : column ;
213
+
214
+ svg {
215
+ margin-bottom : $margin-md ;
216
+ }
217
+ }
218
+ }
You can’t perform that action at this time.
0 commit comments