Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 67b1fef

Browse files
authored
Merge pull request #419 from yoution/issue-411
fix: issue #411
2 parents 10f6ed3 + 145e71e commit 67b1fef

File tree

4 files changed

+88
-67
lines changed

4 files changed

+88
-67
lines changed

src/routes/CreateNewTeam/components/LandingBox/index.jsx

+13-15
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import "./styles.module.scss";
99
import Button from "components/Button";
1010

1111
function LandingBox({
12+
showGap,
1213
icon,
1314
title,
1415
description,
@@ -23,24 +24,20 @@ function LandingBox({
2324
backgroundImage,
2425
}}
2526
>
27+
{showGap && <div styleName='gap'>OR</div>}
2628
<div styleName="flex-container">
27-
<div styleName="icon-and-text">
2829
<div styleName="icon">{icon}</div>
29-
<div>
30-
<h3 styleName="title">{title}</h3>
31-
<p>{description}</p>
32-
</div>
33-
</div>
34-
<Button
35-
size="large"
36-
type="secondary"
37-
onClick={onClick}
38-
disabled={isDisabled}
39-
>
40-
Select
41-
</Button>
30+
<h3 styleName="title">{title}</h3>
31+
<p styleName="description">{description}</p>
32+
<Button
33+
size="large"
34+
type="secondary"
35+
onClick={onClick}
36+
disabled={isDisabled}
37+
>
38+
Select
39+
</Button>
4240
</div>
43-
<div styleName="bg-icon">{icon}</div>
4441
</div>
4542
);
4643
}
@@ -51,6 +48,7 @@ LandingBox.propTypes = {
5148
description: PT.string,
5249
onClick: PT.func,
5350
isDisabled: PT.bool,
51+
showGap: PT.bool,
5452
backgroundImage: PT.string,
5553
};
5654

src/routes/CreateNewTeam/components/LandingBox/styles.module.scss

+39-27
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,29 @@
22

33
.landing-box {
44
@include rounded-card;
5-
padding: 44px 50px;
5+
flex: 1;
66
color: #fff;
7+
padding-bottom: 30px;
8+
height: 324px;
9+
margin: 20px 10px;
710
position: relative;
8-
overflow: hidden;
9-
margin-top: 20px;
1011
}
1112

1213
.flex-container {
1314
display: flex;
14-
flex-direction: row;
15-
justify-content: space-between;
15+
height: 100%;
16+
flex-direction: column;
1617
align-items: center;
17-
position: relative;
18-
z-index: 10;
18+
19+
.icon {
20+
margin: 30px 0 20px;
21+
width: 50px;
22+
height: 50px;
23+
> svg {
24+
width: 100%;
25+
height: 100%;
26+
}
27+
}
1928
button {
2029
border: none;
2130
}
@@ -29,27 +38,30 @@
2938
margin-bottom: 10px;
3039
}
3140

32-
.bg-icon {
33-
position: absolute;
34-
right: 0;
35-
top: 60px;
36-
opacity: 10%;
37-
svg {
38-
width: 144px;
39-
height: 144px;
40-
}
41+
.description {
42+
flex:1;
43+
white-space: pre-line;
44+
font-size: 16px;
45+
line-height: 26px;
46+
width: 268px;
47+
text-align: center;
4148
}
4249

43-
.icon-and-text {
44-
display: flex;
45-
flex-direction: row;
46-
justify-content: flex-start;
47-
align-items: stretch;
48-
margin-right: 40px;
49-
}
5050

51-
.icon {
52-
width: 72px;
53-
height: 72px;
54-
margin-right: 40px;
51+
.gap {
52+
font-family: Roboto;
53+
position: absolute;
54+
background-color: #D4D4D4;
55+
border: 3px solid #F4F5F6;
56+
border-radius: 100%;
57+
width: 42px;
58+
height: 42px;
59+
line-height: 42px;
60+
box-sizing: content-box;
61+
color: #7F7F7F;
62+
font-size: 16px;
63+
text-align: center;
64+
right: -32.5px;
65+
z-index: 2;
66+
top: 130px;
5567
}

src/routes/CreateNewTeam/pages/CreateTeamLanding/index.jsx

+29-24
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,37 @@ function CreateNewTeam() {
2626

2727
return (
2828
<Page title="Find your Talent">
29-
<PageHeader title={<div styleName="title">Find your Talent</div>} />
29+
<PageHeader title={<div styleName="title">Let’s find you great talent</div>} />
3030
<p>
31-
Please select how you'd like to search the Topcoder community for a
32-
perfect match.
31+
You can search for your perfect talent matches in 3 unique ways:
3332
</p>
34-
<LandingBox
35-
title="Choose a Role"
36-
description="Select from a list of pre-defined roles which Topcoder develops talent for. Standardized Job Descriptions and baseline skills are available for review."
37-
icon={<IconMultipleActionsCheck />}
38-
backgroundImage="linear-gradient(101.95deg, #8B41B0 0%, #EF476F 100%)"
39-
onClick={() => goToRoute("/taas/createnewteam/role")}
40-
/>
41-
<LandingBox
42-
title="Input Skills"
43-
description="Select one or more technical skills you need. Topcoder will match your requirements to our talent."
44-
icon={<IconListQuill />}
45-
backgroundImage="linear-gradient(221.5deg, #2C95D7 0%, #9D41C9 100%)"
46-
onClick={() => goToRoute("/taas/createnewteam/skills")}
47-
/>
48-
<LandingBox
49-
title="Input Job Description"
50-
description="Input a Job Description and Topcoder will extract the required skills from it, then find the best matching talent for the job duties."
51-
icon={<IconOfficeFileText />}
52-
backgroundImage="linear-gradient(135deg, #2984BD 0%, #0AB88A 100%)"
53-
onClick={() => goToRoute("/taas/createnewteam/jd")}
54-
/>
33+
<div styleName="landing-box-container">
34+
<LandingBox
35+
showGap
36+
title="Search by Role"
37+
description={"Examples:\n Search “Front-End Developer”\n or “UI Designer”"}
38+
icon={<IconMultipleActionsCheck />}
39+
backgroundImage="linear-gradient(101.95deg, #8B41B0 0%, #EF476F 100%)"
40+
onClick={() => goToRoute("/taas/createnewteam/role")}
41+
/>
42+
<LandingBox
43+
showGap
44+
title="Search by Skills"
45+
description={"Examples: \nJava, Python, React, Sketch"}
46+
icon={<IconListQuill />}
47+
backgroundImage="linear-gradient(221.5deg, #2C95D7 0%, #9D41C9 100%)"
48+
onClick={() => goToRoute("/taas/createnewteam/skills")}
49+
/>
50+
<LandingBox
51+
title="Describe the Work"
52+
description={"Provide a short description of talent\n you want or project work you’re \nlooking to do"}
53+
icon={<IconOfficeFileText />}
54+
backgroundImage="linear-gradient(135deg, #2984BD 0%, #0AB88A 100%)"
55+
onClick={() => goToRoute("/taas/createnewteam/jd")}
56+
/>
57+
58+
59+
</div>
5560
</Page>
5661
);
5762
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
.title {
22
font-weight: 500;
3-
}
3+
}
4+
5+
.landing-box-container {
6+
display: flex;
7+
margin-left: -10px;
8+
margin-right: -10px;
9+
}

0 commit comments

Comments
 (0)