forked from Automattic/mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjobs.pug
More file actions
141 lines (119 loc) · 2.93 KB
/
jobs.pug
File metadata and controls
141 lines (119 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
extends layout
block content
div
h2 Mongoose Jobs
style.
.job {
position: relative;
cursor: pointer;
border: 1px solid #eef0f1;
padding: 15px;
margin-bottom: 15px;
border-radius: 4px;
transition: all .2s ease-in-out;
}
.job .company-logo {
vertical-align: top;
display: inline-block;
margin-top: 0.25em;
margin-right: 0.75em;
}
.job .title {
color: #0971B2;
}
.job .company-logo img {
width: 60px;
height: auto;
border: 0px;
}
.job .description {
display: inline-block;
width: 600px;
margin-top: 0.25em;
cursor: pointer;
}
.job .company {
font-weight: bold;
}
.job:hover {
background-color: #eef0f1;
}
.job.active {
background-color: #eef0f1;
}
.job .at {
color: #495057;
}
.post .title {
font-size: 1.5em;
margin-bottom: 0.25em;
}
.post .tags {
margin-top: 1em;
}
.post .tags .tag {
color: white;
background-color: #208E96;
border-radius: 3px;
padding: 5px;
margin-right: 0.5em;
}
.post .tags .tag a {
color: white;
}
input[type="checkbox"] {
display: none;
}
input + div + div + .job-description {
display: none;
}
input:checked + div + div + .job-description {
display: block;
}
.job-description .apply {
font-size: 1.5em;
padding-top: 0.75em;
padding-bottom: 0.75em;
margin-top: 0.75em;
width: 180px;
background-color: #4DBA13;
text-align: center;
border-radius: 4px;
cursor: pointer;
margin-left: auto;
margin-right: auto;
color: white;
font-weight: bold;
}
div
each job in jobs
.post.job(id='job-' + job._id)
.company-logo
img(src=job.logo)
label.description(for='checkbox-' + job._id)
input(id='checkbox-' + job._id, type="checkbox")
div.title #{job.title}
div.at
span at
span.company #{job.company}
span.location • #{job.location}
div.job-description
div !{job.description}
a(href=job.url)
div.apply Apply
script window.jobs = !{JSON.stringify(jobs)};
script.
(function() {
if (window.location.hash != null && window.location.hash.length > 1) {
const jobId = window.location.hash.replace(/^#/, '');
const job = window.jobs.find(job => job._id === jobId);
if (job != null) {
document.querySelector('#job-' + job._id).classList.add('active');
document.querySelector('#checkbox-' + job._id).checked = true;
}
}
})();
h2 Add Your Own
div.
Hiring Node.js and MongoDB developers?
<a href="https://github.com/sponsors/mongoosejs">Sponsor Mongoose on GitHub to post your job here!</a>