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

32 lines
716 B
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<template>
2024-04-04 22:20:42 +00:00
<article
class="relative flex place-content-center place-items-center flex-1 text-white/50"
data-testid="screen-empty-state"
>
<div class="md:max-w-3/4 px-6 pt-0 mx-auto flex flex-col items-center pb-k-header-height">
<span class="jumbo-icon block text-[6rem] mb-4 opacity-70">
2022-07-15 07:23:55 +00:00
<slot name="icon"></slot>
2022-04-15 14:24:30 +00:00
</span>
2024-04-04 22:20:42 +00:00
<div class="text text-center text-3xl font-light flex flex-col gap-2">
2022-04-15 14:24:30 +00:00
<slot>Placeholder text goes here.</slot>
</div>
</div>
2024-04-04 22:20:42 +00:00
</article>
2022-04-15 14:24:30 +00:00
</template>
2024-04-04 20:13:35 +00:00
<style lang="postcss">
2024-04-04 22:20:42 +00:00
.text {
a {
@apply text-white/80;
2022-04-15 14:24:30 +00:00
2024-04-04 22:20:42 +00:00
&:hover {
@apply text-white;
2022-04-15 14:24:30 +00:00
}
}
2024-04-04 22:20:42 +00:00
.secondary {
@apply text-2xl font-thin;
2022-04-15 14:24:30 +00:00
}
}
</style>