mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 13:32:01 +00:00
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:
20
public/images/logos/apple_homekit.svg
Normal file
20
public/images/logos/apple_homekit.svg
Normal file
@@ -0,0 +1,20 @@
|
||||
<svg width="100%" height="100%" viewBox="0 0 770 760" xmlns="http://www.w3.org/2000/svg">
|
||||
<g>
|
||||
<path
|
||||
d="M756.2,317.5l-70.4,-55.6l0,-126.4c0,-8.6 -3.4,-11 -9.5,-11l-64.4,0c-7,0 -11.3,1.4 -11.3,11l0,59.1c-93.1,-73.5 -194,-153.2 -197.8,-156.2c-7.6,-6 -12.3,-7.6 -17.8,-7.6c-5.4,0 -10.1,1.6 -17.8,7.6c-7.6,6 -343.2,271.1 -353.4,279.1c-12.4,9.8 -8.9,23.9 4.9,23.9l65.5,0l-0,355.6c-0,23 9.2,32.2 31.1,32.2l539.4,0c21.9,0 31.1,-9.2 31.1,-32.2l-0,-355.7l65.5,-0c13.8,-0 17.3,-14 4.9,-23.8Zm-125.6,329.5c0,15.9 -8.2,26.9 -24.8,26.9l-441.7,0c-16.6,0 -24.8,-11 -24.8,-26.9l0,-332.3c0,-19.3 8.4,-31.6 18.1,-39.2l212.4,-167.7c5.6,-4.4 10.4,-6.3 15.1,-6.3c4.7,0 9.5,1.9 15.1,6.4l212.4,167.7c9.6,7.6 18.1,19.9 18.1,39.2l0,332.2l0.1,0Z"
|
||||
style="fill:#fa9012;fill-rule:nonzero;" />
|
||||
<path
|
||||
d="M612.6,275.5l-212.5,-167.8c-5.6,-4.4 -10.6,-6.3 -15.1,-6.3c-4.6,-0 -9.5,1.9 -15.1,6.4l-212.5,167.7c-9.6,7.6 -18.1,19.9 -18.1,39.2l0,332.3c0,15.9 8.2,26.9 24.8,26.9l441.7,0c16.6,0 24.8,-11 24.8,-26.9l0,-332.3c0,-19.3 -8.4,-31.6 -18,-39.2Zm-37,321.6c0,14.8 -8.4,21.7 -20.7,21.7l-339.7,0c-12.3,0 -20.7,-6.9 -20.7,-21.7l0,-259.5c0,-14.4 3.4,-22.6 13.6,-30.7c5.8,-4.6 160.3,-126.6 164.4,-129.8c4.1,-3.3 8.5,-4.9 12.5,-4.9c4,-0 8.4,1.7 12.5,4.9c4.1,3.3 158.6,125.3 164.4,129.8c10.2,8.1 13.6,16.4 13.6,30.7l0.1,259.5Z"
|
||||
style="fill:#ffab1f;fill-rule:nonzero;" />
|
||||
<path
|
||||
d="M561.9,306.9c-5.8,-4.5 -160.3,-126.6 -164.4,-129.8c-4.1,-3.3 -8.5,-4.9 -12.5,-4.9c-4,-0 -8.4,1.7 -12.5,4.9c-4.1,3.3 -158.6,125.3 -164.4,129.8c-10.2,8.1 -13.6,16.4 -13.6,30.7l0,259.5c0,14.8 8.4,21.7 20.7,21.7l339.7,0c12.3,0 20.7,-6.9 20.7,-21.7l0,-259.5c-0.1,-14.3 -3.5,-22.6 -13.7,-30.7Zm-41.5,240.3c0,11.9 -6.6,16.5 -15.6,16.5l-239.6,-0c-9,-0 -15.6,-4.6 -15.6,-16.5l0,-186.6c0,-8.3 0,-14.9 9.1,-22.2c6,-4.8 113.2,-89.4 116.4,-91.9c3.2,-2.5 6.4,-3.8 9.9,-3.8c3.6,0.1 7.1,1.5 9.9,3.8c3.2,2.5 110.4,87.1 116.4,91.9c9.1,7.3 9.1,13.9 9.1,22.2l0,186.6Z"
|
||||
style="fill:#ffbe41;fill-rule:nonzero;" />
|
||||
<path
|
||||
d="M511.3,338.4c-6,-4.8 -113.2,-89.4 -116.4,-91.9c-2.8,-2.4 -6.3,-3.7 -9.9,-3.8c-3.5,-0 -6.7,1.3 -9.9,3.8c-3.2,2.5 -110.5,87.1 -116.4,91.9c-9.1,7.3 -9.1,13.9 -9.1,22.2l-0,186.6c-0,11.9 6.6,16.5 15.6,16.5l239.5,-0c9,-0 15.6,-4.6 15.6,-16.5l0,-186.6c0.1,-8.4 0.1,-15 -9,-22.2Zm-46,159c-0,9.2 -4.6,11.2 -11,11.2l-138.5,0c-6.4,0 -11,-2.1 -11,-11.2l0,-113.9c0,-6.4 2.9,-12.6 7.8,-16.6c2.8,-2.3 63,-49.4 65.1,-51.1c4.2,-3.5 10.4,-3.5 14.6,0c2.2,1.7 62.3,48.8 65.1,51.1c5,4.1 7.9,10.2 7.8,16.6l0.1,113.9Z"
|
||||
style="fill:#ffd260;fill-rule:nonzero;" />
|
||||
<path
|
||||
d="M315.8,508.5l138.4,0c6.4,0 11,-2.1 11,-11.2l0,-113.8c0,-6.4 -2.9,-12.6 -7.8,-16.6c-2.8,-2.3 -63,-49.4 -65.1,-51.1c-4.2,-3.5 -10.4,-3.5 -14.6,0c-2.1,1.7 -62.3,48.8 -65.1,51.1c-5,4.1 -7.9,10.2 -7.8,16.6l0,113.8c0,9.2 4.6,11.2 11,11.2Z"
|
||||
style="fill:#ffe780;fill-rule:nonzero;" />
|
||||
</g>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
Reference in New Issue
Block a user