|
|
|
@@ -147,13 +147,13 @@ export const createMarketingHeader = |
|
|
|
if (type === 'infoteaser') { |
|
|
|
const col3 = createElement('div', ['col'], null, row2); |
|
|
|
|
|
|
|
//const teasers = createMiniTeaser({teasers.type: 'standard'}); |
|
|
|
//col3.appendChild(teasers); |
|
|
|
|
|
|
|
teasers.map((t, i) => { |
|
|
|
if (i < maxItems) { |
|
|
|
var typ = 'standard'; |
|
|
|
if (i == 0 && t.type == 'infoteaser') typ = 'infoteaser'; |
|
|
|
if (i == 0 && t.type == 'infoteaser'){ |
|
|
|
typ = 'infoteaser'; |
|
|
|
section.classList.add('miniinfoteaser'); |
|
|
|
} |
|
|
|
const col4 = createElement('div', ['mt'], null, col3); |
|
|
|
const tea = createMiniTeaser({ |
|
|
|
type : typ, |
|
|
|
@@ -162,55 +162,6 @@ export const createMarketingHeader = |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
/* |
|
|
|
const hasImage = imageSrc && imageSrc.length > 0; |
|
|
|
const stage = createElement('div', ['participation', 'participation-stage'], null, section); |
|
|
|
const container2 = createElement('div', ['container'], null, stage); |
|
|
|
const row2 = createElement('div', ['row'], null, container2); |
|
|
|
const col2 = createElement('div', ['col'], null, row2); |
|
|
|
const tb2 = createElement('div', ['text-box'], null, col2); |
|
|
|
|
|
|
|
if (backgroundImage && backgroundImage.length > 0) { |
|
|
|
//section.content('style=background: red;'); |
|
|
|
stage.style = 'background-image: url(' + backgroundImage + ');'; |
|
|
|
stage.classList.add('background-image'); |
|
|
|
} |
|
|
|
|
|
|
|
if (isFirstElement) { |
|
|
|
stage.classList.add('first-element'); |
|
|
|
} |
|
|
|
|
|
|
|
if (kicker && kicker.length > 0) { |
|
|
|
createElement('p', ['kicker'], kicker, tb2); |
|
|
|
} |
|
|
|
if (showProgress) { |
|
|
|
tb2.appendChild(createProgressBar({progress})); |
|
|
|
} |
|
|
|
createElement('h1', ['like-h2'], headline, tb2); |
|
|
|
createElement('p', [], copy, tb2); |
|
|
|
if (moreCta) { |
|
|
|
const more = createElement('a', [], moreCta.label, tb2); |
|
|
|
more.href = moreCta.link; |
|
|
|
more.target = moreCta.target; |
|
|
|
} |
|
|
|
if (buttonCta) { |
|
|
|
const button2 = createButton({ |
|
|
|
elementType: 'a', |
|
|
|
link: buttonCta.link, |
|
|
|
color: 'white', |
|
|
|
label: buttonCta.label, |
|
|
|
iconPosition: 'icon-right', |
|
|
|
icon: 'small-arrow-right-simple', |
|
|
|
}); |
|
|
|
tb2.appendChild(button2); |
|
|
|
} |
|
|
|
|
|
|
|
if (hasImage) { |
|
|
|
stage.classList.add('image-stage'); |
|
|
|
const ib2 = createElement('div', ['image-box'], null, col2); |
|
|
|
createImage(imageSrc, 1080, 648, 'Beteiligung', [], ib2); |
|
|
|
} |
|
|
|
*/ |
|
|
|
return section; |
|
|
|
|
|
|
|
} |