colorify
Version:
a collection of color tools
46 lines (44 loc) • 960 B
JavaScript
/*
* using a slightly modified version of code found here:
* https://github.com/dr-dimitru/SHB-js
*
*/
import React from 'react';
const SHB = require('../../lib/shb').getSocialButtonLib();
const id = 'social-button-container';
const title = 'Colorify: a collection of color tools';
module.exports = React.createClass({
componentDidMount: function () {
SHB.build({
elementID: id,
pref: {
btnSizeClass: 'btn-xs',
url: 'http://projects.skratchdot.com/colorify',
twitterName: 'skratchdot',
desc: title,
title: title
},
buttons: {
fbLike: true,
fbShare: true,
tweet: true,
plusOne: true,
plusShare: true,
linkedInShare: true,
pinterest: true,
customButton: {
iconClass: 'fa-github',
iconURL: 'https://github.com/skratchdot/colorify',
iconParams: {}
}
}
});
},
render: function () {
return (
<div id={id}>
<strong>Share: </strong>
</div>
);
}
});