From 5440b0f3547df26516d80d5f60c63df740cfc417 Mon Sep 17 00:00:00 2001 From: Yash Kanakiya <76934250+yashkanakiya@users.noreply.github.com> Date: Thu, 30 Mar 2023 11:51:38 +0530 Subject: [PATCH 1/4] Add dark mode in customer dashboard (#1199) * add dark mode in DashboardStatsItem * add dark mode in customer side header * add dark mode in customer view file * fix placeholder * fix base select input --------- Co-authored-by: yogesh-gohil --- .../components/base/BaseSelectInput.vue | 4 +- .../icons/dashboard/PaymentIcon.vue | 15 +++--- .../layouts/partials/TheSiteHeader.vue | 53 +++++-------------- .../views/dashboard/DashboardStatsItem.vue | 10 +++- .../dashboard/DashboardStatsPlaceholder.vue | 2 +- .../dashboard/DashboardStatsSmPlaceholder.vue | 1 + .../customer/views/estimates/Index.vue | 4 +- .../scripts/customer/views/estimates/View.vue | 17 +++--- .../scripts/customer/views/invoices/Index.vue | 4 +- .../scripts/customer/views/invoices/View.vue | 17 +++--- .../scripts/customer/views/payments/Index.vue | 4 +- .../scripts/customer/views/payments/View.vue | 17 +++--- 12 files changed, 72 insertions(+), 76 deletions(-) diff --git a/resources/scripts/components/base/BaseSelectInput.vue b/resources/scripts/components/base/BaseSelectInput.vue index aec9a698..fdb103bf 100644 --- a/resources/scripts/components/base/BaseSelectInput.vue +++ b/resources/scripts/components/base/BaseSelectInput.vue @@ -29,14 +29,12 @@ text-left bg-white dark:bg-gray-700 - border border-gray-200 rounded-md shadow-sm cursor-default focus:outline-none focus:ring-1 - focus:ring-primary-500 - focus:border-primary-500 + focus:ring-primary-400 focus:border-primary-400 sm:text-sm " > diff --git a/resources/scripts/components/icons/dashboard/PaymentIcon.vue b/resources/scripts/components/icons/dashboard/PaymentIcon.vue index 8e068476..f7b685a9 100644 --- a/resources/scripts/components/icons/dashboard/PaymentIcon.vue +++ b/resources/scripts/components/icons/dashboard/PaymentIcon.vue @@ -5,27 +5,30 @@ viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" - :class="colorClass" > - + diff --git a/resources/scripts/customer/layouts/partials/TheSiteHeader.vue b/resources/scripts/customer/layouts/partials/TheSiteHeader.vue index 29558c2d..40c8beb5 100644 --- a/resources/scripts/customer/layouts/partials/TheSiteHeader.vue +++ b/resources/scripts/customer/layouts/partials/TheSiteHeader.vue @@ -2,8 +2,9 @@ +
@@ -33,8 +34,8 @@ :to="`/${globalStore.companySlug}${item.link}`" :class="[ hasActiveUrl(item.link) - ? 'border-primary-500 text-primary-600' - : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300', + ? 'border-primary-500 text-primary-600 dark:text-primary-400' + : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-200', 'inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium', ]" > @@ -43,20 +44,6 @@
-
+
@@ -153,26 +142,10 @@
{{ globalStore.currentUser.title }}
-
+
{{ globalStore.currentUser.email }}
-
{{ item.title }}
- + - + {{ label }}
+
diff --git a/resources/scripts/customer/views/dashboard/DashboardStatsPlaceholder.vue b/resources/scripts/customer/views/dashboard/DashboardStatsPlaceholder.vue index a114818d..d199a894 100644 --- a/resources/scripts/customer/views/dashboard/DashboardStatsPlaceholder.vue +++ b/resources/scripts/customer/views/dashboard/DashboardStatsPlaceholder.vue @@ -1,7 +1,7 @@