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

Commit d0585fa

Browse files
authored
Merge pull request #424 from cagdas001/dev
fix(create-new-team): design issues
2 parents 67b1fef + fae436c commit d0585fa

File tree

10 files changed

+42
-200
lines changed

10 files changed

+42
-200
lines changed

src/components/CustomerScroll/styles.module.scss

+1-2
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

+1-1
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/Progress/index.jsx

+16-17
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

+20-19
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

+1-1
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">

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

+1-1
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/SubmitContainer/styles.module.scss

+1-1
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/progress/index.jsx

-72
This file was deleted.

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

-85
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.logos {
2-
padding: 0 35px 15px;
2+
padding: 0 35px 8px;
33
width: 100%;
44
}

0 commit comments

Comments
 (0)