feat: build compact BO2 grind companion with cumulative ranks
Some checks failed
Test and deploy staging / staging (push) Failing after 2m50s

This commit is contained in:
2026-10-08 21:06:19 +00:00
parent c2ba8febb4
commit c2bc9050c2
39 changed files with 1499 additions and 447 deletions

View File

@@ -2,7 +2,12 @@
import { base } from '$app/paths';
import * as Dialog from '$lib/components/ui/dialog/index.js';
import artwork from '../../../data/cod-art.json';
let { game, name, icon }: { game: string; name: string; icon: string | null } = $props();
let {
game,
name,
icon,
compact = false
}: { game: string; name: string; icon: string | null; compact?: boolean } = $props();
const source = $derived(
artwork.find((a) => a.game === game && a.name.toLowerCase() === name.toLowerCase())
);
@@ -20,7 +25,7 @@
loading="lazy"
width="112"
height="64"
class="h-16 w-28 object-contain"
class={compact ? 'h-6 w-12 object-contain' : 'h-16 w-28 object-contain'}
/></Dialog.Trigger
>
<Dialog.Content class="sm:max-w-3xl"