koel/resources/assets/js/components/ui/OfflineNotification.vue
2024-07-06 17:44:57 +02:00

25 lines
592 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<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>
import { WifiOff } from 'lucide-vue-next'
import { ref } from 'vue'
const dismissed = ref(false)
</script>
<style lang="postcss" scoped>
article {
bottom: calc(var(--footer-height) + 1.2rem);
}
</style>