Bladeren bron

eyeable headlines

master
FlorianEisenmenger 9 maanden geleden
bovenliggende
commit
cb85ec3eb3
2 gewijzigde bestanden met toevoegingen van 4 en 5 verwijderingen
  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 Bestand weergeven

@@ -15,8 +15,8 @@ export const createMiniTeaser = ({
const tile = createElement('a', ['tile', 'mini-teaser', type], null);
tile.href = link;
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;
}else{
const tile = createElement('a', ['tile', 'mini-teaser', type], null);
@@ -28,10 +28,10 @@ export const createMiniTeaser = ({
const textBox = createElement('div', ['text-box'], null, tile);
if (icon && icon.length > 0) {
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}))
}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}))
}


+ 0
- 1
gfi-ihk-2024/stories/components/teaser/TeaserComponent.js Bestand weergeven

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

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


Laden…
Annuleren
Opslaan