1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 03:30:34 +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

View File

@@ -1,5 +1,6 @@
var React = require("react");
var ReactDOM = require("react-dom");
var Ribbon = require("./Ribbon.jsx");
var Article = React.createClass({
@@ -39,6 +40,7 @@ var Article = React.createClass({
render: function() {
var sections = this.sectionMap(this.generateSection);
return (<div>
<Ribbon />
<div ref="navigation">
<navigation>
<ul className="navigation">

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;