feat: implementation of users module of the admin dashboard (#29)

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
Joel Jacob Stephen
2023-03-03 19:26:34 +05:30
committed by GitHub
parent 223150550f
commit 90569192b7
26 changed files with 797 additions and 650 deletions

View File

@@ -0,0 +1,28 @@
<template>
<div
:class="`fixed bottom-0 right-0 mb-4 mr-4 bg-zinc-500 text-gray-800 px-6 py-3 rounded-md z-50 transition-opacity duration-300 ${
state.isVisible ? 'opacity-100' : 'opacity-0'
}`"
@click="close"
>
{{ message }}
</div>
</template>
<script setup lang="ts">
import { reactive } from 'vue';
defineProps({
message: {
type: String,
required: true,
},
});
const state = reactive({
isVisible: true,
});
const close = () => {
state.isVisible = false;
};
</script>