ipfs.io and kubo use SVG images as data uris, and we want to add dir-index-html listings to service-worker-gateway as well.
We could create a spritesheet and add to this repo and pull in from both kubo and service-worker-gateway:
<!-- Sprite (external or inline once on the page) -->
<svg style="display: none;">
<symbol id="icon-audio" viewBox="0 0 24 24"> ... </symbol>
<symbol id="icon-video" viewBox="0 0 24 24"> ... </symbol>
<!-- etc. -->
</svg>
<!-- Then reference each in HTML (or mask background in CSS): -->
<svg class="icon-audio"><use xlink:href="#icon-audio"></use></svg>
Or we could create these svgs as individual files and then retrieve from CDN (or ipfs.io gateway).
ipfs.io and kubo use SVG images as data uris, and we want to add dir-index-html listings to service-worker-gateway as well.
We could create a spritesheet and add to this repo and pull in from both kubo and service-worker-gateway:
Or we could create these svgs as individual files and then retrieve from CDN (or ipfs.io gateway).
References