1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-06 00:37:52 +02:00
Files
BezierInfo-2/components/Ribbon.jsx
Mike Kamermans 25a18d8891 Use Preact, rather than React (#91)
* moving to Preact to shave off 100+kb

* preact'ed
2017-04-02 14:32:06 -07:00

20 lines
563 B
JavaScript

var React = require('react');
var Ribbon = React.createClass({
getInitialState: function() {
return {
href: "http://github.com/pomax/BezierInfo-2"
};
},
render: function() {
return (<div className="ribbon">
<img src="images/ribbon.png" alt="This page on GitHub" style={{border:"none"}} useMap={"#githubmap"} width="200" height="149"/>
<map name="githubmap">
<area shape="poly" coords="30,0, 200,0, 200,114" href={this.state.href} alt="This page on GitHub"/>
</map>
</div>);
}
});
module.exports = Ribbon;