Refactor logo image handling across components

- Introduced utility functions to determine the base directory and image URL for logos based on their collection.
- Updated `Actions.svelte`, `CardFull.svelte`, `CardMiddle.svelte`, `CardSmall.svelte`, and `CardTiny.svelte` to use the new utility functions for generating image paths.
- Ensured that the correct image format (SVG, PNG, JPG) is used based on the logo's properties and active color sets.
This commit is contained in:
sHa
2025-06-18 12:27:27 +03:00
parent a7762803b8
commit 708334bcf4
526 changed files with 4676 additions and 193 deletions

View File

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 128 128">
<path fill="currentColor" fill-rule="evenodd"
d="m94.543 87.625l29.379-6.75a3.35 3.35 0 0 0 1.258-.543a3.36 3.36 0 0 0 1.383-2.305c.058-.46.019-.925-.114-1.37L113.957 22.34a3.5 3.5 0 0 0-1.59-2.14a3.5 3.5 0 0 0-2.633-.391l-29.37 6.75c-.887.23-1.65.8-2.118 1.593a3.45 3.45 0 0 0-.383 2.625L90.32 85.094a3.5 3.5 0 0 0 1.59 2.14c.79.477 1.738.618 2.633.391m-10.125 33.566l35.621-33.054c1.344-1.36 1.004-2.196-.844-1.528l-24.484 5.575a6.2 6.2 0 0 0-2.715 1.46a6.2 6.2 0 0 0-1.676 2.586l-7.425 23.954c-.508 1.855.168 2.363 1.523 1.007m-64.992-10.789l53.344 16.52c.91.172 1.851.012 2.656-.45a3.95 3.95 0 0 0 1.734-2.07l8.938-28.68a3.5 3.5 0 0 0 .117-1.378a3.5 3.5 0 0 0-.418-1.317a3.5 3.5 0 0 0-.89-1.058a3.6 3.6 0 0 0-1.227-.633L30.336 74.973a3.55 3.55 0 0 0-2.695.304a3.57 3.57 0 0 0-1.696 2.118l-8.879 28.62a3.56 3.56 0 0 0 .278 2.68a3.55 3.55 0 0 0 2.082 1.707M2.2 51.7l10.816 47.452c.336 1.856 1.207 1.856 1.68 0l7.425-23.949a6.7 6.7 0 0 0 .031-3.113a6.8 6.8 0 0 0-1.37-2.793L3.721 50.852c-1.183-1.395-2.066-1.008-1.523.847ZM43.906.973L3.046 38.875a3.47 3.47 0 0 0-.168 4.848l20.43 22.144a3.48 3.48 0 0 0 2.415 1.098a3.48 3.48 0 0 0 2.484-.926l40.848-37.965a3.446 3.446 0 0 0 .172-4.847L48.832 1.094A3.5 3.5 0 0 0 47.722.3a3.5 3.5 0 0 0-1.326-.3a3.4 3.4 0 0 0-1.34.238a3.4 3.4 0 0 0-1.149.735Zm39.496 85.804c1.864.508 3.035-.496 2.54-2.422L74.124 33.082c-.508-1.855-2.035-2.363-3.375-1.02L32.258 67.895c-1.352 1.343-1.016 2.859.836 3.367Zm20.09-71.515L56.898.972c-1.851-.511-2.187.169-.675 1.684l17.054 18.387a6.55 6.55 0 0 0 2.7 1.527a6.6 6.6 0 0 0 3.093.11l24.485-5.563c1.8-.508 1.8-1.355-.063-1.855m0 0" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB