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,18 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="100%" width="100%">
<linearGradient id="a" x1="256" x2="256" y1="280" y2="792" gradientTransform="translate(0 -280)"
gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color:#57277c" />
<stop offset="1" style="stop-color:#491f59" />
</linearGradient>
<circle cx="256" cy="256" r="256" style="fill:url(#a)" />
<radialGradient id="b" cx="256" cy="536" r="256" gradientTransform="translate(0 -280)"
gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color:#000;stop-opacity:0" />
<stop offset=".86" style="stop-color:#000;stop-opacity:6.000000e-02" />
<stop offset="1" style="stop-color:#000;stop-opacity:.1" />
</radialGradient>
<circle cx="256" cy="256" r="256" style="fill:url(#b)" />
<path
d="M434.3 229.9h-.3l-32.1-32.1c-1.2-1.2-1.8-2.7-1.8-4.4v-74.2c0-15.7-12.7-28.4-28.4-28.5h-20.1c-15.7 0-28.4 12.7-28.5 28.5v.4l-47.5-46c-11.2-10.7-28.9-10.6-39.9.3L74.9 234.7c-11.1 11.1-11.1 29.1 0 40.2l15.3 15.2c11.1 11 28.9 11.1 40.1.2l123.5-121.7c2.4-2.4 6.3-2.4 8.8 0l121 121c2.4 2.4 2.4 6.3 0 8.8l-14.9 14.9c-2.4 2.4-6.3 2.4-8.8 0l-85-82.3c-11.2-10.8-29-10.7-40 .3l-81.5 82c-11.1 11.1-11.1 29.1 0 40.2l15.1 15.1c11.1 11 29 11.1 40.1.1l44-43.4c2.4-2.4 6.3-2.4 8.8 0l43.7 43c2.4 2.4 2.5 6.3.1 8.7l-.1.1-43.3 43.4c-.2 0-.3-.1-.6-.1-9 0-16.2 7.3-16.2 16.3s7.3 16.2 16.3 16.2 16.2-7.3 16.2-16.3v-.3l43.5-43.5c11.1-11.1 11.1-29.1 0-40.2l-.2-.2-43.8-42.9c-11.1-10.9-28.9-10.9-40 0L192.9 353c-2.4 2.4-6.3 2.4-8.8 0L169 337.9c-2.4-2.4-2.4-6.3 0-8.8l81.7-82c2.4-2.4 6.3-2.5 8.8-.1l85 82.6c11.2 10.8 28.9 10.6 39.9-.3l14.9-14.9c11.1-11.1 11.1-29.1 0-40.2L278.3 153c-11.1-11-28.9-11.1-40.1-.2L114.7 274.5c-2.4 2.4-6.3 2.4-8.8 0l-15.3-15.3c-2.4-2.4-2.4-6.3 0-8.8L251.4 89.7c2.4-2.4 6.3-2.5 8.8-.1l85.2 82.4v-52.9c0-3.4 2.8-6.2 6.2-6.2h20.1c3.4 0 6.2 2.8 6.2 6.2v74.3c0 7.5 3 14.8 8.3 20.1l32 32c0 .2-.1.4-.1.6 0 9 7.3 16.2 16.2 16.2 9 0 16.2-7.3 16.2-16.2.1-9-7.2-16.2-16.2-16.2"
style="fill:#fff" />
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB