Skip to content

Commit bc8180b

Browse files
author
dengjun
committed
ci:adding buttons
1 parent b09a826 commit bc8180b

File tree

5 files changed

+119
-1
lines changed

5 files changed

+119
-1
lines changed

src/shared/components/Gigs/GigApply/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ export default function GigApply(props) {
108108
<Link to={`${config.GIGS_PAGES_PATH}`}>VIEW OTHER GIGS</Link>
109109
</React.Fragment>
110110
) : (
111-
<a href={`${config.GIGS_PAGES_PATH}`} styleName="primaryBtn">GO TO GIGS LIST</a>
111+
<React.Fragment>
112+
<a href={`${config.GIGS_PAGES_PATH}`} styleName="gig-list-btn">GO TO GIGS LIST</a>
113+
<a href={`${config.PLATFORM_SITE_URL}/earn/my-gigs`} styleName="primaryBtn">CHECK GIG APPLICATION STATUS</a>
114+
</React.Fragment>
112115
)
113116
}
114117
</div>

src/shared/components/Gigs/GigApply/style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@
313313
margin-left: 20px;
314314
}
315315
}
316+
.gig-list-btn {
317+
margin-right: 12px;
318+
}
316319
}
317320
/* stylelint-enable */
318321
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from 'react';
2+
import { config, Link } from 'topcoder-react-utils';
3+
import BannerInfoIcon from 'assets/images/banner-info.svg';
4+
import './style.scss';
5+
6+
const GigHeader = () => {
7+
return (
8+
<div
9+
styleName="gig-header"
10+
>
11+
<div styleName="content">
12+
<div styleName="banner-info">
13+
<BannerInfoIcon />
14+
</div>
15+
<span>
16+
You have 3 applied Gigs in the system
17+
</span>
18+
</div>
19+
20+
<div styleName="row-btn">
21+
<Link styleName="primary-white-md" to={`${config.PLATFORM_SITE_URL}/earn/my-gigs`}>CHECK GIG APPLICATION STATUS</Link>
22+
</div>
23+
</div>
24+
);
25+
};
26+
27+
export default GigHeader;
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
@import "~styles/mixins";
2+
@import "~components/GUIKit/Assets/Styles/default";
3+
@import "~components/Contentful/default";
4+
5+
.gig-header {
6+
@include roboto-medium;
7+
8+
@include xs-to-sm {
9+
height: 81px;
10+
line-height: 22px;
11+
padding-left: 20px;
12+
}
13+
14+
display: flex;
15+
justify-content: space-between;
16+
flex-direction: row;
17+
align-items: center;
18+
margin-top: 15px;
19+
height: 70px;
20+
background: linear-gradient(90deg, #6F308B 0%, #1470AC 100%);
21+
border-radius: 10px;
22+
color: #fff;
23+
font-size: 16px;
24+
25+
.content {
26+
display: flex;
27+
justify-content: space-between;
28+
flex-direction: row;
29+
align-items: center;
30+
color: #fff;
31+
32+
.banner-info {
33+
width: 24px;
34+
height: 24px;
35+
margin-left: 20px;
36+
margin-right: 10px;
37+
38+
@include xs-to-sm {
39+
display: none;
40+
}
41+
}
42+
43+
@include xs-to-sm {
44+
width: 80%;
45+
}
46+
}
47+
48+
.row-btn {
49+
display: flex;
50+
justify-content: flex-end;
51+
flex: 1;
52+
padding-right: 20px;
53+
54+
@include xs-to-sm {
55+
justify-content: flex-start;
56+
}
57+
58+
button.primary-white-md {
59+
outline: none;
60+
61+
@include primary-white;
62+
@include md;
63+
64+
&:hover {
65+
@include primary-white;
66+
}
67+
}
68+
}
69+
70+
.banner-close {
71+
width: 14px;
72+
height: 14px;
73+
margin-right: 30px;
74+
75+
&:hover {
76+
cursor: pointer;
77+
}
78+
79+
@include xs-to-sm {
80+
margin-bottom: 20px;
81+
}
82+
}
83+
}

src/shared/containers/Gigs/RecruitCRMJobs.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import IconBlackLocation from 'assets/images/icon-black-location.svg';
1717
import { config, Link, isomorphy } from 'topcoder-react-utils';
1818
import { getQuery, updateQuery } from 'utils/url';
1919
import { withOptimizely } from '@optimizely/react-sdk';
20+
import GigHeader from 'components/Gigs/GigHeader';
2021
import './jobLisingStyles.scss';
2122

2223
const cookies = require('browser-cookies');
@@ -249,6 +250,7 @@ class RecruitCRMJobsContainer extends React.Component {
249250
<Dropdown label="Location" onChange={this.onLocation} options={locations} size="xs" />
250251
<Dropdown label="Sort by" onChange={this.onSort} options={sortByOptions} size="xs" />
251252
</div>
253+
<GigHeader />
252254
<div styleName="jobs-list-container">
253255
{
254256
jobsToDisplay.length

0 commit comments

Comments
 (0)