add empty list placeholder.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<script lang="ts">
|
||||
import type { IconName } from "../external/icons";
|
||||
import Icon from "./Icon.svelte";
|
||||
|
||||
export let icon: IconName = "moon";
|
||||
export let text: string = "All good!";
|
||||
</script>
|
||||
|
||||
<div class="empty-list">
|
||||
<div class="icon">
|
||||
<Icon name={icon} />
|
||||
</div>
|
||||
<div class="text">
|
||||
{text}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
div.empty-list {
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
color: #555;
|
||||
padding: 2em 0;
|
||||
}
|
||||
|
||||
div.icon {
|
||||
font-size: 3em;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user