This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +146
-2
lines changed Expand file tree Collapse file tree 4 files changed +146
-2
lines changed Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -6,14 +6,27 @@ import { useData } from "hooks/useData";
6
6
import { getSkills } from "services/skills" ;
7
7
import LoadingIndicator from "components/LoadingIndicator" ;
8
8
import SearchCard from "./components/SearchCard" ;
9
+ import ResultCard from "./components/ResultCard" ;
10
+ import { createJob } from "services/jobs" ;
11
+ import { navigate } from "@reach/router" ;
9
12
10
- function InputSkills ( ) {
13
+ function InputSkills ( { projectId } ) {
11
14
const [ selectedSkills , setSelectedSkills ] = useState ( [ ] ) ;
12
15
const [ searchState , setSearchState ] = useState ( "done" ) ;
13
16
const [ skills , loadingError ] = useData ( getSkills ) ;
14
17
15
18
let searchTimer ;
16
19
20
+ const submitJob = ( ) => {
21
+ createJob ( {
22
+ projectId,
23
+ title : "placeholder" ,
24
+ skills : selectedSkills ,
25
+ } ) . then ( ( ) => {
26
+ navigate ( "/taas/myteams/createnewteam" ) ;
27
+ } ) ;
28
+ } ;
29
+
17
30
const toggleSkill = useCallback (
18
31
( id ) => {
19
32
if ( selectedSkills . includes ( id ) ) {
@@ -58,7 +71,14 @@ function InputSkills() {
58
71
< Completeness isDisabled buttonLabel = "Submit Request" stage = { 2 } />
59
72
</ div >
60
73
) : (
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 >
62
82
) ;
63
83
}
64
84
You can’t perform that action at this time.
0 commit comments