koel/resources/assets/js/components/ui/OfflineNotification.vue

26 lines
592 B
Vue
Raw Normal View History

<template>
2024-04-04 22:20:42 +00:00
<article
v-if="!dismissed"
class="text-orange-600 p-4 bg-white rounded-md flex items-center justify-center
gap-3 fixed z-[10000] left-6 shadow-lg cursor-pointer"
title="Click to dismiss"
@click="dismissed = true"
>
<WifiOff :size="20" />
<span class="text-gray-800">Youre offline.</span>
</article>
</template>
<script lang="ts" setup>
2024-04-04 22:20:42 +00:00
import { WifiOff } from 'lucide-vue-next'
import { ref } from 'vue'
const dismissed = ref(false)
2022-12-02 16:17:37 +00:00
</script>
2024-04-04 20:13:35 +00:00
<style lang="postcss" scoped>
2024-04-04 22:20:42 +00:00
article {
bottom: calc(var(--footer-height) + 1.2rem);
}
</style>