Przeglądaj źródła

eyeable headlines

master
FlorianEisenmenger 9 miesięcy temu
rodzic
commit
cb85ec3eb3
2 zmienionych plików z 4 dodań i 5 usunięć
  1. +4
    -4
      gfi-ihk-2024/stories/components/mini-teaser/MiniTeaserComponent.js
  2. +0
    -1
      gfi-ihk-2024/stories/components/teaser/TeaserComponent.js

+ 4
- 4
gfi-ihk-2024/stories/components/mini-teaser/MiniTeaserComponent.js Wyświetl plik

@@ -15,8 +15,8 @@ export const createMiniTeaser = ({
const tile = createElement('a', ['tile', 'mini-teaser', type], null); const tile = createElement('a', ['tile', 'mini-teaser', type], null);
tile.href = link; tile.href = link;
const textBox = createElement('div', ['text-box'], null, tile); const textBox = createElement('div', ['text-box'], null, tile);
createElement('h5', ['category'], category, textBox);
createElement('h4', ['title'], title, textBox);
createElement('div', ['category','like-h5'], category, textBox);
createElement('div', ['title','like-h4'], title, textBox);
return tile; return tile;
}else{ }else{
const tile = createElement('a', ['tile', 'mini-teaser', type], null); const tile = createElement('a', ['tile', 'mini-teaser', type], null);
@@ -28,10 +28,10 @@ export const createMiniTeaser = ({
const textBox = createElement('div', ['text-box'], null, tile); const textBox = createElement('div', ['text-box'], null, tile);
if (icon && icon.length > 0) { if (icon && icon.length > 0) {
createElement('div', ['icon-box', 'pictogram-' + icon.toLowerCase().split(' ').join('-')], null, textBox); createElement('div', ['icon-box', 'pictogram-' + icon.toLowerCase().split(' ').join('-')], null, textBox);
createElement('h4', ['title'], title, textBox);
createElement('div', ['title','like-h4'], title, textBox);
textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel,iconPosition: 'icon-right', icon: null, preventClick: false})) textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel,iconPosition: 'icon-right', icon: null, preventClick: false}))
}else{ }else{
createElement('h4', ['title', 'noicon'], title, textBox);
createElement('div', ['title', 'noicon', 'like-h4'], title, textBox);
textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel, iconPosition: 'icon-right', icon: null, preventClick: false})) textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel, iconPosition: 'icon-right', icon: null, preventClick: false}))
} }


+ 0
- 1
gfi-ihk-2024/stories/components/teaser/TeaserComponent.js Wyświetl plik

@@ -66,7 +66,6 @@ export const createTeaser = ({
const imageBox = createElement('div', ['image-box', 'chart'], null, teaser); const imageBox = createElement('div', ['image-box', 'chart'], null, teaser);
createElement('span', ['chart-title'], chartTitle, imageBox); createElement('span', ['chart-title'], chartTitle, imageBox);
} }

else if (type === 'picto' || type === 'pictoHero') { else if (type === 'picto' || type === 'pictoHero') {
const imageBox = createElement('div', ['image-box', 'chart'], null, teaser); const imageBox = createElement('div', ['image-box', 'chart'], null, teaser);
const pictoBox = createElement('div', ['picto-box', ...(type === 'pictoHero' ? ['hero'] : [])], null, imageBox); const pictoBox = createElement('div', ['picto-box', ...(type === 'pictoHero' ? ['hero'] : [])], null, imageBox);


Ładowanie…
Anuluj
Zapisz