Add copy for personal plan discount, and include old undiscounted price on plans page (#7770)

* Add copy for personal plan discount, and include old undiscounted price on plans page

GitOrigin-RevId: 34d1361d8257e0ed1923bc6f8950167657e44055
This commit is contained in:
Thomas 2022-04-27 17:01:21 +02:00 committed by Copybot
parent a1ff7d8274
commit 8352bada7b
3 changed files with 45 additions and 6 deletions

View file

@ -132,6 +132,13 @@ mixin gen_localized_price_for_plan_view(plan, view)
data-ol-currencyCode=currencyCode
) #{settings.localizedPlanPricing[currencyCode][plan][view]}
mixin gen_localized_undiscounted_price_for_plan_view(plan, view)
for currencyCode in Object.keys(settings.localizedPlanPricing)
span(
hidden=(currencyCode !== recommendedCurrency)
data-ol-currencyCode=currencyCode
) #{settings.localizedPlanPricing[currencyCode][plan]['withoutDiscount'][view]}
mixin gen_localized_price_for_plan(plan)
div(data-ol-view='monthly')
+gen_localized_price_for_plan_view(plan, 'monthly')
@ -140,9 +147,25 @@ mixin gen_localized_price_for_plan(plan)
+gen_localized_price_for_plan_view(plan, 'annual')
span.small /yr
mixin gen_localized_price_for_personal_plan_special_offer
div(data-ol-view='monthly')
+gen_localized_price_for_plan_view('personal', 'monthly')
span.small /mo
.undiscounted-price.small
span.sr-only Price reduced from
+gen_localized_undiscounted_price_for_plan_view('personal', 'monthly')
| /mo
div(hidden data-ol-view='annual')
+gen_localized_price_for_plan_view('personal', 'annual')
span.small /yr
.undiscounted-price.small
span.sr-only Price reduced from
+gen_localized_undiscounted_price_for_plan_view('personal', 'annual')
| /yr
//- Prices
mixin price_personal
+gen_localized_price_for_plan('personal')
+gen_localized_price_for_personal_plan_special_offer
mixin price_collaborator
+gen_localized_price_for_plan('collaborator')
mixin price_professional
@ -209,7 +232,9 @@ mixin allCardsAndControls(controlsRowSpaced, listLocation)
.card.card-first
.card-header
h2 #{translate("personal")}
h5.tagline #{translate("tagline_personal")}
.card-byline
h5.tagline #{translate("tagline_personal")}
h5.special-offer #{translate("limited_time_discount")}
.circle
+price_personal
+features_personal(location)
@ -222,7 +247,8 @@ mixin allCardsAndControls(controlsRowSpaced, listLocation)
h2 #{translate("standard")}
else
h2 #{translate("collaborator")}
h5.tagline #{translate("tagline_collaborator")}
.card-byline
h5.tagline #{translate("tagline_collaborator")}
.circle
+price_collaborator
+features_collaborator(location)
@ -230,7 +256,8 @@ mixin allCardsAndControls(controlsRowSpaced, listLocation)
.card.card-last
.card-header
h2 #{translate("professional")}
h5.tagline #{translate("tagline_professional")}
.card-byline
h5.tagline #{translate("tagline_professional")}
.circle
+price_professional
+features_professional(location)

View file

@ -64,6 +64,9 @@
.card-header {
margin-bottom: 15px;
}
.card-byline {
min-height: 58px;
}
.circle {
font-size: 1.5rem;
font-weight: 700;
@ -77,10 +80,14 @@
color: white;
white-space: nowrap;
line-height: 1;
span.small {
.small {
color: rgba(255, 255, 255, 0.85);
font-size: @font-size-base * 0.8;
}
.undiscounted-price {
text-decoration: line-through;
margin-top: -48px;
}
}
.circle-lg {
width: 150px;
@ -119,7 +126,11 @@
margin-bottom: @line-height-computed;
}
.tagline {
margin-bottom: 20px;
margin-bottom: 0px;
}
.special-offer {
margin-top: 6px;
color: @ol-dark-green;
}
ul.nav-pills {
text-align: center;

View file

@ -495,6 +495,7 @@
"tagline_professional": "For those working with many",
"tagline_student_annual": "Save even more",
"tagline_student_monthly": "Great for a single term",
"limited_time_discount": "Limited-time discount!",
"all_premium_features": "All premium features",
"sync_dropbox_github": "Sync with Dropbox and GitHub",
"demonstrating_git_integration": "Demonstrating Git integration",