From 747bacb901925ea83db218570e6a97547330c051 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 30 Jun 2023 21:09:23 -0700 Subject: [PATCH] refactor: improved CTAs on callbackfeedback modal --- components/Brand/Button.vue | 9 +- components/DownloadApiLogs.ce.vue | 12 +- components/Modal.vue | 4 +- components/UserProfile/CallbackFeedback.vue | 146 ++++++++++++------ .../UserProfile/CallbackFeedbackStatus.vue | 8 +- components/UserProfile/DropdownLaunchpad.vue | 4 +- components/UserProfile/Promo.vue | 2 +- components/UserProfile/PromoFeature.vue | 8 +- store/account.ts | 70 +++++---- store/callbackActions.ts | 9 +- 10 files changed, 158 insertions(+), 114 deletions(-) diff --git a/components/Brand/Button.vue b/components/Brand/Button.vue index b3d9bde1f..571f880f5 100644 --- a/components/Brand/Button.vue +++ b/components/Brand/Button.vue @@ -1,7 +1,8 @@ @@ -31,6 +35,7 @@ const classes = computed(() => { :href="href" :rel="external ? 'noopener noreferrer' : ''" :target="external ? '_blank' : ''" + :type="!href ? btnType : ''" class="text-14px text-center font-semibold flex-none flex flex-row items-center justify-center gap-x-8px px-8px py-8px cursor-pointer rounded-md" :class="classes" > diff --git a/components/DownloadApiLogs.ce.vue b/components/DownloadApiLogs.ce.vue index f820ee0cc..06748b01d 100644 --- a/components/DownloadApiLogs.ce.vue +++ b/components/DownloadApiLogs.ce.vue @@ -17,16 +17,12 @@ const downloadUrl = computed(() => new URL(`/graphql/api/logs?apiKey=${apiKey.va The primary method of support for Unraid Connect is through our forums and Discord. If you are asked to supply logs, please open a support request on our Contact Page and reply to the email message you receive with your logs attached. The logs may contain sensitive information so do not post them publicly. - - - {{ 'Download' }} - + :external="true" + :icon="ArrowDownTrayIcon" + :text="'Download'" /> diff --git a/components/Modal.vue b/components/Modal.vue index 806e34cd5..b0e7f8c9b 100644 --- a/components/Modal.vue +++ b/components/Modal.vue @@ -73,7 +73,7 @@ const ariaLablledById = computed((): string|undefined => props.title ? `ModalTit success ? 'shadow-green-600/30 border-green-600/10' : '', !error && !success ? 'shadow-orange/10 border-white/10' : '', ]" - class="text-beta bg-alpha border-2 border-solid relative transform overflow-hidden rounded-lg px-4 pb-4 pt-5 sm:my-8 sm:p-6 text-left shadow-xl transition-all sm:w-full" + class="text-16px text-beta bg-alpha text-left relative flex flex-col justify-around p-16px my-24px sm:p-24px border-2 border-solid shadow-xl transform overflow-hidden rounded-lg transition-all sm:w-full" >