Commit 71a93913 authored by Michael Apfelthaler's avatar Michael Apfelthaler

[BUGFIX] Multiple Adjustments

parent 9a007e3d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% set image = gridElement.image.one() %} {% set image = gridElement.image.one() %}
<div class="content-grid {% if loop.index is even %} reverse {% endif %}"> <div class="content-grid {% if loop.index is even %} reverse {% endif %}">
<img class="content-image" src="{{image.url}}" alt=""> <img class="content-image" src="{{ craft.app.sites.primarySite.baseUrl}}/{{image.url}}" alt="">
<div class="content-text"> <div class="content-text">
{{ gridElement.text }} {{ gridElement.text }}
</div> </div>
......
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
{% for page in nav %} {% for page in nav %}
<a href="{{page.href}}" title="{{page.title}}" class="menu-item">{{page.title}}</a> <a href="{{page.href}}" title="{{page.title}}" class="menu-item">{{page.title}}</a>
{% endfor %} {% endfor %}
<span class="menu-item">
<a href="{{ siteSwitcher('default') }}" class="menu-item">DE</a>
<span class="divider">/</span>
<a href="{{ siteSwitcher('en') }}" class="menu-item">EN</a>
</span>
</nav> </nav>
</div> </div>
</header> </header>
\ No newline at end of file
<div class="projects"> <div>
<h2 class="component_headline">Laufende Projekte</h2> <h2 class="component_headline">Laufende Projekte</h2>
{% for newsElement in craft.entries.section('projects').currentStatus('ongoing').limit(3) %} {% for newsElement in craft.entries.section('projects').currentStatus('ongoing').limit(3) %}
{% set image = newsElement.images.one() %} {% set image = newsElement.images.one() %}
<div class="image-text"> <a href="{{newsElement.url}}" class="image-text">
<img class="content-image" src="{{image.url}}" alt="{{image.title}}"> <img class="content-image" src="{{image.url}}" alt="{{image.title}}">
<div> <div>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<p>{{ newsElement.shortDescription|length > 100 ? newsElement.shortDescription|slice(0, 100) ~ '...' <p>{{ newsElement.shortDescription|length > 100 ? newsElement.shortDescription|slice(0, 100) ~ '...'
:newsElement.shortDescription }}</p> :newsElement.shortDescription }}</p>
</div> </div>
</div> </a>
{% endfor %} {% endfor %}
<h2 class="component_headline mt64">Zukünftige Projekte</h2> <h2 class="component_headline mt64">Zukünftige Projekte</h2>
......
...@@ -102,17 +102,20 @@ main { ...@@ -102,17 +102,20 @@ main {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 50px;
z-index: 99; z-index: 99;
} }
#menu>a {
#menu a { padding: 16px 32px
}
#menu a, #menu .divider {
color: white; color: white;
text-decoration: none; text-decoration: none;
font-size: 1.4em; font-size: 1.4em;
} }
#menu .divider {
.sticky #menu a { padding: 4px;
}
.sticky #menu a, .sticky #menu .divider {
color: black; color: black;
} }
...@@ -388,9 +391,6 @@ section h2 { ...@@ -388,9 +391,6 @@ section h2 {
gap: 40px; gap: 40px;
} }
.projects img {
margin-bottom: 20px;
}
footer { footer {
border-top: 1px solid #DDD; border-top: 1px solid #DDD;
...@@ -466,6 +466,8 @@ footer img { ...@@ -466,6 +466,8 @@ footer img {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
text-decoration: none;
color: #000;
} }
.image-text img { .image-text img {
...@@ -576,7 +578,7 @@ footer img { ...@@ -576,7 +578,7 @@ footer img {
gap: 30px; gap: 30px;
} }
#menu a { #menu a, #menu .divider {
font-size: 1.4em; font-size: 1.4em;
} }
...@@ -596,6 +598,9 @@ footer img { ...@@ -596,6 +598,9 @@ footer img {
flex-direction: column; flex-direction: column;
} }
.projects img {
margin-bottom: 20px;
}
.news-item { .news-item {
width: 100%; width: 100%;
aspect-ratio: unset; aspect-ratio: unset;
...@@ -655,7 +660,7 @@ footer img { ...@@ -655,7 +660,7 @@ footer img {
z-index: 99; z-index: 99;
} }
#menu a { #menu a, #menu .divider {
font-size: 1.6em; font-size: 1.6em;
color: #000; color: #000;
} }
......
...@@ -12,7 +12,6 @@ if (document.getElementById('menu') != null) { ...@@ -12,7 +12,6 @@ if (document.getElementById('menu') != null) {
}) })
document.querySelectorAll('.menu-item').forEach(anchor => { document.querySelectorAll('.menu-item').forEach(anchor => {
anchor.addEventListener('click', function (e) { anchor.addEventListener('click', function (e) {
e.preventDefault();
menu.style.display = "none"; menu.style.display = "none";
document.body.style.overflow = "auto" document.body.style.overflow = "auto"
}); });
...@@ -52,7 +51,6 @@ var swiper = new Swiper(".mySwiper", { ...@@ -52,7 +51,6 @@ var swiper = new Swiper(".mySwiper", {
document.querySelectorAll('a[href^="#"]').forEach(anchor => { document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) { anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({ document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth' behavior: 'smooth'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment