Skip to content

Commit 1ecce08

Browse files
authored
Update trial plan layout (#371)
1 parent edd6b75 commit 1ecce08

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

frontend/public/favicon.ico

-19 KB
Binary file not shown.

frontend/src/modules/settings/pages/plans-page.vue

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</div>
6262

6363
<div
64-
class="flex flex-col gap-4 text-gray-900 text-xs mb-12"
64+
class="flex flex-col gap-4 text-gray-900 text-xs mb-10"
6565
>
6666
<div v-if="plan.featuresNote">
6767
{{ plan.featuresNote }}
@@ -82,19 +82,37 @@
8282
</div>
8383
</div>
8484

85-
<div class="text-center">
85+
<div
86+
class="text-center flex flex-col justify-end"
87+
:class="{
88+
'min-h-10': !isGrowthTrialPlan,
89+
'min-h-[110px]': isGrowthTrialPlan
90+
}"
91+
>
8692
<div
8793
v-if="
8894
plan.key === crowdHostedPlans.growth &&
8995
isGrowthTrialPlan
9096
"
9197
class="text-gray-500 text-xs italic mb-3"
9298
>
93-
{{ getTrialDate() }}
99+
<span class="font-medium">{{
100+
getTrialDate()
101+
}}</span
102+
><br />
103+
<span
104+
>If you don't take action, you will be
105+
automatically downgraded to Essential.</span
106+
>
94107
</div>
95108
<el-button
96109
v-if="
97-
plan.key !== activePlan || isGrowthTrialPlan
110+
(plan.key !== activePlan ||
111+
isGrowthTrialPlan) &&
112+
!(
113+
plan.key === crowdHostedPlans.essential &&
114+
isGrowthTrialPlan
115+
)
98116
"
99117
class="btn btn--md btn--full btn--primary"
100118
@click="() => handleOnCtaClick(plan.key)"
@@ -267,7 +285,9 @@ const getTrialDate = () => {
267285
currentTenant.value.trialEndsAt
268286
).diff(moment(), 'days')
269287
270-
return `Trial ends in ${daysLeft < 0 ? 0 : daysLeft} days`
288+
return `Growth Trial ends in ${
289+
daysLeft < 0 ? 0 : daysLeft
290+
} days.`
271291
}
272292
</script>
273293

0 commit comments

Comments
 (0)