Skip to content

Commit

Permalink
Implement Var for C24_WMDE_Desktop_DE_20
Browse files Browse the repository at this point in the history
  • Loading branch information
Sperling-0 committed Dec 12, 2024
1 parent 0a28327 commit 020cf8e
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 21 deletions.
2 changes: 2 additions & 0 deletions banners/desktop/C24_WMDE_Desktop_DE_20/banner_var.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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() );
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</template>

<template #progress>
<ProgressBar amount-to-show-on-right="TARGET"/>
<DoubleProgressBar/>
</template>

<template #donation-form="{ formInteraction }: any">
Expand Down Expand Up @@ -104,7 +104,7 @@ import { TrackingFeatureName } from '@src/tracking/TrackingEvent';
import ButtonClose from '@src/components/ButtonClose/ButtonClose.vue';
import FooterAlreadyDonated from '@src/components/Footer/FooterAlreadyDonated.vue';
import WMDEFundsForwardingDE from '@src/components/UseOfFunds/Infographics/WMDEFundsForwardingDE.vue';
import ProgressBar from '@src/components/ProgressBar/ProgressBarAlternative.vue';
import DoubleProgressBar from '@src/components/ProgressBar/DoubleProgressBar.vue';
import SoftClose from '@src/components/SoftClose/SoftClose.vue';
import { LocalCloseTracker } from '@src/utils/LocalCloseTracker';
import { BannerSubmitOnReturnEvent } from '@src/tracking/events/BannerSubmitOnReturnEvent';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="wmde-banner-fallback-large" v-if="onLargeScreen">
<div class="wmde-banner-fallback-message">
<FallbackText/>
<ProgressBarAlternative amount-to-show-on-right="TARGET"/>
<DoubleProgressBar/>
</div>

<LargeFooter @useOfFundsButtonClicked="isFundsModalVisible = true" @submitButtonClicked="onSubmit"/>
Expand Down Expand Up @@ -71,7 +71,7 @@ import LargeFooter from '@src/components/FallbackBanner/LargeFooter.vue';
import { Tracker } from '@src/tracking/Tracker';
import { FallbackBannerSubmitEvent } from '@src/tracking/events/FallbackBannerSubmitEvent';
import WMDEFundsForwardingDE from '@src/components/UseOfFunds/Infographics/WMDEFundsForwardingDE.vue';
import ProgressBarAlternative from '@src/components/ProgressBar/ProgressBarAlternative.vue';
import DoubleProgressBar from '@src/components/ProgressBar/DoubleProgressBar.vue';
interface Props {
bannerState: BannerStates;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="wmde-banner-fallback-large" v-if="onLargeScreen">
<div class="wmde-banner-fallback-message">
<FallbackText/>
<ProgressBarAlternative amount-to-show-on-right="TARGET"/>
<DoubleProgressBar/>
</div>

<LargeFooter @useOfFundsButtonClicked="isFundsModalVisible = true" @submitButtonClicked="onSubmit"/>
Expand Down Expand Up @@ -71,7 +71,7 @@ import LargeFooter from '@src/components/FallbackBanner/LargeFooter.vue';
import { Tracker } from '@src/tracking/Tracker';
import { FallbackBannerSubmitEvent } from '@src/tracking/events/FallbackBannerSubmitEvent';
import WMDEFundsForwardingDE from '@src/components/UseOfFunds/Infographics/WMDEFundsForwardingDE.vue';
import ProgressBarAlternative from '@src/components/ProgressBar/ProgressBarAlternative.vue';
import DoubleProgressBar from '@src/components/ProgressBar/DoubleProgressBar.vue';
interface Props {
bannerState: BannerStates;
Expand Down
2 changes: 2 additions & 0 deletions banners/desktop/C24_WMDE_Desktop_DE_20/messages_var.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import MainDonationFormDe from '@src/components/DonationForm/Forms/messages/Main
import FallbackBanner from '@src/components/FallbackBanner/messages/FallbackBanner.de';
import AlreadyDonatedModal from '@src/components/AlreadyDonatedModal/translations/AlreadyDonatedModal.de';
import SoftCloseDe from '@src/components/SoftClose/messages/SoftClose.de';
import DoubleProgressBarDe from '@src/components/ProgressBar/messages/DoubleProgressBar.de';

const messages: TranslationMessages = {
...CustomAmountFormDe,
Expand All @@ -19,6 +20,7 @@ const messages: TranslationMessages = {
...AlreadyDonatedModal,
...FallbackBanner,
...SoftCloseDe,
...DoubleProgressBarDe,
'already-donated-go-away-button': 'Im Moment nicht',
'soft-close-prompt': 'Dürfen wir später nochmal fragen?',
'upgrade-to-yearly-copy': `<p>Jedes Jahr sind wir auf Menschen wie Sie angewiesen. Jährliche Spenden helfen uns besonders und ermöglichen langfristige Weiterentwicklungen.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ $breakpoint: 800px;
flex: 1 1 auto;
display: flex;
flex-direction: column;
border: 4px solid var( --fallback-message-border );
border-radius: 4px;
padding: 8px 0;
}

Expand Down Expand Up @@ -81,10 +79,12 @@ $breakpoint: 800px;
flex: 1 1 auto;
display: flex;
flex-direction: column;
padding: 8px 0;
padding: 8px 8px 0;
margin: -5px 0 8px;
color: var( --fallback-message-color );
background-color: var( --fallback-message-background );
margin: 15px;
border: 4px solid var( --fallback-message-border );
border-radius: 4px;

p {
margin-bottom: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,21 @@ $form-width: 300px !default;
justify-content: center;
align-items: center;
padding: 11px;

border: 5px solid var( --message-border );
border-radius: 9px;
margin-bottom: 10px;
}

&-column-left {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1 1 auto;
margin-bottom: 0;
overflow-y: hidden;
margin-right: 30px;
padding: 0 0 10px;
background: var( --message-background );
border: 5px solid var( --message-border );
border-radius: 9px;
}

&-column-right {
Expand Down
12 changes: 4 additions & 8 deletions banners/desktop/C24_WMDE_Desktop_DE_20/styles/styles_var.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
$select-group: true,
$upgrade-to-yearly: true,
$fallback-banner: true,
$progress-bar: true,
$double-progress-bar: true,
$soft-close: true,
);
@use 'src/components/BannerConductor/banner-transition';
@use 'src/themes/UseOfFunds/swatches/skin_default' as uof-default;
@use 'Banner';
@use 'src/themes/UseOfFunds/UseOfFunds';
@use 'MainBanner' with (
@use 'MainBannerVar' with (
$banner-height: 357px,
$form-width: 300px
);
@use 'src/themes/Treedip/defaults';
@use 'src/themes/Treedip/ButtonClose/ButtonClose';
@use 'src/themes/Treedip/ProgressBar/ProgressBarAlternative' with (
$progress-bar-margin: 0 15px
);
@use 'src/themes/Treedip/ProgressBar/DoubleProgressBar';
@use 'src/themes/Treedip/DonationForm/DonationForm';
@use 'src/themes/Treedip/DonationForm/MultiStepDonation';
@use 'src/themes/Treedip/DonationForm/SubComponents/SelectGroup';
Expand All @@ -36,9 +34,7 @@
@use 'src/themes/Treedip/Message/Message' with (
$slider-main-headline-font-size: 25px,
$message-header-padding-bottom: 8px,
$message-header-small-up-padding-bottom: 8px,
$message-header-padding-top: 20px,
$message-header-small-up-padding-top: 20px
$message-header-small-up-padding-bottom: 8px
);
@use 'src/themes/Treedip/SoftClose/SoftClose';
@use 'src/themes/Treedip/Slider/KeenSlider' with (
Expand Down

0 comments on commit 020cf8e

Please sign in to comment.