From e4f0c8230f244697917711a155d780d7a1681e65 Mon Sep 17 00:00:00 2001 From: lukicenturi Date: Fri, 21 Jul 2023 16:57:53 +0700 Subject: [PATCH] refactor: update button and link --- components/HeroArea.vue | 16 +- components/NavigationMenu.vue | 74 ++++------ .../account/activation/AccountActivate.vue | 2 +- .../account/home/AccountInformation.vue | 20 ++- components/account/home/ApiKeys.vue | 20 +-- .../account/home/CancelSubscription.vue | 43 ++++-- components/account/home/ChangePassword.vue | 20 ++- components/account/home/DangerZone.vue | 43 ++++-- components/account/login/LoginForm.vue | 30 ++-- .../account/password/PasswordChanged.vue | 2 +- components/account/password/PasswordForm.vue | 15 +- components/account/password/PasswordReset.vue | 19 ++- components/account/signup/SignupForm.vue | 43 +++--- components/checkout/CheckIcon.vue | 8 +- components/checkout/SelectionButton.vue | 15 +- components/checkout/plan/ChangePlanDialog.vue | 12 +- components/checkout/plan/SelectablePlan.vue | 2 +- components/common/ActionButton.vue | 137 ------------------ components/common/ButtonLink.vue | 43 ++++++ components/common/ExternalLink.vue | 36 ----- components/download/DownloadButton.vue | 14 +- components/features/details/DefiProtocols.vue | 9 +- .../details/SupportedExchangeDetails.vue | 9 +- components/footer/FooterIconLinks.vue | 16 +- components/footer/FooterLegalese.vue | 36 ++--- components/header/PageHeader.vue | 33 ++++- components/plans/blocks/PlanBox.vue | 14 +- components/plans/details/CustomPlan.vue | 12 +- components/premium/details/GetPremium.vue | 41 ++---- components/products/ProductsPage.vue | 13 +- components/products/SubscribeNowButton.vue | 31 ++-- error.vue | 19 ++- plugins/ui-library.ts | 6 +- 33 files changed, 398 insertions(+), 455 deletions(-) delete mode 100644 components/common/ActionButton.vue create mode 100644 components/common/ButtonLink.vue delete mode 100644 components/common/ExternalLink.vue diff --git a/components/HeroArea.vue b/components/HeroArea.vue index ea67571f..6f9b0883 100644 --- a/components/HeroArea.vue +++ b/components/HeroArea.vue @@ -24,11 +24,17 @@ const { t } = useI18n();
- + + + {{ t('actions.get_premium') }} +
rotki screenshot diff --git a/components/NavigationMenu.vue b/components/NavigationMenu.vue index 51c3f091..5b20b46e 100644 --- a/components/NavigationMenu.vue +++ b/components/NavigationMenu.vue @@ -1,54 +1,38 @@ diff --git a/components/account/activation/AccountActivate.vue b/components/account/activation/AccountActivate.vue index a034d53f..b7d5b172 100644 --- a/components/account/activation/AccountActivate.vue +++ b/components/account/activation/AccountActivate.vue @@ -37,7 +37,7 @@ const css = useCssModule();

Your rotki account has been successfully activated.

To see your dashboard click - + here
diff --git a/components/account/home/AccountInformation.vue b/components/account/home/AccountInformation.vue index 7efa6579..df0ffc24 100644 --- a/components/account/home/AccountInformation.vue +++ b/components/account/home/AccountInformation.vue @@ -1,4 +1,5 @@ - - - - diff --git a/components/common/ButtonLink.vue b/components/common/ButtonLink.vue new file mode 100644 index 00000000..dabad8bd --- /dev/null +++ b/components/common/ButtonLink.vue @@ -0,0 +1,43 @@ + + + diff --git a/components/common/ExternalLink.vue b/components/common/ExternalLink.vue deleted file mode 100644 index 47462369..00000000 --- a/components/common/ExternalLink.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/components/download/DownloadButton.vue b/components/download/DownloadButton.vue index a160f0e4..ff22fad3 100644 --- a/components/download/DownloadButton.vue +++ b/components/download/DownloadButton.vue @@ -1,9 +1,21 @@ diff --git a/components/features/details/DefiProtocols.vue b/components/features/details/DefiProtocols.vue index 8bd53da5..e800f361 100644 --- a/components/features/details/DefiProtocols.vue +++ b/components/features/details/DefiProtocols.vue @@ -25,12 +25,9 @@ const css = useCssModule();
- + + {{ t('home.more_information') }} + diff --git a/components/features/details/SupportedExchangeDetails.vue b/components/features/details/SupportedExchangeDetails.vue index 21ce8834..7d410fb5 100644 --- a/components/features/details/SupportedExchangeDetails.vue +++ b/components/features/details/SupportedExchangeDetails.vue @@ -24,12 +24,9 @@ const { t } = useI18n();
- + + {{ t('home.more_information') }} + diff --git a/components/footer/FooterIconLinks.vue b/components/footer/FooterIconLinks.vue index 166c2702..961d328c 100644 --- a/components/footer/FooterIconLinks.vue +++ b/components/footer/FooterIconLinks.vue @@ -1,5 +1,5 @@ diff --git a/components/plans/blocks/PlanBox.vue b/components/plans/blocks/PlanBox.vue index cd821c5a..7feb3148 100644 --- a/components/plans/blocks/PlanBox.vue +++ b/components/plans/blocks/PlanBox.vue @@ -1,4 +1,5 @@ @@ -19,7 +21,15 @@ const css = useCssModule(); {{ t('home.plans.details.custom.subtitle') }}
- + + {{ t('actions.get_in_touch') }} +
diff --git a/components/premium/details/GetPremium.vue b/components/premium/details/GetPremium.vue index 2da2edd8..1d51473b 100644 --- a/components/premium/details/GetPremium.vue +++ b/components/premium/details/GetPremium.vue @@ -1,34 +1,19 @@ - - diff --git a/components/products/ProductsPage.vue b/components/products/ProductsPage.vue index 544628a2..c02d2efb 100644 --- a/components/products/ProductsPage.vue +++ b/components/products/ProductsPage.vue @@ -1,6 +1,4 @@ @@ -80,9 +78,16 @@ const css = useCssModule();
- + More Details - +
diff --git a/components/products/SubscribeNowButton.vue b/components/products/SubscribeNowButton.vue index 256e2c4c..493ca224 100644 --- a/components/products/SubscribeNowButton.vue +++ b/components/products/SubscribeNowButton.vue @@ -28,26 +28,37 @@ const allowNavigation = computed(() => { const { emailConfirmed } = get(account); return emailConfirmed; }); - -const goToCheckoutPlan = () => navigateTo('/checkout/plan'); - -const goToAccount = () => navigateTo('/home'); diff --git a/error.vue b/error.vue index 74e93a4a..6a5164e5 100644 --- a/error.vue +++ b/error.vue @@ -1,4 +1,5 @@