Add like button

This commit is contained in:
Jeremy Thomas 2017-03-15 23:11:02 +00:00
parent 35a488031e
commit ad283d8264
3 changed files with 47 additions and 3 deletions

View File

@ -62,12 +62,14 @@
<a href="https://twitter.com/share" class="twitter-share-button" data-text="{{ site.title }}" data-url="{{ site.url }}" data-count="horizontal" data-via="jgthms" data-related="jgthms:Creator of Bulma" data-size="large">Tweet</a>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<form class="paypal-form" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8WMKYSRFN6A78">
<input type="image" src="{{site.url}}/images/paypal-donate.png" border="0" name="submit" alt="PayPal The safer, easier way to pay online." height="30">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
<div class="fb-like" data-href="https://www.facebook.com/bulmaio" data-layout="button" data-action="like" data-size="large" data-show-faces="false" data-share="true"></div>
</div>
</div>
</div>
@ -102,6 +104,18 @@
</div>
</footer>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.async = true;
js.defer = true;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId=310296819307942";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script async defer id="twitter-wjs" src="https://platform.twitter.com/widgets.js"></script>
<script async defer type="text/javascript" src="https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script>

View File

@ -7310,7 +7310,8 @@ html.route-index #carbon {
#social > iframe,
#social > a,
#social > form {
#social > form,
#social > div {
display: inline-block;
font-size: 11px;
height: 30px;
@ -7318,8 +7319,27 @@ html.route-index #carbon {
margin-top: 5px;
}
#social .github-btn {
width: 160px;
}
#social .twitter-share-button {
margin-right: 10px;
min-width: 76px;
}
#social .paypal-form {
min-width: 148px;
}
#social .fb-like {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 130px;
}
#newsletter .input {

View File

@ -26,14 +26,24 @@
justify-content: flex-start
> iframe,
> a,
> form
> form,
> div
display: inline-block
font-size: 11px
height: 30px
line-height: 30px
margin-top: 5px
.github-btn
width: 160px
.twitter-share-button
margin-right: 10px
min-width: 76px
.paypal-form
min-width: 148px
.fb-like
align-items: center
display: flex
width: 130px
#newsletter
.input