Skip to content

Commit 32d8120

Browse files
committed
Show banner when no jobs listed
1 parent cffddb2 commit 32d8120

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/components/Jobs.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ import React from "react";
33
import Job from './Job';
44

55
const Jobs = ({ jobs }) => {
6+
if (jobs.length == 0) {
7+
return (
8+
<div className="jobList">
9+
<div className="noJobs">
10+
No jobs currently listed 😢&nbsp; <a href="https://github.com/numfocus/jobs-board#posting-a-job">Make a PR!</a>
11+
</div>
12+
</div>
13+
)
14+
}
615
return (
716
<div className="jobList">
817
{

src/styles/global.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,8 @@ a {
141141
.badge:hover .tooltip {
142142
visibility: visible;
143143
}
144+
.noJobs {
145+
padding: 2rem;
146+
font-size: 200%;
147+
color: gray;
148+
}

0 commit comments

Comments
 (0)