feat: add url to site config, add webp support, change image sizing
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
base: /
|
base: https://lena-schilling.at
|
||||||
|
baseVariants:
|
||||||
|
- base: https://lena-schilling.ddev.site
|
||||||
|
condition: 'applicationContext == "Development/Ddev"'
|
||||||
|
|
||||||
|
- base: https://lena-schilling.cloonar.dev
|
||||||
|
condition: 'applicationContext == "Production/Staging"'
|
||||||
dependencies:
|
dependencies:
|
||||||
- georgringer/news
|
- georgringer/news
|
||||||
- typo3/redirects
|
- typo3/redirects
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.frame-type-cloonar_hero + .frame {
|
.frame-type-cloonar_hero + .frame {
|
||||||
margin-top: -10rem;
|
margin-top: -10.4rem;
|
||||||
}
|
}
|
||||||
.frame-type-cloonar_hero .container {
|
.frame-type-cloonar_hero .container {
|
||||||
padding-bottom: 3rem;
|
padding-bottom: 3rem;
|
||||||
@@ -81,6 +81,7 @@
|
|||||||
.frame-type-cloonar_hero .hero-image-wrapper {
|
.frame-type-cloonar_hero .hero-image-wrapper {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame-type-cloonar_hero .hero-image {
|
.frame-type-cloonar_hero .hero-image {
|
||||||
|
|||||||
@@ -21,11 +21,23 @@
|
|||||||
<f:if condition="{data.image}">
|
<f:if condition="{data.image}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<picture>
|
<picture>
|
||||||
|
<!-- WEBP source -->
|
||||||
|
<source
|
||||||
|
type="image/webp"
|
||||||
|
srcset="
|
||||||
|
{f:uri.image(image:data.image.0, width:'320c', cropVariant:'default', fileExtension:'webp')} 320w,
|
||||||
|
{f:uri.image(image:data.image.0, width:'768c', cropVariant:'default', fileExtension:'webp')} 768w,
|
||||||
|
{f:uri.image(image:data.image.0, width:'430c', cropVariant:'default', fileExtension:'webp')} 1024w"
|
||||||
|
sizes="(max-width: 320px) 80vw,
|
||||||
|
(max-width: 768px) 80px,
|
||||||
|
430px" />
|
||||||
|
|
||||||
|
<!-- Fallback source -->
|
||||||
<source
|
<source
|
||||||
srcset="
|
srcset="
|
||||||
{f:uri.image(image:data.image.0, width:'320c', cropVariant:'default')} 320w,
|
{f:uri.image(image:data.image.0, width:'320c', cropVariant:'default')} 320w,
|
||||||
{f:uri.image(image:data.image.0, width:'600c', cropVariant:'default')} 600w,
|
{f:uri.image(image:data.image.0, width:'600c', cropVariant:'default')} 600w,
|
||||||
{f:uri.image(image:data.image.0, width:'430c', cropVariant:'default')} 430w"
|
{f:uri.image(image:data.image.0, width:'430c', cropVariant:'default')} 1024w"
|
||||||
sizes="(max-width: 320px) 80vw,
|
sizes="(max-width: 320px) 80vw,
|
||||||
(max-width: 768px) 80vw,
|
(max-width: 768px) 80vw,
|
||||||
430px" />
|
430px" />
|
||||||
|
|||||||
@@ -46,11 +46,9 @@
|
|||||||
|
|
||||||
/* Size classes apply at all viewports */
|
/* Size classes apply at all viewports */
|
||||||
.textimage-image-wrapper.size-25 .textimage-picture {
|
.textimage-image-wrapper.size-25 .textimage-picture {
|
||||||
max-width: 300px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.textimage-image-wrapper.size-50 .textimage-picture {
|
.textimage-image-wrapper.size-50 .textimage-picture {
|
||||||
max-width: 600px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On larger screens, arrange horizontally for image position settings */
|
/* On larger screens, arrange horizontally for image position settings */
|
||||||
@@ -63,7 +61,15 @@
|
|||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.textimage-wrapper {
|
.textimage-image-wrapper.size-25 {
|
||||||
|
flex: 0 0 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textimage-image-wrapper.size-50 {
|
||||||
|
flex: 0 0 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textimage-wrapper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ fields:
|
|||||||
- identifier: image
|
- identifier: image
|
||||||
type: File
|
type: File
|
||||||
properties:
|
properties:
|
||||||
allowed: [jpg, jpeg, png, gif]
|
allowed: [jpg, jpeg, png, gif, webp]
|
||||||
useExistingField: true
|
useExistingField: true
|
||||||
- identifier: imageorient
|
- identifier: imageorient
|
||||||
useExistingField: true
|
useExistingField: true
|
||||||
|
|||||||
@@ -18,6 +18,18 @@
|
|||||||
<f:if condition="{data.image}">
|
<f:if condition="{data.image}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<picture class="textimage-picture">
|
<picture class="textimage-picture">
|
||||||
|
<!-- WEBP source -->
|
||||||
|
<source
|
||||||
|
type="image/webp"
|
||||||
|
srcset="
|
||||||
|
{f:uri.image(image:data.image.0, width:'320c', cropVariant:'default', fileExtension:'webp')} 320w,
|
||||||
|
{f:uri.image(image:data.image.0, width:'768c', cropVariant:'default', fileExtension:'webp')} 768w,
|
||||||
|
{f:uri.image(image:data.image.0, width:'1024c', cropVariant:'default', fileExtension:'webp')} 1024w"
|
||||||
|
sizes="(max-width: 320px) 90vw,
|
||||||
|
(max-width: 768px) 600px,
|
||||||
|
600px" />
|
||||||
|
|
||||||
|
<!-- Fallback source -->
|
||||||
<source
|
<source
|
||||||
srcset="
|
srcset="
|
||||||
{f:uri.image(image:data.image.0, width:'320c', cropVariant:'default')} 320w,
|
{f:uri.image(image:data.image.0, width:'320c', cropVariant:'default')} 320w,
|
||||||
@@ -26,6 +38,7 @@
|
|||||||
sizes="(max-width: 320px) 90vw,
|
sizes="(max-width: 320px) 90vw,
|
||||||
(max-width: 768px) 600px,
|
(max-width: 768px) 600px,
|
||||||
600px" />
|
600px" />
|
||||||
|
|
||||||
<f:image
|
<f:image
|
||||||
image="{data.image.0}"
|
image="{data.image.0}"
|
||||||
treatIdAsReference="1"
|
treatIdAsReference="1"
|
||||||
|
|||||||
@@ -3,6 +3,18 @@
|
|||||||
<f:if condition="{newsItem.media}">
|
<f:if condition="{newsItem.media}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<picture>
|
<picture>
|
||||||
|
<!-- WEBP source -->
|
||||||
|
<source
|
||||||
|
type="image/webp"
|
||||||
|
srcset="
|
||||||
|
{f:uri.image(image:newsItem.media.0, width:'320c', cropVariant:'default', fileExtension:'webp')} 320w,
|
||||||
|
{f:uri.image(image:newsItem.media.0, width:'768c', cropVariant:'default', fileExtension:'webp')} 768w,
|
||||||
|
{f:uri.image(image:newsItem.media.0, width:'1024c', cropVariant:'default', fileExtension:'webp')} 1024w"
|
||||||
|
sizes="(max-width: 320px) 100vw,
|
||||||
|
(max-width: 768px) 50px,
|
||||||
|
400px" />
|
||||||
|
|
||||||
|
<!-- Fallback source -->
|
||||||
<source
|
<source
|
||||||
srcset="
|
srcset="
|
||||||
{f:uri.image(image:newsItem.media.0, width:'320c', cropVariant:'default')} 320w,
|
{f:uri.image(image:newsItem.media.0, width:'320c', cropVariant:'default')} 320w,
|
||||||
|
|||||||
Reference in New Issue
Block a user