1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 20:11:59 +02:00

nicer page when JS is disabled/still loading

This commit is contained in:
Pomax
2016-01-03 16:07:56 -08:00
parent f7aa963f56
commit 5870f33fe5
6 changed files with 924 additions and 858 deletions

20
components/Ribbon.jsx Normal file
View File

@@ -0,0 +1,20 @@
var React = require('react');
var Ribbon = React.createClass({
getInitialState() {
return {
href: "http://github.com/pomax/BezierInfo-2"
};
},
render: function() {
return (<div className="ribbon">
<img src="images/ribbon.png" alt="This page on GitHub" border={0} useMap={"#githubmap"} />
<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;