Move butterchurn-bg to index.html where it can be properly required

This commit is contained in:
Jordan Eldredge 2018-06-05 10:22:40 -07:00
parent e74f9e13e9
commit 4e7369a38d
2 changed files with 1 additions and 3 deletions

View file

@ -75,8 +75,6 @@ body {
#butterchurn-share {
display: none; /* Button is only shown if the window gets enabled */
/* TODO: Figure out how to inline this */
background-image: url(/images/share/butterchurn-bg.png);
background-size: 100%; /* Image is 2x size for retina displays */
}

View file

@ -65,7 +65,7 @@
<p>Try using the most recent version of Chrome, Firefox, Safari or Edge.</p>
</div>
<p class='about'>
<a target="_blank" href='https://github.com/jberg/butterchurn' id='butterchurn-share'>
<a target="_blank" href='https://github.com/jberg/butterchurn' id='butterchurn-share' style="background-image: url(<%= require('./images/share/butterchurn-bg.png') %>)">
<img inline src="images/share/eye.svg" />
</a>
<a target="_blank" href='https://twitter.com/captbaritone' id='twitter-share'>