Compare commits

..

1 Commits

Author SHA1 Message Date
feb8c1b5b4 Add dark mode in NotificationItem 2023-03-27 16:47:19 +05:30
2 changed files with 13 additions and 14 deletions

View File

@ -41,11 +41,6 @@
w-[300px] w-[300px]
h-[200px] h-[200px]
right-0 right-0
dark:border-white/10
dark:text-white
dark:bg-gray-800/[.95]
dark:shadow-glass
dark:backdrop-blur-xl
" "
> >
<div <div
@ -73,7 +68,7 @@
<div <div
v-for="(customer, index) in usersStore.customerList" v-for="(customer, index) in usersStore.customerList"
:key="index" :key="index"
class="p-2 hover:bg-gray-100 cursor-pointer rounded-md dark:hover:bg-gray-700/40" class="p-2 hover:bg-gray-100 cursor-pointer rounded-md"
> >
<router-link <router-link
:to="{ path: `/admin/customers/${customer.id}/view` }" :to="{ path: `/admin/customers/${customer.id}/view` }"
@ -92,7 +87,6 @@
bg-gray-200 bg-gray-200
rounded-full rounded-full
text-primary-500 text-primary-500
dark:bg-gray-600
" "
> >
{{ initGenerator(customer.name) }} {{ initGenerator(customer.name) }}
@ -122,7 +116,7 @@
<div <div
v-for="(user, index) in usersStore.userList" v-for="(user, index) in usersStore.userList"
:key="index" :key="index"
class="p-2 hover:bg-gray-100 cursor-pointer rounded-md dark:hover:bg-gray-700/40" class="p-2 hover:bg-gray-100 cursor-pointer rounded-md"
> >
<router-link <router-link
:to="{ path: `/admin/users/${user.id}/edit` }" :to="{ path: `/admin/users/${user.id}/edit` }"
@ -141,7 +135,6 @@
bg-gray-200 bg-gray-200
rounded-full rounded-full
text-primary-500 text-primary-500
dark:bg-gray-600
" "
> >
{{ initGenerator(user.name) }} {{ initGenerator(user.name) }}

View File

@ -1,6 +1,8 @@
<template> <template>
<div <div
:class="success || info ? 'bg-white' : 'bg-red-50'" :class="success || info
? 'bg-white dark:border dark:border-white/10 dark:text-white dark:bg-gray-800/[.80] dark:shadow-glass dark:backdrop-blur-sm'
: 'bg-red-50 dark:bg-red-400/[.70] dark:shadow-glass dark:backdrop-blur-sm'"
class=" class="
max-w-sm max-w-sm
mb-3 mb-3
@ -48,7 +50,7 @@
</svg> </svg>
<svg <svg
v-if="error" v-if="error"
class="w-6 h-6 text-red-400" class="w-6 h-6 text-red-400 dark:text-white"
fill="currentColor" fill="currentColor"
viewBox="0 0 24 24" viewBox="0 0 24 24"
> >
@ -62,7 +64,9 @@
<div class="flex-1 w-0 ml-3 text-left"> <div class="flex-1 w-0 ml-3 text-left">
<p <p
:class="`text-sm leading-5 font-medium ${ :class="`text-sm leading-5 font-medium ${
success || info ? 'text-gray-900' : 'text-red-800' success || info
? 'text-gray-900 dark:text-white'
: 'text-red-800 dark:text-white'
}`" }`"
> >
{{ {{
@ -75,7 +79,9 @@
</p> </p>
<p <p
:class="`mt-1 text-sm leading-5 ${ :class="`mt-1 text-sm leading-5 ${
success || info ? 'text-gray-500' : 'text-red-700' success || info
? 'text-gray-500 dark:text-gray-400'
: 'text-red-700 dark:text-red-200'
}`" }`"
> >
{{ {{
@ -92,7 +98,7 @@
:class=" :class="
success || info success || info
? ' text-gray-400 focus:text-gray-500' ? ' text-gray-400 focus:text-gray-500'
: 'text-red-400 focus:text-red-500' : 'text-red-400 focus:text-red-500 dark:text-red-100'
" "
class=" class="
inline-flex inline-flex