Skip to content

Instantly share code, notes, and snippets.

@JLarky
Created March 4, 2016 08:13
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 JLarky/538ca989d8ebca7f8000 to your computer and use it in GitHub Desktop.
Save JLarky/538ca989d8ebca7f8000 to your computer and use it in GitHub Desktop.
const StatusIcon = () => {
const color1 = "green";
const color2 = "#74ba74";
const color3 = "#74ba74";
const radius = 50;
return <div id="status_icon"><style>{`
#status_icon{
width: ${radius}px;
height: ${radius}px;
border-radius: ${radius}px;
background-image: -moz-radial-gradient(12px 12px 45deg, circle cover, ${color1} 0%, ${color2} 100%, ${color3} 95%);
background-image: -webkit-radial-gradient(12px 12px, circle cover, ${color1}, ${color2});
background-image: radial-gradient(12px 12px 45deg, circle cover, ${color1} 0%, ${color2} 100%, ${color3} 95%);
}
`}</style></div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment