Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #734 from B77Mills/adjustPushdown
Browse files Browse the repository at this point in the history
Adjust pushdown for a more condensed look
  • Loading branch information
brandonbk authored Jul 5, 2023
2 parents 90110d1 + dfc6c3c commit a14ba34
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
:class="`${blockName}__form-button`"
:is-loading="isLoading"
:disabled="isComplete"
:label="ctaLabel"
:lang="lang"
/>
</div>
Expand Down Expand Up @@ -180,6 +181,10 @@ export default {
type: Boolean,
default: false,
},
ctaLabel: {
type: String,
default: null,
},
privacyPolicyLink: {
type: Object,
required: true,
Expand Down
10 changes: 10 additions & 0 deletions packages/marko-web-theme-monorail/browser/site-newsletter-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:disabled="disabled"
:image-src="imageSrc"
:image-srcset="imageSrcset"
:ctaLabel="step1CtaLabel"
:recaptcha-site-key="recaptchaSiteKey"
:privacy-policy-link="privacyPolicyLink"
:lang="lang"
Expand All @@ -25,6 +26,7 @@
:default-newsletter="defaultNewsletter"
:newsletters="newsletters"
:demographic="demographic"
:ctaLabel="step2CtaLabel"
:recaptcha-site-key="recaptchaSiteKey"
:privacy-policy-link="privacyPolicyLink"
:lang="lang"
Expand Down Expand Up @@ -92,6 +94,14 @@ export default {
type: String,
default: null,
},
step1CtaLabel: {
type: String,
default: null,
},
step2CtaLabel: {
type: String,
default: null,
},
privacyPolicyLink: {
type: Object,
required: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="row">
<div :class="element('image-wrapper', ['d-none', 'd-md-flex', 'col-md-5', 'col-lg-4'])">
<div :class="element('image-wrapper', ['d-none', 'd-md-flex', 'col-md-3'])">
<img
v-if="imageSrc"
:src="imageSrc"
Expand All @@ -9,7 +9,7 @@
:class="element('image')"
>
</div>
<div :class="element('form-wrapper', ['col-12', 'col-md-6', 'col-lg-5'])">
<div :class="element('form-wrapper', ['col-12', 'col-md-8'])">
<div :class="element('name')">
{{ name }}
</div>
Expand Down Expand Up @@ -38,6 +38,7 @@
:class="element('form-button')"
:is-loading="isLoading"
:disabled="disabled || recaptcha.loading || recaptcha.error"
:label="ctaLabel"
:lang="lang"
/>
</form>
Expand All @@ -52,7 +53,7 @@
{{ error.message }}
</div>
</div>
<div :class="element('close-container', ['d-none', 'd-md-flex', 'col-md-1', 'col-lg-3'])">
<div :class="element('close-container', ['d-none', 'd-md-flex', 'col-md-1'])">
<close-button
:class-name="element('close').join(' ')"
target-button=".site-navbar__newsletter-toggler"
Expand Down Expand Up @@ -98,6 +99,10 @@ export default {
type: String,
required: true,
},
ctaLabel: {
type: String,
default: null,
},
disabled: {
type: Boolean,
default: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $ const {
newsletters,
demographic,
disabled,
step1CtaLabel,
step2CtaLabel,
privacyPolicy,
} = site.getAsObject("newsletter.pushdown");

Expand All @@ -33,6 +35,8 @@ $ const imageSrcset = imageSrc ? `${imageSrc}&dpr=2 2x` : null;
imageSrc,
imageSrcset,
initiallyExpanded,
step1CtaLabel,
step2CtaLabel,
recaptchaSiteKey: recaptcha.siteKey,
privacyPolicyLink: privacyPolicy,
lang
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}

&__image {
width: 280px;
width: 170px;
margin-top: auto;
margin-right: auto;
margin-left: auto;
Expand Down

0 comments on commit a14ba34

Please sign in to comment.