Skip to content

Commit

Permalink
Changes for copy in US landing page only
Browse files Browse the repository at this point in the history
  • Loading branch information
“LAKSHMIRPILLAI” committed Feb 6, 2025
1 parent f2bbb0a commit 8fe04ab
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
6 changes: 6 additions & 0 deletions support-frontend/assets/helpers/productCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ const addFreeBenefit = {

const newsletterBenefit = {
copy: 'Exclusive newsletter for supporters, sent every week from the Guardian newsroom',
specificToRegions: ['GBPCountries', 'EURCountries','AUDCountries', 'NZDCountries', 'Canada', 'International'],
};
const newsletterBenefitUS = {
copy: 'Regular dispatches from the newsroom to see the impact of your support',
specificToRegions: ['UnitedStates'],
};
const fewerAsksBenefit = {
copy: 'Far fewer asks for support',
Expand Down Expand Up @@ -141,6 +146,7 @@ const supporterPlusBenefits = [
appBenefit,
addFreeBenefit,
newsletterBenefit,
newsletterBenefitUS,
fewerAsksBenefit,
partnerOffersBenefit,
feastBenefit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ import type {
} from 'helpers/contributions';
import { Country } from 'helpers/internationalisation/classes/country';
import {
AUDCountries,
Canada,
EURCountries,
GBPCountries,
International,
NZDCountries,
UnitedStates,
AUDCountries,
Canada,
EURCountries,
GBPCountries,
International,
NZDCountries,
UnitedStates,
} from 'helpers/internationalisation/countryGroup';
import { currencies } from 'helpers/internationalisation/currency';
import {
Expand Down Expand Up @@ -342,13 +342,15 @@ export function ThreeTierLanding({
showCountdown: boolean,
currentCountdownSettings?: CountdownSetting,
campaignSettings?: CampaignSettings | null,
countryGroupId?: CountryGroupId,
) => {
if (showCountdown && currentCountdownSettings?.label.trim()) {
return currentCountdownSettings.label;
} else {
const firstWord = countryGroupId === UnitedStates ? 'Protect' : 'Support';
return (
<>
{campaignSettings?.copy.headingFragment ?? <>Support </>}
{campaignSettings?.copy.headingFragment ?? <>{firstWord} </>}
fearless, <br css={tabletLineBreak} />
independent journalism
{campaignSettings?.copy.punctuation ??
Expand Down Expand Up @@ -448,7 +450,7 @@ export function ThreeTierLanding({
urlSearchParamsProduct === 'SupporterPlus' ||
isCardUserSelected(tier2Pricing, promotionTier2?.discount?.amount),
ctaCopy: 'Support',
lozengeText: 'Recommended',
lozengeText: 'Recommended',
};

/**
Expand Down Expand Up @@ -620,6 +622,7 @@ export function ThreeTierLanding({
showCountdown,
currentCountdownSettings,
campaignSettings,
countryGroupId
)}
</h1>
{countryGroupId !== 'UnitedStates' && (
Expand Down

0 comments on commit 8fe04ab

Please sign in to comment.