|
|
|
@@ -32,8 +32,10 @@ export const createParticipationStage = ({ |
|
|
|
const tb = createElement('div', ['text-box'], null, col); |
|
|
|
|
|
|
|
if (backgroundImage && backgroundImage.length > 0) { |
|
|
|
//section.content('style=background: red;'); |
|
|
|
section.style = 'background-image: url(' + backgroundImage + ');'; |
|
|
|
section.style = '--bg-mobile: url(' + backgroundImage + ');\n' + |
|
|
|
' --bg-tablet: url(' + backgroundImage + ');\n' + |
|
|
|
' --bg-desktop: url(' + backgroundImage + ');\n' + |
|
|
|
' background-image: var(--bg-mobile);'; |
|
|
|
section.classList.add('background-image'); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -69,7 +71,14 @@ export const createParticipationStage = ({ |
|
|
|
if (hasImage) { |
|
|
|
section.classList.add('image-stage'); |
|
|
|
const ib = createElement('div', ['image-box'], null, col); |
|
|
|
createImage(imageSrc, 1080, 648, 'Beteiligung', [], ib); |
|
|
|
const picture = createElement('picture', [], null, ib); |
|
|
|
const src1 = createElement('source', [], null, picture); |
|
|
|
src1.setAttribute('media','(min-width: 1300px)'); |
|
|
|
src1.setAttribute('srcset',imageSrc); |
|
|
|
const src2 = createElement('source', [], null, picture); |
|
|
|
src2.setAttribute('media','(min-width: 1000px)'); |
|
|
|
src2.setAttribute('srcset',imageSrc); |
|
|
|
createImage(imageSrc, 1080, 648, 'Beteiligung', [], picture); |
|
|
|
const copy = createElement('span', ['copyright'], copyright, ib); |
|
|
|
copy.setAttribute("aria-hidden", "true"); |
|
|
|
createElement('span', ['sr-only'], copyright, ib); |
|
|
|
|