From 3bb53d2a249bd31ff0aa804e27fce2c20241b225 Mon Sep 17 00:00:00 2001 From: yashkanakiya Date: Wed, 29 Mar 2023 12:51:01 +0530 Subject: [PATCH] add dark mode in customer side header --- .../layouts/partials/TheSiteHeader.vue | 55 +++++-------------- 1 file changed, 15 insertions(+), 40 deletions(-) diff --git a/resources/scripts/customer/layouts/partials/TheSiteHeader.vue b/resources/scripts/customer/layouts/partials/TheSiteHeader.vue index 29558c2d..bfb8084c 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 @@
@@ -136,15 +127,15 @@ :to="`/${globalStore.companySlug}${item.link}`" :class="[ hasActiveUrl(item.link) - ? 'bg-primary-50 border-primary-500 text-primary-700' - : 'border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800', + ? 'bg-primary-50 border-primary-500 text-primary-700 dark:bg-gray-700 dark:text-primary-400' + : 'border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 dark:text-gray-200 dark:hover:bg-gray-700', 'block pl-3 pr-4 py-2 border-l-4 text-base font-medium', ]" :aria-current="item.current ? 'page' : undefined" >{{ item.title }}
-
+
@@ -153,26 +144,10 @@
{{ globalStore.currentUser.title }}
-
+
{{ globalStore.currentUser.email }}
-
{{ item.title }}