This commit is contained in:
Robin Grenzdörfer 2023-09-20 08:15:27 +00:00
parent 481308522f
commit de5f43dbd7
4 changed files with 35 additions and 16 deletions

View File

@ -3,6 +3,7 @@ name: row
meta: meta:
label: Zeile label: Zeile
addElementLabel: Zeile hinzufügen addElementLabel: Zeile hinzufügen
widget: grid
folding: folding:
previewFolded: titleForWork previewFolded: titleForWork
previewUnfolded: titleForWork previewUnfolded: titleForWork
@ -35,6 +36,7 @@ subFields:
type: object[] type: object[]
meta: meta:
label: Spalte label: Spalte
widget: grid
addElementLabel: weitere Spalte addElementLabel: weitere Spalte
folding: folding:
previewFolded: contentType previewFolded: contentType
@ -349,6 +351,7 @@ subFields:
type: object[] type: object[]
meta: meta:
label: Zeile label: Zeile
widget: grid
addElementLabel: Zeile Hinzufügen addElementLabel: Zeile Hinzufügen
dependsOn: dependsOn:
eval: $parent.contentType == "form" eval: $parent.contentType == "form"
@ -367,6 +370,7 @@ subFields:
folding: folding:
previewFolded: titleForWork previewFolded: titleForWork
previewUnfolded: titleForWork previewUnfolded: titleForWork
widget: grid
direction: horizontal direction: horizontal
subFields: subFields:
- !include titleForWork.yml - !include titleForWork.yml

View File

@ -26,7 +26,7 @@
</script> </script>
{#if siteImages.length > 1} {#if siteImages.length > 1}
<div class="flex images"> <div class="flex images" id="image">
<swiper-container <swiper-container
bind:this="{swiper}" bind:this="{swiper}"
slides-per-view="1" slides-per-view="1"
@ -35,13 +35,18 @@
effect="slide" effect="slide"
autoplay-delay="2500" autoplay-delay="2500"
mousewheel="{true}" mousewheel="{true}"
navigation="{true}"
init="{false}" init="{false}"
speed="600" speed="600"
class="relative" class="relative"
autoplay="{{
delay: 1000, // 5000ms = 5s
pauseOnMouseEnter: true,
}}"
grab-cursor="{true}"
pagination="{true}"
> >
{#each siteImages as image, i (i)} {#each siteImages as image, i (i)}
<swiper-slide class="relative" id="image"> <swiper-slide class="relative" id="imageSlide">
<div class="image-container"> <div class="image-container">
<img <img
src="{`${apiBaseURL}content/${siteId}/${image.image?.src}?filter=${ src="{`${apiBaseURL}content/${siteId}/${image.image?.src}?filter=${
@ -71,20 +76,20 @@
@import "../../assets/css/variables.less"; @import "../../assets/css/variables.less";
@import "../../assets/css/swiperStyles.less"; @import "../../assets/css/swiperStyles.less";
swiper-container { #image {
height: auto; swiper-container {
width: 100%; height: auto;
max-width: 100vw; width: 100%;
} max-width: 100vw;
swiper-slide#image { padding: 0px !important;
width: 100% !important; }
} }
.flex { .flex {
flex: 2 !important; flex: 2 !important;
} }
.image-container { .image-container {
max-width: 100%;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
max-width: @body-maxwidth; max-width: @body-maxwidth;
@ -102,4 +107,14 @@
.single { .single {
max-width: @body-small-maxwidth; max-width: @body-small-maxwidth;
} }
#imageSlide {
& {
width: 100% !important;
}
}
.swiper-pagination {
& > span {
background-color: var(--opposite-bg-color);
}
}
</style> </style>

View File

@ -185,12 +185,12 @@
textarea, textarea,
.data-protection { .data-protection {
margin: 5px 0px; margin: 5px 0px;
box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.05); box-shadow: 0 0 25px 10px var(--opposite-bg-color-5);
} }
.success-message { .success-message {
h1 { h1 {
color: var(--banner-color); color: var(--heading-font-color);
font-size: 36px; font-size: 36px;
margin-top: 50px; margin-top: 50px;
} }
@ -399,10 +399,10 @@
textarea, textarea,
.data-protection { .data-protection {
padding: 10px 20px; padding: 10px 20px;
border: 0px solid black; border: 0px solid var(--opposite-bg-color);
border-bottom: 3px solid var(--heading-font-color); border-bottom: 3px solid var(--heading-font-color);
outline: 0px solid black; outline: 0px solid var(--opposite-bg-color);
color: var(--opposite-bg-color);
background-color: var(--background-color); background-color: var(--background-color);
resize: none; resize: none;
} }