Created
March 4, 2016 08:13
-
-
Save JLarky/538ca989d8ebca7f8000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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