Skip to content

Commit 481e3b3

Browse files
committed
ui(home): improve pricing UI
1 parent 3f4135d commit 481e3b3

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

apps/client/src/pages/home/Pricing/PlanCard.vue

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,44 @@
2121

2222
<Gap style="height: 40px" />
2323

24-
<div style="text-align: center; position: relative">
24+
<div
25+
v-if="$q.platform.is.capacitor && $q.platform.is.ios"
26+
style="text-align: center; position: relative"
27+
>
28+
<span style="font-size: 46px">
29+
${{
30+
billingFrequency === 'monthly'
31+
? monthlyPrice
32+
: parseFloat(monthlyPrice) * 12
33+
}}
34+
</span>
35+
<span style="font-size: 12px; color: #d0d0d0">
36+
/ {{ billingFrequency === 'monthly' ? 'month' : 'year' }}</span
37+
>
38+
39+
<div
40+
v-if="billingFrequency === 'yearly' && parseFloat(monthlyPrice) > 0"
41+
style="
42+
position: absolute;
43+
width: 100%;
44+
margin-top: -6px;
45+
text-align: center;
46+
font-size: 13px;
47+
color: #d0d0d0;
48+
"
49+
>
50+
(${{ monthlyPrice }} / month)
51+
</div>
52+
</div>
53+
<div
54+
v-else
55+
style="text-align: center; position: relative"
56+
>
2557
<span style="font-size: 46px">${{ monthlyPrice }}</span>
2658
<span style="font-size: 12px; color: #d0d0d0">/ month</span>
2759

2860
<div
29-
v-if="billingFrequency === 'yearly'"
61+
v-if="billingFrequency === 'yearly' && parseFloat(monthlyPrice) > 0"
3062
style="
3163
position: absolute;
3264
width: 100%;
@@ -36,7 +68,7 @@
3668
color: #d0d0d0;
3769
"
3870
>
39-
(billed anually)
71+
(${{ parseFloat(monthlyPrice) * 12 }} / year)
4072
</div>
4173
</div>
4274

apps/client/src/pages/home/Pricing/Pricing.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<PlanCard
2222
title="Basic"
2323
monthly-price="0"
24+
:billing-frequency="billingFrequency"
2425
:features="[
2526
{
2627
icon: 'mdi-note',

0 commit comments

Comments
 (0)