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,6 @@
<svg width="100%" height="100%" viewBox="0 0 2500 1691" xmlns="http://www.w3.org/2000/svg">
<g fill="currentColor">
<path
d="M2308.45,1689.51c-116.92,0 -186.255,-59.835 -191.563,-146.003l111.786,-0c-0,28.725 15.917,66.96 85.085,69.335c47.934,-0 74.46,-28.718 74.46,-50.31c-5.308,-33.484 -47.934,-35.859 -90.385,-43.176c-47.935,-6.95 -85.077,-16.65 -111.786,-28.542c-37.143,-19.209 -58.552,-60.01 -58.552,-103.003c0,-76.668 64.035,-136.503 175.646,-136.503c106.486,0 175.646,55.085 180.763,138.879l-106.295,-0c0,-21.418 -5.308,-57.452 -69.168,-57.452c-42.626,0 -69.151,7.134 -74.46,38.234c0,43.185 90.386,40.801 159.546,57.452c63.851,16.833 106.477,57.451 106.477,115.086c0,105.386 -85.077,146.003 -191.554,146.003Zm-2037.1,-707.058l367.025,-213.155l196.863,337.758l-494.728,-0l-69.16,-124.603Zm436.16,707.792c-122.399,-0.005 -218.08,-98.256 -218.08,-220.289c0,-122.036 95.686,-217.905 218.089,-217.905c47.751,-0 90.385,12.075 127.711,38.234l-0,-179.487l106.302,-0l0,569.746l-106.311,0l0,-26.342c-37.323,23.966 -79.946,36.041 -127.702,36.043l-0.009,-0Zm-117.086,-220.289c0,66.96 53.251,122.036 122.403,122.036c63.668,0 122.403,-55.076 122.403,-122.036c-0,-64.585 -58.735,-122.036 -122.403,-122.036c-69.16,-0 -122.403,57.451 -122.403,122.036Zm-372.509,220.289c-116.919,-0 -217.913,-98.253 -217.913,-220.289c0,-122.036 101.002,-217.905 217.913,-217.905c47.935,-0 90.561,12.075 127.703,38.234l0,-33.484l106.486,0l0,423.743l-106.477,0l-0,-26.342c-31.834,23.967 -79.769,36.043 -127.703,36.043l-0.009,-0Zm-116.911,-220.289c0,66.96 58.543,122.036 122.212,122.036c69.343,0 122.402,-55.076 122.402,-122.036c0,-64.585 -53.059,-122.036 -122.402,-122.036c-63.669,-0 -122.212,57.451 -122.212,122.036Zm1537.49,-363l-510.645,-890.663l367.017,-215.53l638.356,1106.19l-494.728,-0Zm-936.213,-505.187l372.325,-210.588l409.66,715.75l-388.426,-0l-0,105.386l-106.311,-0l0,-105.386l-287.248,-505.162Zm1728.75,613.864c-26.709,0 -53.234,-23.967 -53.234,-52.692c-0,-28.726 26.525,-52.693 53.234,-52.693c31.834,-0 53.252,23.975 53.252,52.693c-0,28.717 -21.418,52.701 -53.252,52.701l0,-0.009Zm0,-98.06c-26.709,-0 -42.626,21.4 -42.626,45.368c0,23.967 15.917,45.559 42.626,45.559c26.534,-0 42.451,-21.584 42.451,-45.559c0,-23.976 -15.917,-45.368 -42.451,-45.368Zm10.984,74.277l-10.617,-23.968l-10.609,0l0,23.968l-8.05,-0l0,-57.452l23.968,0c5.308,0 15.917,7.325 15.917,16.834c-0,9.509 -5.309,14.275 -10.609,16.65l10.609,23.968l-10.609,-0Zm-10.617,-50.127l-10.609,0l0,19.026l10.609,-0c10.617,-0 10.617,-2.375 10.617,-9.517c-0,-4.933 -0,-9.509 -10.617,-9.509Zm-586.03,548.522c-122.216,-0.005 -217.905,-98.256 -217.905,-220.289c-0,-122.036 95.694,-217.905 217.905,-217.905c47.943,-0 90.569,12.075 127.711,38.234l0,-33.484l101.177,0l0,423.743l-101.169,0l0,-26.342c-37.148,23.966 -79.772,36.041 -127.711,36.043l-0.008,-0Zm-116.911,-220.289c-0,66.96 53.251,122.036 122.403,122.036c63.851,0 122.219,-55.076 122.219,-122.036c0,-64.585 -58.368,-122.036 -122.219,-122.036c-69.16,-0 -122.403,57.451 -122.403,122.036Zm-244.256,-359.158l106.302,-0l0,569.746l-106.302,0l-0,-26.342c-32.017,23.967 -74.643,36.043 -122.403,36.043c-122.394,-0 -223.397,-98.253 -223.397,-220.289c0,-122.036 101.003,-217.905 223.397,-217.905c47.751,-0 90.386,12.075 122.403,38.234l-0,-179.487Zm-244.797,359.158c-0,66.96 58.543,122.036 122.394,122.036c69.168,0 122.403,-55.076 122.403,-122.036c-0,-64.585 -53.243,-122.036 -122.403,-122.036c-63.851,-0 -122.394,57.451 -122.394,122.036Zm-142.28,-219.571l-0,425.997l-107.352,0l-0,-425.997l107.352,0Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB