upgrade plan UI improvements

This commit is contained in:
Čarodej
2022-01-03 11:14:27 +01:00
parent 2363592dcd
commit 9d189b3d12
8 changed files with 232 additions and 729 deletions

View File

@@ -177,8 +177,8 @@
</ValidationObserver>
</div>
<!-- Payment method for automatically handle payments -->
<div class="card shadow-card">
<!-- Payment method for automatically handle payments - only for Stripe -->
<div v-if="config.isStripe" class="card shadow-card">
<FormLabel icon="credit-card">
{{ $t('Payment Method') }}
</FormLabel>

View File

@@ -2,26 +2,15 @@
<PageTab :is-loading="isLoading">
<div v-if="subscription" class="card shadow-card">
<FormLabel>
{{ $t('Details') }}
{{ $t('Subscription') }}
</FormLabel>
<div class="md:flex md:space-x-10 mb-8">
<div class="md:mb-0 mb-6">
<b class="block leading-5 text-lg">
{{ status }}
</b>
<small class="text-gray-500">
{{ $t('We will send you a notification upon Subscription expiration') }}
</small>
</div>
<div>
<b class="block leading-5 text-lg">
{{ price }}
</b>
<small class="text-gray-500">
{{ subscription.relationships.plan.data.attributes.name }}
</small>
</div>
</div>
<b class="text-3xl font-extrabold -mt-3 block mb-0.5">
{{ status }}
</b>
<b class="mb-3 block text-sm text-gray-400 mb-8">
{{ subscription.relationships.plan.data.attributes.name }} / {{ price }}
</b>
<div v-for="(limit, i) in limitations" :key="i" :class="{'mb-6': (Object.keys(limitations).length - 1) !== i}">
<b class="mb-3 block text-sm text-gray-400">
@@ -211,6 +200,7 @@
type: 'danger',
message: this.$t('popup_error.title'),
})
this.isGeneratedUpdateLink = false
})
},