From e2ea60e3d3b13e0660d9f76daf2e549563bc38d6 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 20 Feb 2025 19:33:55 +0100 Subject: frontend: Introduce ComicCard and ArchiveCard Instead of repeatedly supplying Card content in all the places it is required, it makes more sense to create dedicated ComicCard and ArchiveCard components. These wrap around Card itself and can be used in a more straightforward and consistent fashion. Whilst we are here, simplify and streamline the display of Comic and Archive metadata by introducing a Card footer. The footer is used for information on page count, release date, and archive size. --- frontend/src/lib/components/Card.svelte | 39 ++++++++++++++------------------- 1 file changed, 16 insertions(+), 23 deletions(-) (limited to 'frontend/src/lib/components/Card.svelte') diff --git a/frontend/src/lib/components/Card.svelte b/frontend/src/lib/components/Card.svelte index b8e8ecf..8cfe34d 100644 --- a/frontend/src/lib/components/Card.svelte +++ b/frontend/src/lib/components/Card.svelte @@ -1,5 +1,8 @@ - - - @@ -66,8 +53,8 @@ /> {/if} {#if !coverOnly} -
-
+
+

{details.title}

@@ -86,9 +73,15 @@ {/if}
-
+
{@render children?.()}
+ + {#if footer} +
+ {@render footer()} +
+ {/if}
{/if} -- cgit v1.2.3-2-gb3c3