Minor styling update
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { catalog } from '$lib/catalog';
|
import { catalog } from '$lib/catalog';
|
||||||
import CatalogItem from './CatalogItem.svelte';
|
import CatalogItem from './CatalogItem.svelte';
|
||||||
|
import Loader from './Loader.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $catalog}
|
{#if $catalog}
|
||||||
@@ -18,5 +19,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<p>Loading...</p>
|
<Loader>Fetching catalog...</Loader>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
8
src/lib/components/Loader.svelte
Normal file
8
src/lib/components/Loader.svelte
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { Spinner } from 'flowbite-svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="flex flex-col gap-5 items-center justify-center h-full p-10">
|
||||||
|
<Spinner size={'8'} />
|
||||||
|
<slot>Loading...</slot>
|
||||||
|
</div>
|
||||||
@@ -6,6 +6,6 @@
|
|||||||
<title>Mokuro</title>
|
<title>Mokuro</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="p-2">
|
<div class="p-2 h-[90svh]">
|
||||||
<Catalog />
|
<Catalog />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user