FlorianEisenmenger 9 часов назад
Родитель
Сommit
9e472613e6
2 измененных файлов: 5 добавлений и 3 удалений
  1. +4
    -2
      gfi-ihk-2024/stories/sections/eventoverview-stage/EventOverviewStageComponent.js
  2. +1
    -1
      gfi-ihk-2024/stories/sections/feature/FeatureComponent.js

+ 4
- 2
gfi-ihk-2024/stories/sections/eventoverview-stage/EventOverviewStageComponent.js Просмотреть файл

@@ -35,8 +35,10 @@ export const createEventOverviewStage = ({
const tb = createElement('div', ['stagetext-box'], null, col);

if (backgroundImage && backgroundImage.length > 0) {
//section.content('style=background: red;');
sectiondiv.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);';
sectiondiv.classList.add('background-image');
const copy = createElement('span', ['copyright'], copyright, sectiondiv);
copy.setAttribute("aria-hidden", "true");


+ 1
- 1
gfi-ihk-2024/stories/sections/feature/FeatureComponent.js Просмотреть файл

@@ -28,7 +28,7 @@ export const createFeature = ({
link: '#',
},
],
icon = 'Eule Doktorhut',
icon = 'Eule',
}) => {
const section = createElement('section', ['feature'], null);
const container = createElement('div', ['container'], null, section);


Загрузка…
Отмена
Сохранить