From ae91841cc3be22b8ac1c0b16cbffcba42c783938 Mon Sep 17 00:00:00 2001 From: Corinna Hillebrand Date: Mon, 16 Dec 2024 11:37:40 +0100 Subject: [PATCH] [C24_WMDE_Desktop_DE_21] Add DoubleProgressBar to both banners (from 20 VAR) - makes both banners base on desktop de 20 VAR --- .../desktop/C24_WMDE_Desktop_DE_21/banner_ctrl.ts | 2 ++ .../desktop/C24_WMDE_Desktop_DE_21/banner_var.ts | 2 ++ .../components/BannerCtrl.vue | 4 ++-- .../components/BannerVar.vue | 4 ++-- .../components/FallbackBanner.vue | 4 ++-- banners/desktop/C24_WMDE_Desktop_DE_21/messages.ts | 2 ++ .../styles/FallbackBanner.scss | 8 ++++---- .../C24_WMDE_Desktop_DE_21/styles/MainBanner.scss | 7 ++++--- .../C24_WMDE_Desktop_DE_21/styles/styles.scss | 14 ++++++-------- .../C24_WMDE_Desktop_DE_21/styles/styles_var.scss | 14 ++++++-------- 10 files changed, 32 insertions(+), 29 deletions(-) diff --git a/banners/desktop/C24_WMDE_Desktop_DE_21/banner_ctrl.ts b/banners/desktop/C24_WMDE_Desktop_DE_21/banner_ctrl.ts index 512ed5512..4c1e2ca7c 100644 --- a/banners/desktop/C24_WMDE_Desktop_DE_21/banner_ctrl.ts +++ b/banners/desktop/C24_WMDE_Desktop_DE_21/banner_ctrl.ts @@ -24,6 +24,7 @@ import { LocaleFactoryDe } from '@src/utils/LocaleFactory/LocaleFactoryDe'; import { createFormItems } from './form_items'; import { createFormActions } from '@src/createFormActions'; import { WindowTimer } from '@src/utils/Timer'; +import { currentCampaignTimePercentage } from '@src/components/ProgressBar/currentCampaignTimePercentage'; const date = new Date(); const localeFactory = new LocaleFactoryDe(); @@ -69,5 +70,6 @@ app.provide( 'formItems', createFormItems( translator, currencyFormatter.euroAmo app.provide( 'formActions', createFormActions( page.getTracking(), impressionCount, { afo: '1', ap: '0' } ) ); app.provide( 'tracker', tracker ); app.provide( 'timer', new WindowTimer() ); +app.provide( 'currentCampaignTimePercentage', currentCampaignTimePercentage( new Date(), page.getCampaignParameters() ) ); app.mount( page.getBannerContainer() ); diff --git a/banners/desktop/C24_WMDE_Desktop_DE_21/banner_var.ts b/banners/desktop/C24_WMDE_Desktop_DE_21/banner_var.ts index 0282e0f4b..9744c26f9 100644 --- a/banners/desktop/C24_WMDE_Desktop_DE_21/banner_var.ts +++ b/banners/desktop/C24_WMDE_Desktop_DE_21/banner_var.ts @@ -24,6 +24,7 @@ import { LocaleFactoryDe } from '@src/utils/LocaleFactory/LocaleFactoryDe'; import { createFormItems } from './form_items'; import { createFormActions } from '@src/createFormActions'; import { WindowTimer } from '@src/utils/Timer'; +import { currentCampaignTimePercentage } from '@src/components/ProgressBar/currentCampaignTimePercentage'; const date = new Date(); const localeFactory = new LocaleFactoryDe(); @@ -69,5 +70,6 @@ app.provide( 'formItems', createFormItems( translator, currencyFormatter.euroAmo app.provide( 'formActions', createFormActions( page.getTracking(), impressionCount, { afo: '1', ap: '0' } ) ); app.provide( 'tracker', tracker ); app.provide( 'timer', new WindowTimer() ); +app.provide( 'currentCampaignTimePercentage', currentCampaignTimePercentage( new Date(), page.getCampaignParameters() ) ); app.mount( page.getBannerContainer() ); diff --git a/banners/desktop/C24_WMDE_Desktop_DE_21/components/BannerCtrl.vue b/banners/desktop/C24_WMDE_Desktop_DE_21/components/BannerCtrl.vue index 036ddaf9b..e1cae3382 100644 --- a/banners/desktop/C24_WMDE_Desktop_DE_21/components/BannerCtrl.vue +++ b/banners/desktop/C24_WMDE_Desktop_DE_21/components/BannerCtrl.vue @@ -28,7 +28,7 @@