mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-12-24 05:30:13 +00:00
add countdown until next video
This commit is contained in:
25
src/components/ToastComponent.vue
Normal file
25
src/components/ToastComponent.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="toast">
|
||||
<slot />
|
||||
<button @click="dismiss" v-t="'actions.dismiss'" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
dismiss() {
|
||||
this.$emit("dismissed");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.toast {
|
||||
@apply bg-dark-900/80 text-white flex flex-col justify-center fixed top-12 right-12 p-4 min-w-max shadow rounded duration-200 z-9999;
|
||||
}
|
||||
.toast button {
|
||||
@apply underline;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user