2015-11-21 21:33:29 +03:00
|
|
|
import React from 'react';
|
|
|
|
import DocumentTitle from 'react-document-title';
|
|
|
|
|
|
|
|
export default class Html extends React.Component {
|
|
|
|
render() {
|
|
|
|
var title = this.props.title || DocumentTitle.rewind();
|
|
|
|
return (
|
2015-11-28 10:48:48 +03:00
|
|
|
<html lang={this.props.lang} manifest="/graphene.appcache">
|
2015-11-21 21:33:29 +03:00
|
|
|
<head>
|
|
|
|
<meta charSet="utf-8"/>
|
|
|
|
<meta httpEquiv="X-UA-Compatible" content="IE=edge"/>
|
|
|
|
<meta name='viewport' content='width=device-width, initial-scale=1.0 maximum-scale=1.0'/>
|
|
|
|
<title>{title}</title>
|
2015-11-26 05:35:13 +03:00
|
|
|
<link rel="shortcut icon" href="/favicon.png"/>
|
2015-11-21 21:33:29 +03:00
|
|
|
<link href='https://fonts.googleapis.com/css?family=Raleway:400,600,200,100' rel='stylesheet' type='text/css' />
|
|
|
|
<link href='/app.css' rel='stylesheet' type='text/css' />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="react-mount" dangerouslySetInnerHTML={{__html: this.props.body}} />
|
|
|
|
<script src="/bundle.js"/>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|