From 5e08098ad7999f305ff951a9091117375b0e4e7e Mon Sep 17 00:00:00 2001 From: Sperling-0 Date: Thu, 12 Dec 2024 15:26:04 +0100 Subject: [PATCH] Implement Var for C24_WMDE_Desktop_DE_20 - The variant banner is changed according to the design file: - Update Clean up 2025 document The progress bar is split out of the red bordered box. Another progress bar is added showing the number of campaign days passed.Ticket: https://phabricator.wikimedia.org/T381401 --- .../desktop/C24_WMDE_Desktop_DE_20/banner_var.ts | 2 ++ .../components/BannerVar.vue | 4 ++-- .../components/FallbackBannerVar.vue | 4 ++-- .../C24_WMDE_Desktop_DE_20/messages_var.ts | 2 ++ .../styles/FallbackBannerVar.scss | 8 ++++---- .../styles/MainBannerVar.scss | 7 ++++--- .../styles/styles_var.scss | 16 +++++++--------- docs/2025PostCampaignCleanUp.md | 16 ++++++++++++++++ .../Fijitiv/FallbackBanner/LargeFooter.scss | 4 +++- 9 files changed, 42 insertions(+), 21 deletions(-) diff --git a/banners/desktop/C24_WMDE_Desktop_DE_20/banner_var.ts b/banners/desktop/C24_WMDE_Desktop_DE_20/banner_var.ts index ff16f98e6..15e74b491 100644 --- a/banners/desktop/C24_WMDE_Desktop_DE_20/banner_var.ts +++ b/banners/desktop/C24_WMDE_Desktop_DE_20/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_20/components/BannerVar.vue b/banners/desktop/C24_WMDE_Desktop_DE_20/components/BannerVar.vue index 53f234e24..c6fa28ecf 100644 --- a/banners/desktop/C24_WMDE_Desktop_DE_20/components/BannerVar.vue +++ b/banners/desktop/C24_WMDE_Desktop_DE_20/components/BannerVar.vue @@ -28,7 +28,7 @@