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

Commit df67d36

Browse files
author
dengjun
committed
ci:adding empty UI
1 parent caad185 commit df67d36

File tree

6 files changed

+65
-7
lines changed

6 files changed

+65
-7
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const App = () => {
112112
</div>
113113
<div className="sidebar-footer">
114114
<a
115-
className="button button-primary"
115+
className="button"
116116
href="https://discussions.topcoder.com/discussion/8870/new-beta-site-discuss?new=1"
117117
target="_blank"
118118
>

src/components/Empty/index.jsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React from "react";
2+
import { EMPTY_GIGS_TEXT } from "../../constants";
3+
import Button from "../Button";
4+
import "./styles.scss";
5+
6+
const Empty = () => {
7+
return (
8+
<div styleName="empty-wrapper">
9+
<div styleName="empty-inner">
10+
<h6>{EMPTY_GIGS_TEXT}</h6>
11+
<span>Interested in getting a gig?</span>
12+
<Button
13+
isPrimary
14+
size="lg"
15+
onClick={() => {
16+
window.location.href = `${process.env.URL.BASE}/gigs`;
17+
}}
18+
>
19+
VIEW GIGS
20+
</Button>
21+
</div>
22+
</div>
23+
);
24+
};
25+
26+
export default Empty;

src/components/Empty/styles.scss

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@import "styles/variables";
2+
@import "styles/mixins";
3+
@import "styles/animations";
4+
5+
.empty-wrapper {
6+
width: 100%;
7+
border-radius: $border-radius-lg;
8+
background-color: #ffffff;
9+
padding: 81px 0px 330px 0px;
10+
min-width: 650px;
11+
.empty-inner {
12+
display: flex;
13+
flex-direction: column;
14+
justify-content: center;
15+
align-items: center;
16+
& > h6 {
17+
font-size: 20px;
18+
color: $tc-black;
19+
line-height: 24px;
20+
@include barlow-semibold;
21+
}
22+
& > span {
23+
font-size: 16px;
24+
color: $tc-black;
25+
line-height: 26px;
26+
margin-top: 30px;
27+
@include roboto-regular;
28+
}
29+
& > button {
30+
margin-top: 20px;
31+
letter-spacing: 0.8px;
32+
}
33+
}
34+
}

src/components/Loading/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
width: 100%;
77
border-radius: $border-radius-lg;
88
background-color: rgba(42,42,42, 0.07);
9-
padding: 232px 0px;
9+
padding: 223px 0px;
1010
.loading-inner {
1111
display: flex;
1212
flex-direction: column;

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,6 @@ export const GIG_STATUS_TOOLTIP = {
351351
};
352352

353353
export const EMPTY_GIGS_TEXT =
354-
"Looks like you haven't applied to any gig opportunities yet.";
354+
"LOOKS LIKE YOU HAVEN'T APPLIED TO ANY GIG OPPORTUNITIES YET.";
355355

356356
export const CHECKING_GIG_TIMES = 3;

src/containers/MyGigs/index.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { connect } from "react-redux";
55
import Modal from "../../components/Modal";
66
import Button from "../../components/Button";
77
import Loading from "../../components/Loading";
8+
import Empty from "../../components/Empty";
89
import JobListing from "./JobListing";
910
import actions from "../../actions";
10-
import { EMPTY_GIGS_TEXT } from "../../constants";
1111
import * as utils from "../../utils";
1212

1313
import UpdateGigProfile from "./modals/UpdateGigProfile";
@@ -98,9 +98,7 @@ const MyGigs = ({
9898
</Button>
9999
</div>
100100
</h1>
101-
{!checkingGigs && myGigs && myGigs.length == 0 && (
102-
<h3 styleName="empty-label">{EMPTY_GIGS_TEXT}</h3>
103-
)}
101+
{!checkingGigs && myGigs && myGigs.length == 0 && <Empty />}
104102
{!checkingGigs && myGigs && myGigs.length > 0 && (
105103
<JobListing
106104
jobs={myGigs}

0 commit comments

Comments
 (0)