Gisle Aune
4 years ago
5 changed files with 67 additions and 4 deletions
-
29svelte-ui/src/components/EmptyList.svelte
-
16svelte-ui/src/external/icons.ts
-
2svelte-ui/src/forms/TaskAddForm.svelte
-
7svelte-ui/src/pages/FrontPage.svelte
-
17svelte-ui/src/pages/LogsPage.svelte
@ -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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue