Skip to content

Instantly share code, notes, and snippets.

@evoratec
Last active January 14, 2022 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evoratec/0d6a757837c7ad3533ec50495dcd867c to your computer and use it in GitHub Desktop.
Save evoratec/0d6a757837c7ad3533ec50495dcd867c to your computer and use it in GitHub Desktop.
Imagen InfoSpot
export const FlechaPanorama = (grados=0,color = "pink") => {
grados = grados - 90;
const image = btoa(`
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>izquierda doble 4</title>
<g id="iconos" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" >
<g transform="rotate(${grados} 24 24) ">
<g id="Group-10" transform="translate(8.000000, 8.000000) " stroke="${color}" stroke-linecap="round" stroke-linejoin="round" stroke-width="6">
<g id="chevron-left">
<polyline id="Shape" points="15 30 0 15 15 0" ></polyline>
</g>
<g id="chevron-left" transform="translate(16.000000, 0.000000) " >
<polyline id="Shape" points="15 30 0 15 15 0"></polyline>
</g>
</g>
</g>
</g>
</svg>
`);
return `data:image/svg+xml;base64,${image}`;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment