From 361f506cd3677f61d2203ff91fab70ba3a1c5851 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/tabs/ArchiveDetails.svelte | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'frontend/src/lib/tabs/ArchiveDetails.svelte')

diff --git a/frontend/src/lib/tabs/ArchiveDetails.svelte b/frontend/src/lib/tabs/ArchiveDetails.svelte
index b3d570f..1243162 100644
--- a/frontend/src/lib/tabs/ArchiveDetails.svelte
+++ b/frontend/src/lib/tabs/ArchiveDetails.svelte
@@ -1,8 +1,7 @@
 <script lang="ts">
 	import type { FullArchiveFragment } from '$gql/graphql';
 	import { formatListSize, joinText } from '$lib/Utils';
-	import Card, { comicCard } from '$lib/components/Card.svelte';
-	import ComicPills from '$lib/pills/ComicPills.svelte';
+	import ComicCard from '$lib/components/ComicCard.svelte';
 	import { formatDistance, formatISO9075 } from 'date-fns';
 	import { filesize } from 'filesize';
 	import Header from './DetailsHeader.svelte';
@@ -40,9 +39,7 @@
 			<h2 class="text-base font-medium">Comics</h2>
 			<div class="flex shrink-0 flex-col gap-4">
 				{#each archive.comics as comic}
-					<Card compact {...comicCard(comic)}>
-						<ComicPills {comic} />
-					</Card>
+					<ComicCard compact {comic} />
 				{/each}
 			</div>
 		</div>
-- 
cgit v1.2.3-2-gb3c3

