1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 03:30:34 +02:00
This commit is contained in:
Pomax
2016-02-20 17:50:30 -08:00
parent dda27c123b
commit a65d5a437d
11 changed files with 509 additions and 59 deletions

View File

@@ -0,0 +1,34 @@
var React = require("react");
var style = {
width: 'calc(960px + 2em)',
marginTop: 0,
borderTop: '1px solid rgba(255, 0, 0, 0.5)',
paddingTop: '3em'
};
var sectionHTML = (
<section id="comments" style={style}>
<h2>Comments and questions</h2>
<div id="disqus_thread"/>
</section>
);
var CommentsAndQuestions = React.createClass({
getDefaultProps: function() {
return {
title: "Comments and Questions"
};
},
componentDidMount: function() {
if (typeof document !== "undefined") {
var disqusScript = document.createElement("script");
disqusScript.setAttribute("async", "async");
disqusScript.src = "lib/site/disqus.js";
document.head.appendChild(disqusScript);
}
},
render: function() { return sectionHTML; }
});
module.exports = CommentsAndQuestions;