Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hiring marquee display bug; add SSE job listing #635

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<lil-header class="block relative z-header">
{% if page.slug == "home" %}
{% include hiring-banner.html title="" %}
{% include hiring-banner.html title="Senior Software Engineer" %}
{% endif %}
<header class="pt-24 md:pt-36 nav-container">
<div class="flex items-center justify-between">
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/hiring-banner.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if include.title.size > 0%}
{% if include.title.size > 0 %}
<lil-marquee class="block marquee bg-purple py-6 md:py-10 px-20 uppercase font-mono text-14 md:text-16 leading-120 tracking-[0.02em] md:tracking-[0.07em] text-announcement whitespace-nowrap overflow-hidden relative z-[100]">
<a href="{{ site.baseurl }}/jobs/" class="marquee__inner">
<div class="marquee__part inline-block">* We’re hiring — {{ include.title }} </div>
Expand Down
8 changes: 8 additions & 0 deletions app/_jobs/senior_software_engineer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Senior Software Engineer — Full Stack
category: staff
order: 1
---
As a member of our engineering team, the Senior Software Engineer will work across our various tools, applications, and experiments to fulfill LIL’s mission to bring library principles to technological frontiers. The ideal candidate will have experience building performant, testable, maintainable, and fault-tolerant products and tools at scale, for audiences both technical and non-technical.

To apply: <a href="https://sjobs.brassring.com/TGnewUI/Search/Home/Home?partnerid=25240&siteid=5341#jobDetails=2011857_5341" class="interactive-link dark reverse">Application form</a>. In addition to Harvard’s standard application form, please provide a short cover letter explaining how your career trajectory and interests align with our work and mission.
11 changes: 11 additions & 0 deletions app/assets/javascripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,17 @@ function setupSwup() {
event.url?.contains('blog') || event.state?.source !== 'swup'
},
});

const lilMarqueeHandler = (visit) => {
let isHomepage = visit.to.url === '/';
let elements = document.getElementsByTagName('lil-marquee');
Array.from(elements).map(element => {
isHomepage ? element.classList.remove('hidden') : element.classList.add('hidden');
});
};

// Register handler to hide marquee if user navigates away from homepage
swup.hooks.on('content:replace', lilMarqueeHandler);
}

const setup = () => {
Expand Down