Skip to content

Commit 5d7bf23

Browse files
committed
GAME-222 prominent add skills note
1 parent 7b68016 commit 5d7bf23

File tree

2 files changed

+60
-6
lines changed

2 files changed

+60
-6
lines changed

src/shared/components/Settings/ExperienceAndSkills/WorkSkills/Skills/index.jsx

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-len */
12
/**
23
* Child component of Settings/Profile renders "Skills" section of profile setting page.
34
*/
@@ -375,12 +376,7 @@ export default class Skills extends ConsentComponent {
375376
<div styleName="title-wrap" style={{ alignItems: userSkills.length >= MIN_SKILLS_TO_REMIND ? 'center' : 'flex-start' }}>
376377
<h2 styleName="form-title">Skills</h2>
377378
{
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 />
384380
}
385381
</div>
386382

@@ -390,6 +386,27 @@ export default class Skills extends ConsentComponent {
390386
</div>
391387

392388
<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+
}
393410
{skillList}
394411
</div>
395412

src/shared/components/Settings/ExperienceAndSkills/WorkSkills/Skills/styles.scss

+37
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* stylelint-disable no-descending-specificity */
12
@import "~styles/mixins";
23

34
.skillList {
@@ -92,6 +93,8 @@
9293

9394
.form-body {
9495
flex: 0 0 calc(50% + 13px);
96+
display: flex;
97+
flex-direction: column;
9598
}
9699

97100
.form-footer {
@@ -131,6 +134,30 @@
131134
}
132135
}
133136

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+
134161
@include xs-to-md {
135162
.form-container {
136163
padding: $pad-xxl $pad-lg;
@@ -179,3 +206,13 @@
179206
}
180207
}
181208
}
209+
210+
@include xs-to-sm {
211+
.skill-note {
212+
flex-direction: column;
213+
214+
svg {
215+
margin-bottom: $margin-md;
216+
}
217+
}
218+
}

0 commit comments

Comments
 (0)