Cleanup and testing

This commit is contained in:
ZXY101
2023-09-04 13:53:51 +02:00
parent 83b427f976
commit 695c63c06b
13 changed files with 34 additions and 37 deletions

View File

@@ -3,19 +3,33 @@
import CatalogItem from './CatalogItem.svelte';
</script>
<div>
{#if $catalog}
{#if $catalog && $catalog.length > 0}
<div class="container">
{#each $catalog as { manga }}
<CatalogItem {manga} />
{/each}
{/if}
</div>
</div>
{:else}
<div class="empty-state">
<p>Your catalog is currently empty.</p>
<a href="upload">Add manga</a>
</div>
{/if}
<style>
div {
<style lang="scss">
.container {
display: flex;
flex-direction: row;
gap: 20px;
flex-wrap: wrap;
}
.empty-state {
text-align: center;
padding: 20px;
}
a {
color: $secondary-accent-color;
}
</style>