Skip to content

Commit

Permalink
feat : further Figma copy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-daniel-dempsey committed Oct 25, 2024
1 parent 1592be0 commit ca3c13c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 42 deletions.
2 changes: 1 addition & 1 deletion support-frontend/assets/components/offer/offer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function OfferFeast(): JSX.Element {
return (
<div css={containerStyle}>
<p css={paragraphStyle}>
Unlimited access to the Guardian Feast App{' '}
Unlimited access to the Guardian Feast app{' '}
<span css={tooltipOfferStyle}>
<Tooltip
children={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,12 @@ export const getThankYouModuleData = (
},
newspaperArchiveBenefit: {
icon: getThankYouModuleIcon('newspaperArchiveBenefit'),
header: 'The Guardian newspapers archive',
header: 'The Guardian newspaper archive',
bodyCopy: (
<>
Sign in to start exploring more than 200 years of world history with
our newspaper archive. View digital reproductions of every front page,
article and advertisement as it was printed in the
{countryGroupId === 'GBPCountries' ? ' Guardian' : ' UK,'} from 1821
article and advertisement as it was printed in the Guardian from 1821.
</>
),
ctas: null,
Expand Down
63 changes: 30 additions & 33 deletions support-frontend/assets/helpers/productCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,39 +344,36 @@ export const productCatalogDescription: Record<ProductKey, ProductDescription> =
},
};

export function productCatalogDescriptionNewBenefits(
countryGroupId: CountryGroupId,
): Record<ProductKey, ProductDescription> {
return {
...productCatalogDescription,
TierThree: {
...productCatalogDescription.TierThree,
benefits: [
...productCatalogDescription.TierThree.benefits,
{
copy: `Unlimited access to the Guardian's 200-year newspaper archive`,
isNew: true,
tooltip: `Look back on more than 200 years of world history with the Guardian newspaper archive. Get digital access to every front page, article and advertisement, as it was printed ${
countryGroupId === 'GBPCountries' ? '' : ' in the UK'
}, since 1821.`,
},
],
},
SupporterPlus: {
...productCatalogDescription.SupporterPlus,
benefits: [
...productCatalogDescription.SupporterPlus.benefits,
{
copy: 'Unlimited access to the Guardian Feast app',
isNew: true,
tooltip:
'Make a feast out of anything with the Guardian’s new recipe app. Feast has thousands of recipes including quick and budget-friendly weeknight dinners, and showstopping weekend dishes – plus smart app features to make mealtimes inspiring.',
},
],
offers: [],
},
};
}
export const productCatalogDescriptionNewBenefits: Record<
ProductKey,
ProductDescription
> = {
...productCatalogDescription,
TierThree: {
...productCatalogDescription.TierThree,
benefits: [
...productCatalogDescription.TierThree.benefits,
{
copy: `Unlimited access to the Guardian's 200-year newspaper archive`,
isNew: true,
tooltip: `Look back on more than 200 years of world history with the Guardian archive. Get digital access to every front page, article and advertisement printed in the newspaper from 1981.`,
},
],
},
SupporterPlus: {
...productCatalogDescription.SupporterPlus,
benefits: [
...productCatalogDescription.SupporterPlus.benefits,
{
copy: 'Unlimited access to the Guardian Feast app',
isNew: true,
tooltip:
'Make a feast out of anything with the Guardian’s new recipe app. Feast has thousands of recipes including quick and budget-friendly weeknight dinners, and showstopping weekend dishes – plus smart app features to make mealtimes inspiring.',
},
],
offers: [],
},
};

/**
* This method is to help us determine which product and rateplan to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ function CheckoutComponent({
const supportAbTests = getSupportAbTests(abParticipations);

const productDescription = abParticipations.newspaperArchiveBenefit
? productCatalogDescriptionNewBenefits(countryGroupId)[productKey]
? productCatalogDescriptionNewBenefits[productKey]
: productCatalogDescription[productKey];
const ratePlanDescription = productDescription.ratePlans[ratePlanKey];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export function NewspaperArchiveBanner() {
</span>
</h2>
<p css={paragraph}>
Since 1821, the worlds major events have been documented in the pages
of the Guardian’s UK newspaper. Today, you can journey through the
archive and search records of world history from wherever you are
Since 1821, the world's major events have been documented in the pages
of the Guardian. Today, you can search through and view that record of
history with access to the Guardian archives.
</p>
</div>
<Hide from="desktop">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export function ThreeTierLanding({
const productCatalogDescription = ['v1', 'v2'].includes(
abParticipations.newspaperArchiveBenefit ?? '',
)
? productCatalogDescriptionNewBenefits(countryGroupId)
? productCatalogDescriptionNewBenefits
: canonicalProductCatalogDescription;

/**
Expand Down

0 comments on commit ca3c13c

Please sign in to comment.