Skip to content

Commit bdc7987

Browse files
authored
Refactor: jobs page styling (#87)
2 parents 885b779 + 6036943 commit bdc7987

File tree

5 files changed

+67
-27
lines changed

5 files changed

+67
-27
lines changed

_includes/certs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% for cert in site.data.certs %}
22
<div>
33
<h2 class="san-serif heading">{{ cert.name }}</h2>
4-
<ul class="no-bullets">
4+
<ul class="list-unstyled">
55
{% for value in cert.values %}
66
<li>{{ value }}</li>
77
{% endfor %}

_layouts/default.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
large_logo: false
3+
---
14
<!DOCTYPE html>
25
<html lang="en">
36

@@ -38,7 +41,12 @@
3841

3942
<body>
4043
<header>
41-
<a href="/"><img class="logo" src="/assets/compiler_logo_stacked.svg" alt="Compiler logo"></a>
44+
{% if page.large_logo %}
45+
{% assign logo_class = "logo-lg" %}
46+
{% else %}
47+
{% assign logo_class = "logo" %}
48+
{% endif %}
49+
<a href="/"><img class="{{ logo_class }}" src="/assets/compiler_logo_stacked.svg" alt="Compiler logo"></a>
4250
</header>
4351

4452
<main>

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: default
33
description: We build open-source, human-centered, secure, agile solutions to support the delivery of government services that increase equity of opportunity.
4+
large_logo: true
45
---
56
<div class="row py-5">
67
<h1 class="san-serif">we build software for the government</h1>

jobs.html

+20-10
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@
22
layout: default
33
title: Jobs with Compiler
44
---
5-
<h1>Jobs</h1>
5+
<div class="jobs container mt-5">
6+
<div class="row">
7+
<div class="col-md-8 offset-md-2 mt-5">
8+
<span class="pill rounded p-2">Careers</span>
9+
<h1>Compiler is a woman-owned software consultancy that’s passionate about making government tech solutions
10+
accessible for all.</h1>
611

7-
<h2>Accepting applications</h2>
8-
<ul id="open" class="mx-3"></ul>
12+
<h2 class="mt-5 fs-5">Open roles</h2>
13+
<ul id="open" class="list-unstyled text-decoration-none"></ul>
914

10-
<h2>Past opportunities</h2>
11-
<ul id="closed" class="mx-3"></ul>
15+
<h2 class="mt-5 fs-5">Past roles</h2>
16+
<ul id="closed" class="list-unstyled"></ul>
1217

13-
<p class="mb-5">
14-
Missed a past opportunity? <a href="http://eepurl.com/h6qTKL">Subscribe</a> to our mailing list, as we are always
15-
looking for great candidates.
16-
</p>
18+
<p class="my-5">
19+
Missed a past opportunity? <a href="http://eepurl.com/h6qTKL">Subscribe</a> to our mailing list, as we
20+
are always looking for great candidates.
21+
</p>
22+
23+
24+
</div>
25+
</div>
26+
</div>
1727

1828
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" crossorigin="anonymous"></script>
1929
<script>
@@ -30,7 +40,7 @@ <h2>Past opportunities</h2>
3040
const open_date = DateTime.fromISO(job.open_date).startOf("day");
3141
const close_date = DateTime.fromISO(job.close_date).endOf("day");
3242

33-
if(open_date <= now && close_date >= now) {
43+
if (open_date <= now && close_date >= now) {
3444
open_jobs.push(job);
3545
}
3646
else {

styles/base.css

+36-15
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--navy: #223061;
88
--off-black: #262626;
99
--black: #000000;
10-
--grey: #EDEDED;
10+
--grey: #878787;
1111
--white: #FFFFFF;
1212
}
1313

@@ -54,29 +54,34 @@ a {
5454
transition: 250ms;
5555
}
5656

57+
li>a {
58+
text-decoration: none;
59+
}
60+
5761
a:hover,
5862
a:focus {
5963
color: var(--green);
64+
text-decoration: underline;
6065
}
6166

62-
ul.no-bullets {
63-
padding-left: 0;
64-
}
65-
66-
ul.no-bullets li {
67-
list-style-type: none;
68-
padding: 0;
69-
margin: 16px 0;
67+
.certs li {
68+
margin: 1rem 0;
7069
}
7170

7271
@media (min-width: 992px) {
73-
ul.no-bullets li {
72+
.certs li {
7473
margin: inherit 0 0;
7574
}
7675
}
7776

78-
li.certs {
79-
padding-bottom: 0.75rem;
77+
.jobs li {
78+
margin: 1rem 0;
79+
}
80+
81+
@media (min-width: 992px) {
82+
.jobs li {
83+
margin: 0.5rem 0 0;
84+
}
8085
}
8186

8287
/*#region Font Family */
@@ -184,17 +189,29 @@ h6 {
184189
background-color: var(--green);
185190
}
186191

192+
.pill {
193+
font-size: 0.75rem;
194+
font-family: "Source Code Pro Regular";
195+
font-weight: 600;
196+
line-height: 120%;
197+
letter-spacing: 0.075rem;
198+
text-transform: uppercase;
199+
color: var(--grey);
200+
border: 1px solid var(--grey);
201+
border-radius: 0.375rem;
202+
}
203+
187204
/* Header */
188205

189206
:root {
190207
--header-margin-left: -5px;
191-
--logo-width: 15rem;
208+
--logo-lg-width: 15rem;
192209
}
193210

194211
@media (min-width: 992px) {
195212
:root {
196213
--header-margin-left: -10px;
197-
--logo-width: 20rem;
214+
--logo-lg-width: 20rem;
198215
}
199216
}
200217

@@ -203,8 +220,12 @@ header {
203220
/* account for padding within the Compiler logo*/
204221
}
205222

223+
.logo-lg {
224+
width: var(--logo-lg-width);
225+
}
226+
206227
.logo {
207-
width: var(--logo-width);
228+
width: 5.5rem;
208229
}
209230

210231
/* Main */

0 commit comments

Comments
 (0)