Compare commits

..

1 Commits

Author SHA1 Message Date
19e20474e7 Add dark mode in BaseEmptyPlaceholder 2023-03-27 14:49:28 +05:30
2 changed files with 24 additions and 24 deletions

View File

@ -1,18 +1,24 @@
<template> <template>
<div class="flex flex-col items-center justify-center mt-16"> <div class="flex flex-col items-center justify-center mt-16">
<div class="flex flex-col items-center justify-center"> <div class="relative">
<slot></slot> <BaseDarkHighlight class="bg-highlight/[.07] top-2" />
</div>
<div class="mt-2"> <div class="relative z-5 flex flex-col items-center">
<label class="font-medium">{{ title }}</label> <div class="flex flex-col items-center justify-center">
</div> <slot />
<div class="mt-2"> </div>
<label class="text-gray-500"> <div class="mt-2">
{{ description }} <label class="font-medium">{{ title }}</label>
</label> </div>
</div> <div class="mt-2 text-center md:text-left">
<div class="mt-6"> <label class="text-gray-500 dark:text-gray-400">
<slot name="actions" /> {{ description }}
</label>
</div>
<div class="mt-6">
<slot name="actions" />
</div>
</div>
</div> </div>
</div> </div>
</template> </template>

View File

@ -1,8 +1,6 @@
<template> <template>
<div <div
:class="success || info :class="success || info ? 'bg-white' : 'bg-red-50'"
? '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
@ -50,7 +48,7 @@
</svg> </svg>
<svg <svg
v-if="error" v-if="error"
class="w-6 h-6 text-red-400 dark:text-white" class="w-6 h-6 text-red-400"
fill="currentColor" fill="currentColor"
viewBox="0 0 24 24" viewBox="0 0 24 24"
> >
@ -64,9 +62,7 @@
<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 success || info ? 'text-gray-900' : 'text-red-800'
? 'text-gray-900 dark:text-white'
: 'text-red-800 dark:text-white'
}`" }`"
> >
{{ {{
@ -79,9 +75,7 @@
</p> </p>
<p <p
:class="`mt-1 text-sm leading-5 ${ :class="`mt-1 text-sm leading-5 ${
success || info success || info ? 'text-gray-500' : 'text-red-700'
? 'text-gray-500 dark:text-gray-400'
: 'text-red-700 dark:text-red-200'
}`" }`"
> >
{{ {{
@ -98,7 +92,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 dark:text-red-100' : 'text-red-400 focus:text-red-500'
" "
class=" class="
inline-flex inline-flex