Skip to content

Commit

Permalink
Some refinements for the renewal page
Browse files Browse the repository at this point in the history
- Less spacing between the title and content,
- decrease height of the logo,
- less spacing between the CTA and the terms link, and
- link directly to the pricing section on the landing page.
  • Loading branch information
Vinnl committed Feb 3, 2025
1 parent 052345f commit 59dc2e2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const RenewalShell = (props: Props) => {
<Image
src={monitorLogo}
alt={l10n.getString("plus-expiration-header-logo-alt")}
height={32}
/>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@
padding-block-end: tokens.$spacing-md;
text-align: center;

h1 {
font: tokens.$text-title-xs;
.content {
display: flex;
flex-direction: column;
gap: tokens.$spacing-sm;

h1 {
font: tokens.$text-title-xs;

b {
color: tokens.$color-purple-70;
b {
color: tokens.$color-purple-70;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ export const View = (props: Props) => {
</>
) : (
<>
<h1>
{l10n.getFragment("plus-expiration-intro-heading", {
elems: { b: <b /> },
})}
</h1>
<p>{l10n.getString("plus-expiration-intro-content")}</p>
<div className={styles.content}>
<h1>
{l10n.getFragment("plus-expiration-intro-heading", {
elems: { b: <b /> },
})}
</h1>
<p>{l10n.getString("plus-expiration-intro-content")}</p>
</div>
{applyCouponState.error &&
applyCouponState.error !== "not_applied_yet" &&
!isApplyCouponPending &&
Expand Down Expand Up @@ -181,16 +183,16 @@ export const View = (props: Props) => {
>
{l10n.getString("plus-expiration-intro-cta-label")}
</Button>
<p className={styles.terms}>
<Link href="/terms/expiration-offer" target="_blank">
{l10n.getString("plus-expiration-intro-terms")}
<OpenInNew
alt={l10n.getString("open-in-new-tab-alt")}
width={13}
/>
</Link>
</p>
</div>
<p className={styles.terms}>
<Link href="/terms/expiration-offer" target="_blank">
{l10n.getString("plus-expiration-intro-terms")}
<OpenInNew
alt={l10n.getString("open-in-new-tab-alt")}
width={13}
/>
</Link>
</p>
</>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const View = (props: Props) => {
<li>{l10n.getString("plus-expiration-terms-term5")}</li>
<li>
{l10n.getFragment("plus-expiration-terms-term6", {
elems: { "monitor-link": <Link href="/" /> },
elems: { "monitor-link": <Link href="/#pricing" /> },
})}
</li>
</ul>
Expand Down

0 comments on commit 59dc2e2

Please sign in to comment.