Cleanup and testing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user