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

Commit 8c6f020

Browse files
committed
added results page and submission
1 parent 25714b4 commit 8c6f020

File tree

4 files changed

+146
-2
lines changed

4 files changed

+146
-2
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import React from "react";
2+
import "./styles.module.scss";
3+
import IconEarthCheck from "../../../../assets/images/icon-earth-check.svg";
4+
import Button from "components/Button";
5+
6+
function ResultCard() {
7+
return (
8+
<div styleName="result-card">
9+
<div styleName="heading">
10+
<IconEarthCheck />
11+
<h3>We have matching profiles</h3>
12+
<p>
13+
We have qualified candidates who match 80% or more of your job
14+
requirements.
15+
</p>
16+
</div>
17+
<div styleName="card-body">
18+
<div styleName="button-group">
19+
<Button type="segment-selected" size="small">
20+
Overview
21+
</Button>
22+
<Button type="segment" size="small">
23+
Rate Details
24+
</Button>
25+
</div>
26+
<div styleName="content">
27+
<div>
28+
<h4>80%</h4>
29+
<p>Matching rate</p>
30+
</div>
31+
<div>
32+
<h4>300+</h4>
33+
<p>Members matched</p>
34+
</div>
35+
</div>
36+
<div>
37+
<p>60% of members are available 20 hours / week (part time)</p>
38+
<p>20% of members are available 30 hours / week (part time)</p>
39+
<p>10% of members are available 40 hours / week (full time)</p>
40+
</div>
41+
</div>
42+
</div>
43+
);
44+
}
45+
46+
export default ResultCard;
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
@import "styles/include";
2+
3+
.result-card {
4+
@include rounded-card;
5+
max-width: 746px;
6+
width: 50vw;
7+
margin-right: 30px;
8+
height: 80vh;
9+
}
10+
11+
.heading {
12+
display: flex;
13+
flex-direction: column;
14+
justify-content: flex-start;
15+
align-items: center;
16+
padding: 30px 0 30px 0;
17+
margin-bottom: 30px;
18+
color: #fff;
19+
background-image: linear-gradient(225deg, #0ab88a 0%, #137d60 100%);
20+
21+
svg {
22+
margin-bottom: 8px;
23+
g {
24+
stroke: #fff;
25+
}
26+
}
27+
28+
h3 {
29+
@include font-barlow-condensed;
30+
text-transform: uppercase;
31+
font-size: 34px;
32+
margin-bottom: 8px;
33+
}
34+
35+
p {
36+
font-size: 14px;
37+
}
38+
}
39+
40+
.button-group {
41+
display: flex;
42+
flex-direction: row;
43+
align-items: center;
44+
justify-content: center;
45+
}
46+
47+
.content {
48+
display: flex;
49+
flex-direction: row;
50+
align-items: center;
51+
justify-content: center;
52+
53+
> div {
54+
display: flex;
55+
flex-direction: column;
56+
align-items: center;
57+
justify-content: flex-start;
58+
}
59+
60+
h4 {
61+
@include font-barlow-condensed;
62+
font-size: 48px;
63+
margin-bottom: 14px;
64+
}
65+
66+
p {
67+
font-size: 14px;
68+
}
69+
}
70+
71+
.card-body {
72+
display: flex;
73+
flex-direction: column;
74+
align-items: center;
75+
justify-content: space-between;
76+
height: 55vh;
77+
}

src/routes/InputSkills/index.jsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,27 @@ import { useData } from "hooks/useData";
66
import { getSkills } from "services/skills";
77
import LoadingIndicator from "components/LoadingIndicator";
88
import SearchCard from "./components/SearchCard";
9+
import ResultCard from "./components/ResultCard";
10+
import { createJob } from "services/jobs";
11+
import { navigate } from "@reach/router";
912

10-
function InputSkills() {
13+
function InputSkills({ projectId }) {
1114
const [selectedSkills, setSelectedSkills] = useState([]);
1215
const [searchState, setSearchState] = useState("done");
1316
const [skills, loadingError] = useData(getSkills);
1417

1518
let searchTimer;
1619

20+
const submitJob = () => {
21+
createJob({
22+
projectId,
23+
title: "placeholder",
24+
skills: selectedSkills,
25+
}).then(() => {
26+
navigate("/taas/myteams/createnewteam");
27+
});
28+
};
29+
1730
const toggleSkill = useCallback(
1831
(id) => {
1932
if (selectedSkills.includes(id)) {
@@ -58,7 +71,14 @@ function InputSkills() {
5871
<Completeness isDisabled buttonLabel="Submit Request" stage={2} />
5972
</div>
6073
) : (
61-
<div>Done!</div>
74+
<div styleName="page">
75+
<ResultCard />
76+
<Completeness
77+
buttonLabel="Submit Request"
78+
stage={3}
79+
onClick={submitJob}
80+
/>
81+
</div>
6282
);
6383
}
6484

0 commit comments

Comments
 (0)