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

Add newer content #379

Merged
merged 6 commits into from
Oct 20, 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
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = function (eleventyConfig) {
"http://api.dojotoolkit.org*",
"http://www.webdesignermagazine.nl/*",
"http://meetup.com*",
"https://github.com/fronteers/website*",
],
excludeInputs: [],
callback: null,
Expand Down
1 change: 1 addition & 0 deletions src/_assets/css/common/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ main section > .h {
padding: 0;
}

.list-item--job,
.list-item--blog {
margin-block: var(--spacing-double);
}
Expand Down
1 change: 0 additions & 1 deletion src/_includes/layouts/home.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
{%- include partials/homepage/active-vacancies headerlvl:"h2" partialTitle:translations[locale].blockTitles.activeVacancies -%}
{%- endif -%}


<!--{%- include partials/homepage/banner-conference headerlvl:"h2" type:"greater" partialTitle:translations[locale].blockTitles.conferenceBanner link:"https://en.wikipedia.org/wiki/" image:"assets/images/fronteers-conference.jpg" -%} -->
<!--{%- include partials/homepage/banner-conference headerlvl:"h2" type:"curly" partialTitle:translations[locale].blockTitles.conferenceBanner link:"https://en.wikipedia.org/wiki/" image:"assets/images/fronteers-conference.jpg" -%} -->
<!--{%- include partials/homepage/banner-conference headerlvl:"h2" type:"none" partialTitle:translations[locale].blockTitles.conferenceBanner link:"https://en.wikipedia.org/wiki/" image:"assets/images/fronteers-conference.jpg" -%} -->
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/layouts/jobs-category.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{%- for post_category in post_categories -%}
{%- assign current_category = post_category | downcase -%}
{%- if category.title == current_category -%}
<li class="list-item ">
<li class="list-item list-item--job">
{%- include partials/job headerlvl:"h3" index:forloop.index job:post -%}
</li>
{%- endif -%}
Expand Down
3 changes: 1 addition & 2 deletions src/_includes/layouts/jobs-home.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
<div class="inner-wrapper">
{%- include partials/utility/dynamic-category-loop level: "h3" type: "job" typeURL: translations[locale].jobsURL -%}


<ul class="desktop-rows mobile-slider">
{%- for job in pagination.items limit:pagination.size -%}
<li class="list-item ">
<li class="list-item list-item--job">
{%- include partials/job headerlvl:"h3" index:forloop.index -%}
</li>
{%- endfor -%}
Expand Down
4 changes: 0 additions & 4 deletions src/_includes/partials/blogpost.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ padding-inline: var(--spacing);
padding-block-start: 0;
margin-top: var(--spacing);
}
/*
@media (min-width: 54.875em) {

} */

.blog-author {
padding-inline-end: var(--spacing);
Expand Down
28 changes: 23 additions & 5 deletions src/_includes/partials/homepage/active-vacancies.liquid
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
{%- for job in jobs limit: 5 -%}
{%- assign jobDate = job.data.date | date: "%Y%m%d" | plus: 0 -%}
{%- if jobDate >= twoMonthsAgo -%}
{%- assign vacancyCount = vacancyCount | plus: 1 -%}
{%- endif -%}
{%- endfor -%}

<section data-partial="homepage/active-vacancies" class="inner-wrapper">
{%- include partials/utility/dynamic-headerlevel level: headerlvl title: partialTitle -%}
{%- if vacancyCount > 0 -%}
{%- include partials/utility/dynamic-headerlevel level: headerlvl title: partialTitle -%}
{%- endif -%}

<ul class="desktop-rows mobile-slider">
{%- for job in jobs limit: 2 -%}
<li class="list-item ">
{%- include partials/job headerlvl: "h3" index: forloop.index -%}
</li>
{%- assign today = "now" | date: "%Y%m%d" -%}
{%- assign twoMonthsAgo = "now" | date: "%Y%m%d" | minus: 200 -%}

{%- for job in jobs limit: 5 -%}
{%- assign jobDate = job.data.date | date: "%Y%m%d" | plus: 0 -%}
{%- if jobDate >= twoMonthsAgo -%}
<li class="list-item list-item--job">
{%- include partials/job headerlvl: "h3" index: forloop.index -%}
</li>
{%- endif -%}
{%- endfor -%}
</ul>

{%- if vacancyCount > 5 -%}
<div class="button-wrapper">
<a href="{{ translations[locale].blockTitles.jobsPath }}" class="button button-parentheses">
{{ translations[locale].blockTitles.viewOurJobs }}
</a>
</div>
{%- endif -%}
</section>
186 changes: 100 additions & 86 deletions src/_includes/partials/job.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
.job {
background: white;
display: flex;
block-size: 100%;
flex-direction: column;
margin-block-end: var(--spacing-double);
margin-block-end: var(--spacing-double);
}

@media (min-width: 54.875em) {
.job {
max-height: 340px;
margin-block-end: 0;
}
}

.job-graphic-wrapper {
block-size: 200px;
}
.job:has(> .job-graphic-wrapper) {
margin-block-end: 0;

display: grid;
grid-template-columns: 300px 1fr max-content;
grid-template-areas:
'image content content'
'image byline byline'
'image . readmore';
}

.job-content-wrapper {
display: flex;
flex-direction: column;
height: 100%;
position: relative;
font-size: var(--font-size-18);
.job {
max-height: 360px;
margin-block-end: 0;
display: grid;
grid-template-columns: 1fr max-content;
grid-template-areas:
'content content'
'byline byline'
'. readmore';
}
}

.job-content-wrapper .h {
margin: unset;
.job .h {
margin: 0;
}

.job-graphic {
Expand All @@ -37,48 +40,62 @@
aspect-ratio: 4 / 2;
}

.job-1 .job-graphic,
.job-4 .job-graphic {
@media (min-width: 54.875em) {
.job-graphic-wrapper {
grid-area: image;
block-size: 200px;
}
}

.job-1 .job-graphic {
-webkit-clip-path: url(#greater-than-down-small);
clip-path: url(#greater-than-down-small);
}

.job-2 .job-graphic,
.job-5 .job-graphic {
.job-2 .job-graphic {
-webkit-clip-path: url(#curly-brace-down-small);
clip-path: url(#curly-brace-down-small);
}

.job-3 .job-graphic,
.job-6 .job-graphic {
.job-3 .job-graphic {
-webkit-clip-path: url(#parenthesis-down-small);
clip-path: url(#parenthesis-down-small);
}

.job-content {
padding: var(--spacing);
padding-block-end: unset;
padding-block-end: 0;
height: 100%;

display: flex;
flex-direction: column;
}

@media (min-width: 54.875em) {
.job-content {
grid-area: content;
}
}

.job-content p {
margin-block-end: unset;
margin-block-end: 0;
}

.job-summary {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 5;
line-clamp: 5;

font-size: var(--font-size-18);
line-height: 1.5;
overflow: hidden;
-webkit-line-clamp: 3;
line-clamp: 3;
}

.job-meta {
padding: var(--spacing);
padding-block-start: unset;
margin-top: var(--spacing);
padding-inline: var(--spacing);
padding-block-start: 0;
margin-top: var(--spacing);
}

.job-author {
Expand All @@ -89,98 +106,95 @@
padding-inline-end: var(--spacing);
}

.job .button-readmore {
margin-inline-start: auto;
.job-readmore {
text-align: right;
}

.job-tags {
list-style-type: none;
margin: unset;
padding: unset;
margin: 0;
padding: 0;
margin-block-start: var(--spacing);
margin-block-end: var(--spacing);
}

.job-tags li {
display: inline-block;
display: inline-block;
}

@media all and (min-width: 46.875rem) {
.job {
flex-direction: row;
flex-direction: row;
}

.job-graphic-wrapper {
block-size: 100%;
inline-size: 100%;
flex: 0 0 300px;
text-align: center;
background-size: cover;
max-width: 300px;
block-size: 100%;
inline-size: 100%;
flex: 0 0 300px;
text-align: center;
background-size: cover;
max-width: 300px;
}

.job-summary {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
line-clamp: 4;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
line-clamp: 4;
}

.job-meta {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
padding-block-end: 0;
margin-block-start: var(--spacing);
margin-block-end: var(--spacing);
}

.job-meta {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
padding-block-end: unset;
margin-block-start: var(--spacing);
margin-block-end: var(--spacing);
.job-readmore {
grid-area: readmore;
}

.job-tags {
margin: unset;
margin: 0;
}

.job-1 .job-graphic,
.job-4 .job-graphic {
-webkit-clip-path: url(#greater-than-right-small);
clip-path: url(#greater-than-right-small);
.job-1 .job-graphic {
-webkit-clip-path: url(#greater-than-right-small);
clip-path: url(#greater-than-right-small);
}

.job-2 .job-graphic,
.job-5 .job-graphic {
-webkit-clip-path: url(#curly-brace-right-small);
clip-path: url(#curly-brace-right-small);
.job-2 .job-graphic {
-webkit-clip-path: url(#curly-brace-right-small);
clip-path: url(#curly-brace-right-small);
}

.job-3 .job-graphic,
.job-6 .job-graphic {
-webkit-clip-path: url(#parenthesis-right-small);
clip-path: url(#parenthesis-right-small);
.job-3 .job-graphic {
-webkit-clip-path: url(#parenthesis-right-small);
clip-path: url(#parenthesis-right-small);
}
}

@media all and (min-width: 52.875rem) {
.job-summary {
-webkit-line-clamp: 4;
line-clamp: 4;
}
.job-summary {
-webkit-line-clamp: 4;
line-clamp: 4;
}
}

@media all and (min-width: 54.875rem) {
.job-summary {
-webkit-line-clamp: 5;
line-clamp: 5;
}

.job-meta {
margin-block-start: unset;
}
.job-summary {
-webkit-line-clamp: 5;
line-clamp: 5;
}
}

@media all and (min-width: 60.875rem) {
.job-summary {
-webkit-line-clamp: 5;
.job-summary {
-webkit-line-clamp: 5;
line-clamp: 5;
}
}
Loading