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,21 @@
<svg width="100%" height="100%" viewBox="0 0 206 78" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g id="lines" fill="currentColor">
<g transform="matrix(1,0,0,1,-24.4628,-77.108)">
<path d="M40.2,101.1C39.8,101.1 39.7,100.9 39.9,100.6L42,97.9C42.2,97.6 42.7,97.4 43.1,97.4L78.8,97.4C79.2,97.4 79.3,97.7 79.1,98L77.4,100.6C77.2,100.9 76.7,101.2 76.4,101.2L40.2,101.1Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(1,0,0,1,-24.4628,-77.108)">
<path d="M25.1,110.3C24.7,110.3 24.6,110.1 24.8,109.8L26.9,107.1C27.1,106.8 27.6,106.6 28,106.6L73.6,106.6C74,106.6 74.2,106.9 74.1,107.2L73.3,109.6C73.2,110 72.8,110.2 72.4,110.2L25.1,110.3Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(1,0,0,1,-24.4628,-77.108)">
<path d="M49.3,119.5C48.9,119.5 48.8,119.2 49,118.9L50.4,116.4C50.6,116.1 51,115.8 51.4,115.8L71.4,115.8C71.8,115.8 72,116.1 72,116.5L71.8,118.9C71.8,119.3 71.4,119.6 71.1,119.6L49.3,119.5Z" style="fill-rule:nonzero;"/>
</g>
</g>
<g id="letters" fill="currentColor">
<g transform="matrix(1,0,0,1,-24.4628,-77.108)">
<path d="M153.1,99.3C146.8,100.9 142.5,102.1 136.3,103.7C134.8,104.1 134.7,104.2 133.4,102.7C131.9,101 130.8,99.9 128.7,98.9C122.4,95.8 116.3,96.7 110.6,100.4C103.8,104.8 100.3,111.3 100.4,119.4C100.5,127.4 106,134 113.9,135.1C120.7,136 126.4,133.6 130.9,128.5C131.8,127.4 132.6,126.2 133.6,124.8L114.3,124.8C112.2,124.8 111.7,123.5 112.4,121.8C113.7,118.7 116.1,113.5 117.5,110.9C117.8,110.3 118.5,109.3 120,109.3L156.4,109.3C156.2,112 156.2,114.7 155.8,117.4C154.7,124.6 152,131.2 147.6,137C140.4,146.5 131,152.4 119.1,154C109.3,155.3 100.2,153.4 92.2,147.4C84.8,141.8 80.6,134.4 79.5,125.2C78.2,114.3 81.4,104.5 88,95.9C95.1,86.6 104.5,80.7 116,78.6C125.4,76.9 134.4,78 142.5,83.5C147.8,87 151.6,91.8 154.1,97.6C154.7,98.5 154.3,99 153.1,99.3Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(1,0,0,1,-24.4628,-77.108)">
<path d="M186.2,154.6C177.1,154.4 168.8,151.8 161.8,145.8C155.9,140.7 152.2,134.2 151,126.5C149.2,115.2 152.3,105.2 159.1,96.3C166.4,86.7 175.2,81.7 187.1,79.6C197.3,77.8 206.9,78.8 215.6,84.7C223.5,90.1 228.4,97.4 229.7,107C231.4,120.5 227.5,131.5 218.2,140.9C211.6,147.6 203.5,151.8 194.2,153.7C191.5,154.2 188.8,154.3 186.2,154.6ZM210,114.2C209.9,112.9 209.9,111.9 209.7,110.9C207.9,101 198.8,95.4 189.3,97.6C180,99.7 174,105.6 171.8,115C170,122.8 173.8,130.7 181,133.9C186.5,136.3 192,136 197.3,133.3C205.2,129.2 209.5,122.8 210,114.2Z" style="fill-rule:nonzero;"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB