From e82db85b13fcecebec0629439c66b2fc31ebf55e Mon Sep 17 00:00:00 2001 From: Peter French Date: Tue, 4 Mar 2025 16:06:32 +0100 Subject: [PATCH 1/8] feat: Manually append 'alliances' to department list --- webapp/app.py | 2 ++ webapp/greenhouse.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/webapp/app.py b/webapp/app.py index 7ad664db5..bb0b8a32a 100644 --- a/webapp/app.py +++ b/webapp/app.py @@ -141,6 +141,7 @@ def _get_sorted_departments(greenhouse, harvest): "people", "administration", "legal", + "alliances" ] sorted = {slug: departments[slug] for slug in sort_order} @@ -178,6 +179,7 @@ def _get_all_departments(greenhouse, harvest) -> tuple: {"slug": "people", "icon": "01ff5233-Human Resources.svg"}, {"slug": "administration", "icon": "a42f5ab5-Admin.svg"}, {"slug": "legal", "icon": "4e54c36b-Legal.svg"}, + {"slug": "alliances", "icon": "85d091f5-alliances.png"}, ] departments_overview = [] diff --git a/webapp/greenhouse.py b/webapp/greenhouse.py index c61c7ae18..dbd52ef95 100644 --- a/webapp/greenhouse.py +++ b/webapp/greenhouse.py @@ -354,6 +354,9 @@ def get_departments(self): response.raise_for_status() departments = json.loads(response.text)["custom_field_options"] + # Temporary fix until we move to new department list + departments.append({'id': 82559, 'name': 'Alliances'}) + return sorted( [Department(department["name"]) for department in departments], key=lambda dept: dept.name, From c785a1e3c0f607b6694191e85756a26870af8f78 Mon Sep 17 00:00:00 2001 From: Peter French Date: Tue, 4 Mar 2025 18:16:54 +0100 Subject: [PATCH 2/8] feat: Make department cards span 3 cols and hide departments with no vacancies --- static/sass/styles.scss | 8 ++++++++ templates/careers/index.html | 34 ++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/static/sass/styles.scss b/static/sass/styles.scss index 8089755c0..89384056d 100644 --- a/static/sass/styles.scss +++ b/static/sass/styles.scss @@ -317,6 +317,10 @@ $p-small-lh-diff: map-get($line-heights, default-text) - &:hover { text-decoration: underline; } + @media screen and (min-width: $breakpoint-large) { + font-size: #{map-get($font-sizes, h3-mobile)}rem; + line-height: map-get($line-heights, h3-mobile); + } } .p-department-cards__icon { @@ -340,6 +344,10 @@ $p-small-lh-diff: map-get($line-heights, default-text) - height: 2.25rem; padding-right: $spv--small; width: 2.25rem; + + @media screen and (min-width: $breakpoint-large) { + margin-bottom: $spv--large; + } } } } diff --git a/templates/careers/index.html b/templates/careers/index.html index 2d527bc81..455b0ebf1 100644 --- a/templates/careers/index.html +++ b/templates/careers/index.html @@ -79,23 +79,25 @@

Departments

From 57c1d93836b28911d9aec02029f50b7a39cb69e2 Mon Sep 17 00:00:00 2001 From: Peter French Date: Tue, 4 Mar 2025 19:29:37 +0100 Subject: [PATCH 3/8] feat: Build 'Alliances' careers landing page --- templates/careers/_base-department.html | 159 +++++++++--------- templates/careers/alliances.html | 35 ++++ .../careers/includes/_alliances-blog.html | 46 +++++ .../careers/includes/_alliances-intro.html | 11 ++ .../includes/_fast-track-jobs.html} | 16 +- 5 files changed, 188 insertions(+), 79 deletions(-) create mode 100644 templates/careers/alliances.html create mode 100644 templates/careers/includes/_alliances-blog.html create mode 100644 templates/careers/includes/_alliances-intro.html rename templates/{shared/_engineering-fast-track.html => careers/includes/_fast-track-jobs.html} (91%) diff --git a/templates/careers/_base-department.html b/templates/careers/_base-department.html index b98dcf51e..b1be03ab4 100644 --- a/templates/careers/_base-department.html +++ b/templates/careers/_base-department.html @@ -29,7 +29,7 @@

{% endif %} {% if fast_track_jobs %} - {% include 'shared/_engineering-fast-track.html' %} + {% include 'careers/includes/_fast-track-jobs.html' %} {% endif %} {% if featured_jobs and not fast_track_jobs %} @@ -87,90 +87,99 @@

{{ block_3_subheading }}

-
-
-
-

See for yourself the work we're doing

-
-
-
- +{% if not exclude_socials %} +
+
+
+

See for yourself the work we're doing

-
-
+
+
+ +
+
+ +{% endif %} + +{% if blog_heading_topic and blog_tag_id %} + {% with section_classes='p-strip', heading_topic=blog_heading_topic, tag_id=blog_tag_id, limit="3" %} + -{% with section_classes='p-strip', heading_topic=blog_heading_topic, tag_id=blog_tag_id, limit="3" %} - - -
-
-
-
-

Blogs

-

- Find out more about -
- {{ heading_topic }} -

-
-
-
- Loading... +
+

Blogs

+

+ Find out more about +
+ {{ heading_topic }} +

+
+
+
+ Loading... +
-
-