This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +65
-7
lines changed Expand file tree Collapse file tree 6 files changed +65
-7
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 66 width : 100% ;
77 border-radius : $border-radius-lg ;
88 background-color : rgba (42 ,42 ,42 , 0.07 );
9- padding : 232 px 0px ;
9+ padding : 223 px 0px ;
1010 .loading-inner {
1111 display : flex ;
1212 flex-direction : column ;
Original file line number Diff line number Diff line change @@ -351,6 +351,6 @@ export const GIG_STATUS_TOOLTIP = {
351351} ;
352352
353353export 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
356356export const CHECKING_GIG_TIMES = 3 ;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import { connect } from "react-redux";
55import Modal from "../../components/Modal" ;
66import Button from "../../components/Button" ;
77import Loading from "../../components/Loading" ;
8+ import Empty from "../../components/Empty" ;
89import JobListing from "./JobListing" ;
910import actions from "../../actions" ;
10- import { EMPTY_GIGS_TEXT } from "../../constants" ;
1111import * as utils from "../../utils" ;
1212
1313import 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 }
You can’t perform that action at this time.
0 commit comments