Compare commits

..

1 Commits

Author SHA1 Message Date
982125a199 Add dark mode in BaseErrorAlert 2023-03-27 13:47:58 +05:30
2 changed files with 23 additions and 22 deletions

View File

@ -1,17 +1,13 @@
<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="relative">
<BaseDarkHighlight class="bg-highlight/[.07] top-2" />
<div class="relative z-5 flex flex-col items-center">
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<slot /> <slot></slot>
</div> </div>
<div class="mt-2"> <div class="mt-2">
<label class="font-medium">{{ title }}</label> <label class="font-medium">{{ title }}</label>
</div> </div>
<div class="mt-2 text-center md:text-left"> <div class="mt-2">
<label class="text-gray-500 dark:text-gray-400"> <label class="text-gray-500">
{{ description }} {{ description }}
</label> </label>
</div> </div>
@ -19,8 +15,6 @@
<slot name="actions" /> <slot name="actions" />
</div> </div>
</div> </div>
</div>
</div>
</template> </template>
<script setup> <script setup>

View File

@ -1,11 +1,18 @@
<template> <template>
<div class="rounded-md bg-red-50 p-4"> <div
class="
rounded-md
bg-red-50
p-4
dark:border dark:border-red-400 dark:bg-transparent
"
>
<div class="flex"> <div class="flex">
<div class="shrink-0"> <div class="shrink-0">
<XCircleIcon class="h-5 w-5 text-red-400" aria-hidden="true" /> <XCircleIcon class="h-5 w-5 text-red-400 dark:text-red-500" aria-hidden="true" />
</div> </div>
<div class="ml-3"> <div class="ml-3">
<h3 class="text-sm font-medium text-red-800"> <h3 class="text-sm font-medium text-red-800 dark:text-red-500">
{{ errorTitle }} {{ errorTitle }}
</h3> </h3>
<div class="mt-2 text-sm text-red-700"> <div class="mt-2 text-sm text-red-700">