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

Commit a339aab

Browse files
authored
Merge branch 'dev' into dev
2 parents 331ce66 + 77753b1 commit a339aab

File tree

24 files changed

+381
-283
lines changed

24 files changed

+381
-283
lines changed

src/components/CustomerScroll/styles.module.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@
77
color: #7f7f7f;
88
text-align: center;
99
text-transform: uppercase;
10-
margin-bottom: 30px;
1110
}
1211

1312
.customer-logos {
1413
background-image: url("../../assets/images/customer-logos.svg");
1514
background-size: contain;
1615
background-repeat: no-repeat;
16+
background-position: center;
1717
height: 56px;
1818
width: 100%;
1919
}
2020

2121
@media only screen and (max-height: 859px) {
2222
.title {
2323
font-size: 16px;
24-
margin-bottom: 15px;
2524
}
2625
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
flex-direction: row;
44
justify-content: center;
55
align-items: flex-start;
6-
margin: 42px 35px;
6+
margin: 42px 35px 30px;
77
.right-side {
88
display: flex;
99
flex-direction: column;

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

Lines changed: 13 additions & 15 deletions
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

Lines changed: 39 additions & 27 deletions
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/components/Progress/index.jsx

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,60 @@ import Button from "components/Button";
88
import React from "react";
99
import cn from "classnames";
1010
import PT from "prop-types";
11+
import Spinner from "components/CenteredSpinner";
1112
import ProgressBar from "../ProgressBar";
1213
import "./styles.module.scss";
13-
import IconMultipleActionsCheck from "../../../../assets/images/icon-multiple-actions-check-2.svg";
14-
import IconListQuill from "../../../../assets/images/icon-list-quill.svg";
15-
import IconOfficeFileText from "../../../../assets/images/icon-office-file-text.svg";
16-
1714
function Progress({
1815
extraStyleName,
1916
isDisabled,
17+
isSearching,
2018
onClick,
2119
buttonLabel,
2220
stages,
2321
percentage,
2422
}) {
25-
26-
let backgroundIcon
27-
if (extraStyleName === "input-skills") {
28-
backgroundIcon= <IconListQuill styleName="transparent-icon" />
29-
} else if (extraStyleName === "input-job-description") {
30-
backgroundIcon= <IconOfficeFileText styleName="transparent-icon" />
31-
} else {
32-
backgroundIcon= <IconMultipleActionsCheck styleName="transparent-icon" />
33-
}
34-
3523
return (
3624
<div styleName={cn("progress", extraStyleName)}>
3725
<ProgressBar percentDone={percentage} />
3826
<ul styleName="list">
39-
{stages.map((stage) => (
27+
{stages.map((stage, idx) => (
4028
<li
4129
styleName={cn("list-item", {
4230
active: stage.isCurrent,
4331
done: stage.completed,
4432
})}
33+
data-index={idx + 1}
4534
>
4635
{stage.name}
4736
</li>
4837
))}
4938
</ul>
5039
<Button
40+
styleName={cn({ searching: isSearching })}
5141
size="medium"
5242
type="secondary"
5343
disabled={isDisabled}
5444
onClick={onClick}
5545
>
56-
{buttonLabel}
46+
{isSearching ? (
47+
<>
48+
<div styleName="spinner">
49+
<Spinner stype="Oval" width="16" height="16" />
50+
</div>
51+
Searching
52+
</>
53+
) : (
54+
buttonLabel
55+
)}
5756
</Button>
58-
{backgroundIcon}
5957
</div>
6058
);
6159
}
6260

6361
Progress.propTypes = {
6462
extraStyleName: PT.string,
6563
isDisabled: PT.bool,
64+
isSearching: PT.bool,
6665
onClick: PT.func,
6766
buttonLabel: PT.string,
6867
currentStageIdx: PT.number,

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

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
color: #fff;
1010
button {
1111
border: none;
12+
&.searching {
13+
pointer-events: none;
14+
}
15+
.spinner {
16+
margin-top: 3px;
17+
margin-right: 5px;
18+
}
1219
}
1320
}
1421

@@ -39,47 +46,41 @@
3946
font-size: 14px;
4047
line-height: 16px;
4148
font-weight: 400;
42-
color: rgba(255, 255, 255, 0.6);
49+
color: rgba(#fff, 0.6);
4350

4451
&:before {
45-
content: "";
46-
color: #fff;
47-
border: 1px solid #ffffff;
52+
content: attr(data-index);
53+
font-size: 10px;
54+
line-height: 14px;
55+
font-weight: 600;
56+
padding-left: 4px;
57+
color: rgba(#fff, 0.6);
58+
border: 1px solid rgba(#fff, 0.6);
4859
border-radius: 100%;
4960
width: 16px;
5061
height: 16px;
5162
margin-right: 10px;
5263
display: block;
5364
float: left;
54-
visibility: hidden;
5565
}
5666

5767
&.active {
5868
font-weight: 500;
5969
color: #fff;
6070
&:before {
61-
visibility: visible;
71+
color: #555555;
6272
background-color: #fff;
6373
}
6474
}
6575

6676
&.done {
67-
font-weight: 400;
77+
font-weight: 500;
6878
&:before {
6979
content: "";
80+
padding-left: 3px;
7081
font-size: 9px;
71-
line-height: 14px;
72-
padding-left: 4px;
73-
visibility: visible;
82+
font-weight: 900;
83+
background-color: #0AB88A;
7484
}
7585
}
7686
}
77-
78-
.transparent-icon {
79-
position: absolute;
80-
right: -50px;
81-
top: 85px;
82-
opacity: 10%;
83-
width: 144px;
84-
height: 144px;
85-
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function ProgressBar({ percentDone }) {
1717
return (
1818
<div styleName="progress">
1919
<div styleName="heading">
20-
<p>Progress</p>
20+
<p>Completeness</p>
2121
<h6>{percentDone}%</h6>
2222
</div>
2323
<div styleName="progress-bar">

0 commit comments

Comments
 (0)