Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
ved
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hebotek
ved
Commits
71a93913
Commit
71a93913
authored
Feb 13, 2024
by
Michael Apfelthaler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Multiple Adjustments
parent
9a007e3d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
17 deletions
+26
-17
contentGrid.twig
templates/components/contentGrid.twig
+1
-1
navigation.twig
templates/components/navigation.twig
+7
-1
projects.twig
templates/components/projects.twig
+3
-3
style.css
web/assets/css/style.css
+15
-10
menu.js
web/assets/js/menu.js
+0
-2
No files found.
templates/components/contentGrid.twig
View file @
71a93913
...
@@ -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>
...
...
templates/components/navigation.twig
View file @
71a93913
...
@@ -7,8 +7,14 @@
...
@@ -7,8 +7,14 @@
<nav
id=
"menu"
>
<nav
id=
"menu"
>
<img
id=
"close"
src=
"
{{
craft.app.sites.primarySite.baseUrl
}}
/assets/x-lg.svg"
alt=
"close"
>
<img
id=
"close"
src=
"
{{
craft.app.sites.primarySite.baseUrl
}}
/assets/x-lg.svg"
alt=
"close"
>
{%
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
templates/components/projects.twig
View file @
71a93913
<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>
...
...
web/assets/css/style.css
View file @
71a93913
...
@@ -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
;
}
}
...
...
web/assets/js/menu.js
View file @
71a93913
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment