-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jmiras
authored and
jonas
committed
Nov 6, 2024
1 parent
73228ab
commit 74599dc
Showing
45 changed files
with
14,941 additions
and
1,592 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {Controller} from "@hotwired/stimulus"; | ||
import * as $ from 'jquery'; | ||
|
||
|
||
export default class extends Controller { | ||
static targets = ["track", "slide", "navButton"]; | ||
|
||
connect() { | ||
console.log(this.element) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
import { Controller } from "@hotwired/stimulus"; | ||
import * as $ from 'jquery' | ||
import $ from "jquery"; | ||
export default class extends Controller { | ||
static targets = [ | ||
"item" | ||
]; | ||
static targets = ["type", "typeContainer", "toggleIcon", "item"]; | ||
|
||
connect() { | ||
this.showingTypes = false; | ||
} | ||
|
||
filterByJobType(e) { | ||
e.preventDefault(); | ||
this.toggleJobTypesVisibility(); | ||
|
||
} | ||
toggleJobTypesVisibility() { | ||
this.showingTypes = !this.showingTypes; | ||
this.typeContainerTarget.classList.toggle('visible', this.showingTypes); | ||
this.toggleIconTarget.classList.toggle('visible', this.showingTypes); | ||
} | ||
filterItems(e) { | ||
const selectedType = e.currentTarget.textContent.trim(); | ||
this.itemTargets.forEach((item) => { | ||
item.style.display = "block"; | ||
}); | ||
this.itemTargets.forEach((item) => { | ||
if (item.getAttribute('data-type') !== selectedType) { | ||
item.style.display = "none"; | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
import { Controller } from "@hotwired/stimulus"; | ||
import * as $ from 'jquery'; | ||
export default class extends Controller { | ||
static targets = ['trigger', 'menu']; | ||
connect() { | ||
this.setupHover(); | ||
console.log('submenu working'); | ||
} | ||
import $ from 'jquery'; | ||
|
||
setupHover() { | ||
const _this = this; | ||
|
||
// Hover on the headline to show the submenu | ||
$(this.triggerTargets).hover( | ||
function () { | ||
$(this).siblings(_this.menuTarget).addClass('active'); | ||
}, | ||
function () { | ||
$(this).siblings(_this.menuTarget).removeClass('active'); | ||
} | ||
); | ||
export default class extends Controller { | ||
static targets = ['trigger', 'submenu', 'header']; | ||
|
||
// Keep submenu visible on hover | ||
$(this.menuTargets).hover( | ||
function () { | ||
$(this).addClass('active'); | ||
}, | ||
function () { | ||
$(this).removeClass('active'); | ||
} | ||
); | ||
connect() { | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { Controller } from "@hotwired/stimulus"; | ||
import $ from 'jquery'; | ||
import 'slick-carousel'; | ||
|
||
export default class extends Controller { | ||
static targets = ["slide", "navButton"]; | ||
|
||
connect() { | ||
console.log('Slick carousel initialized', this.element); | ||
$(this.slideTarget).slick({ | ||
slidesToShow: 4, | ||
slidesToScroll: 1, | ||
autoplay: true, | ||
autoplaySpeed: 2000, | ||
pauseOnHover:true, | ||
responsive: [ | ||
{ | ||
breakpoint: 780, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1, | ||
} | ||
}, | ||
{ | ||
breakpoint: 480, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
} | ||
} | ||
] | ||
}); | ||
|
||
this.setupNavigation(); | ||
|
||
$(this.slideTarget).on('afterChange', (event, slick, currentSlide) => { | ||
this.highlightActiveButton(currentSlide); | ||
}); | ||
} | ||
|
||
setupNavigation() { | ||
this.navButtonTargets.forEach((button) => { | ||
const index = button.dataset.index; | ||
|
||
button.addEventListener('click', () => { | ||
$(this.slideTarget).slick('slickGoTo', index); | ||
this.highlightActiveButton(index); | ||
}); | ||
}); | ||
} | ||
|
||
highlightActiveButton(index) { | ||
this.navButtonTargets.forEach((btn) => btn.classList.remove('active')); | ||
this.navButtonTargets[index].classList.add('active'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
.block-advance-text { | ||
.grid {display: grid;flex-direction: column;grid-template-columns: repeat(6, 1fr);grid-gap: 51px; | ||
.text-big {display: flex;flex-direction: column;grid-column: 2 /span 4; | ||
.copy{font-weight: 700;font-size: 2.4rem;line-height: 1.33em} | ||
.grid {display: grid;flex-direction: column; | ||
grid-template-columns: repeat(6, 1fr);gap: 51px; | ||
.text-big {display: flex;flex-direction: column; | ||
grid-column: 2 /span 4; | ||
.copy{font-weight: 700;font-size: 2.4rem;line-height: 1.33em} | ||
} | ||
.headline-breaker{grid-column: 2 / span 4; | ||
.headline{@include boldHeadline;text-transform: uppercase} | ||
} | ||
.one-column {grid-column: 1 /span 3; | ||
} | ||
.one-column-wide {display: flex;flex-direction: column;grid-column: 2 /span 4; | ||
.one-column-wide {display: flex;flex-direction: column; | ||
grid-column: 2 /span 4; | ||
} | ||
.two-column {grid-column: span 6;display: flex;flex-direction: column; | ||
.two-column {grid-column: span 6; | ||
display: flex;flex-direction: column; | ||
.text-container {display: flex;gap: 51px;} | ||
.two-column-btn {margin-left: auto} | ||
} | ||
.theme-cta{@include cta;} | ||
.headline{padding: 5px 0 15px 0;@include typoHeadline;} | ||
.overline{@include typoOverline;} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,53 @@ | ||
.block-card { | ||
.text-grid {display: flex;gap: 50px; | ||
.text-grid { | ||
display: flex; | ||
gap: 50px; | ||
.card-text { | ||
flex: 1 | ||
} | ||
} | ||
.headline {padding: 5px 0 15px 0;@include typoHeadline;} | ||
.overline{@include typoOverline;} | ||
.gradient-grid{display: flex;gap:50px; | ||
.card-gradient{display: flex;flex-direction: column;justify-content: center;z-index: 3} | ||
.gradient-grid { | ||
display: flex; | ||
.media-container { | ||
.headerbild-img { | ||
z-index: -2; | ||
} | ||
.gradient { | ||
@include imgCover;left: 50%; | ||
background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%); | ||
z-index: 1; | ||
} | ||
} | ||
.card-gradient { | ||
flex: 1;display: flex;flex-direction: column;justify-content: center; | ||
z-index: 1; | ||
} | ||
} | ||
.stacked-grid{ | ||
display: flex;flex-direction:column;grid-template-columns: 1fr;gap: 50px;margin: 0 auto;max-width: 960px; | ||
.stacked-grid { | ||
display: flex;flex-direction: column;gap: 50px; | ||
margin: 0 auto; | ||
max-width: 960px; | ||
.media-container { | ||
padding-bottom: 55%; | ||
} | ||
} | ||
.theme-cta{@include cta;} | ||
.media-container{position: relative; | ||
.headerbild-img {position: relative;z-index: -2;} | ||
.gradient-img {position: absolute;top: 0;right: 0;z-index: 1;left: 50%;} | ||
.media-container { | ||
flex: 1; | ||
padding-bottom: 26.5%; | ||
position: relative; | ||
} | ||
img{ | ||
.headerbild-img { | ||
@include imgCover; | ||
} | ||
img { | ||
width: 100%; | ||
display: block; | ||
} | ||
} | ||
@include screenMaxWidth(1024px){ | ||
.block-card{ | ||
.media-container{flex: 0;} | ||
.text-grid{gap: 0} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
.block-content { | ||
.flex-grid {display: grid;grid-template-columns: repeat(3, 1fr);grid-gap: 51px; | ||
.image-container {grid-column: span 1; | ||
img{width: 100%;} | ||
.texts-container{padding-top: 20px} | ||
} | ||
.flex-grid { | ||
display: grid;grid-template-columns: repeat(3, 1fr);gap: 51px; | ||
.texts-container {padding-top: 20px;} | ||
} | ||
.headline{padding: 5px 0 15px 0;@include typoHeadline;} | ||
.overline{@include typoOverline;} | ||
.list-grid {display: grid;grid-gap: 51px; | ||
.list-img-wrapper {grid-column: span 1;display: flex;gap: 50px;justify-content: center;align-items: center; | ||
img {width: 100%} | ||
.list-grid {display: flex;flex-direction: column; gap: 51px; | ||
.list-img-wrapper {display: flex;gap: 50px; | ||
.image-container { | ||
flex: 1; | ||
padding-bottom: 17.5%; | ||
position: relative; | ||
} | ||
.texts-container {flex: 2;} | ||
} | ||
} | ||
.theme-cta{@include cta();} | ||
.image-container { | ||
padding-bottom: 55.5%; | ||
position: relative; | ||
} | ||
img {display: block;@include imgCover;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.