Skip to content

Commit fa3716e

Browse files
committed
Updates & cleanup in the talent search app
1 parent 3ca9666 commit fa3716e

File tree

12 files changed

+115
-201
lines changed

12 files changed

+115
-201
lines changed
Lines changed: 58 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,90 @@
1-
@import '@talentSearch/styles/variables';
1+
@import "@libs/ui/styles/includes";
22

33
.contentLayout {
4-
width: 100%;
5-
padding-top: 30px;
6-
background-image: url("../../assets/background.png");
7-
background-size: cover;
8-
background-repeat: no-repeat;
9-
10-
.contentLayout-outer {
11-
width: 100%;
4+
background-image: url("../../assets/background.png");
5+
background-size: cover;
6+
background-repeat: no-repeat;
7+
}
128

13-
.contentLayout-inner {
14-
width: 100%;
15-
padding: 86px 48px 48px 48px;
16-
overflow: visible;
17-
}
18-
}
9+
.contentLayout-inner {
10+
padding: 86px 48px 48px 48px;
11+
color: $tc-white;
1912
}
2013

2114
.popularSkillsContainer{
22-
margin-top: 16px;
23-
margin-left: auto;
24-
margin-right: auto;
25-
text-align: center;
15+
margin-top: 16px;
16+
margin-left: auto;
17+
margin-right: auto;
18+
text-align: center;
19+
20+
:global(.body-medium-bold) {
21+
margin-bottom: $sp-4;
22+
}
2623
}
2724

2825
.pillRow{
29-
margin-top: 20px;
30-
width:100%;
31-
margin-left:auto;
32-
margin-right:auto;
33-
}
26+
display: flex;
27+
align-items: center;
28+
justify-content: center;
29+
gap: $sp-2;
3430

35-
.popularSkillsTitle{
36-
font-family: $font-roboto;
37-
font-weight: 700;
38-
font-size: 20px;
39-
line-height: 26px;
40-
text-align: center;
41-
color: $tc-white;
31+
+ .pillRow {
32+
margin-top: $sp-2;
33+
}
34+
35+
&:nth-child(4) {
36+
opacity: 60%;
37+
}
38+
&:nth-child(n+5) {
39+
opacity: 40%;
40+
}
4241
}
4342

4443
.searchHeader{
45-
text-align: center;
44+
text-align: center;
4645
}
4746

4847
.searchHeaderText{
49-
font-family: $font-roboto;
50-
font-weight: 500;
51-
font-size: 30px;
52-
line-height: 20px;
53-
letter-spacing: 0.5px;
54-
color: $tc-white;
48+
font-family: $font-roboto;
49+
font-weight: 500;
50+
font-size: 30px;
51+
line-height: 20px;
52+
letter-spacing: 0.5px;
5553
}
5654

5755
.subHeader{
58-
padding-top: 49px;
59-
text-align: center;
56+
margin-top: 49px;
57+
text-align: center;
6058
}
6159

6260
.subHeaderText{
63-
font-family: $font-barlow;
64-
font-weight: 400;
65-
font-size: 25px;
66-
line-height: 30px;
67-
color: $tc-white;
61+
font-family: $font-barlow;
62+
font-weight: 400;
63+
font-size: 25px;
64+
line-height: 30px;
65+
color: $tc-white;
6866

6967
}
7068
.searchPrompt{
71-
font-family: $font-roboto;
72-
font-weight: 700;
73-
font-size: 16px;
74-
line-height: 48px;
75-
color: $tc-white;
69+
font-family: $font-roboto;
70+
font-weight: 700;
71+
font-size: 16px;
72+
line-height: 48px;
73+
color: $tc-white;
7674
}
7775

7876
.searchOptions{
79-
margin-left: auto;
80-
margin-right: auto;
81-
padding: 70px 32px 32px 32px;
82-
max-width: 931px;
83-
width: 100%;
84-
}
85-
86-
.searchIconSpan{
87-
cursor: pointer;
77+
margin-left: auto;
78+
margin-right: auto;
79+
padding: 70px 32px 32px 32px;
80+
max-width: 931px;
81+
width: 100%;
8882
}
8983

9084
.searchIcon{
91-
width: 24px;
92-
height: 24px;
93-
color: $black-40;
94-
stroke: $black-40;
95-
margin-right: 10px;
85+
width: 24px;
86+
height: 24px;
87+
color: $black-40;
88+
stroke: $black-40;
89+
margin-right: 10px;
9690
}

src/apps/talent-search/src/routes/talent-search/TalentSearch.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ContentLayout, IconOutline, InputMultiselectOption } from '~/libs/ui'
44
import { EmsiSkill, EmsiSkillSources, InputSkillSelector } from '~/libs/shared'
55
import { Skill } from '@talentSearch/lib/models/'
66

7-
import SkillPill from './components/SkillPill'
7+
import { SkillPill } from './components/skill-pill'
88
import styles from './TalentSearch.module.scss'
99

1010
// TODO: Make this configurable, or read from a service. We need to discuss
@@ -86,9 +86,9 @@ export const TalentSearch: FC = () => {
8686
<span className={styles.searchHeaderText}>Looking for a technology expert?</span>
8787
</div>
8888
<div className={styles.subHeader}>
89-
<span className={styles.subHeaderText}>
89+
<div className={styles.subHeaderText}>
9090
Search thousands of skills to match with our global experts.
91-
</span>
91+
</div>
9292
</div>
9393
<div className={styles.searchOptions}>
9494
<span className={styles.searchPrompt}>Search by skills</span>
@@ -102,7 +102,7 @@ export const TalentSearch: FC = () => {
102102
/>
103103
</div>
104104
<div className={styles.popularSkillsContainer}>
105-
<span className={styles.popularSkillsTitle}>Popular Skills</span>
105+
<div className='body-medium-bold'>Popular Skills</div>
106106

107107
{popularSkills.map((row, i) => (
108108
// eslint-disable-next-line react/no-array-index-key

src/apps/talent-search/src/routes/talent-search/components/SkillPill.module.scss

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/apps/talent-search/src/routes/talent-search/components/SkillPill.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@import "@libs/ui/styles/includes";
2+
3+
.pill {
4+
cursor: pointer;
5+
border-radius: 40px;
6+
color: $tc-white;
7+
border: 1px solid $tc-white;
8+
padding: 8px 14px 8px 14px;
9+
text-align: center;
10+
11+
&:hover {
12+
background-color: rgba($tc-white, 0.1);
13+
}
14+
15+
&.selected{
16+
background-color: rgba($tc-white, 0.3);
17+
}
18+
}
19+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { FC, useCallback } from 'react'
2+
import classNames from 'classnames'
3+
4+
import { Skill } from '~/libs/shared'
5+
6+
import styles from './SkillPill.module.scss'
7+
8+
export interface SkillPillProps {
9+
onClick: (skill: Skill) => void
10+
selected: boolean
11+
skill: Skill
12+
}
13+
14+
const SkillPill: FC<SkillPillProps> = props => {
15+
const handleClick = useCallback(() => props.onClick.call(undefined, props.skill), [
16+
props.onClick, props.skill,
17+
])
18+
19+
return (
20+
<span
21+
className={classNames(styles.pill, props.selected && styles.selected)}
22+
onClick={handleClick}
23+
>
24+
<span className='body-main'>
25+
{props.skill.name}
26+
</span>
27+
</span>
28+
)
29+
}
30+
31+
export default SkillPill
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as SkillPill } from './SkillPill'

src/apps/talent-search/src/styles/_include.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/apps/talent-search/src/styles/_mixins.scss

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/apps/talent-search/src/styles/_variables.scss

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)