You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB
JavaScript

'use strict';
import React from 'react';
import config from '../config';
var App = React.createClass({
displayName: 'App',
propTypes: {
dispatch: React.PropTypes.func,
children: React.PropTypes.object
},
render: function () {
return (
<div>
<header className='site-header' role='banner'>
<div className='inner'>
<div className='site-headline'>
<h1 className='site-title'>
<a href={'https://opensensemap.org/explore/' + config.senseBox.id}>{config.title}</a>
</h1>
</div>
</div>
</header>
<main className='site-body' role='main'>
{this.props.children}
</main>
9 years ago
<footer className='site-footer' role='footer'>
<p> Made with love by <a href='https://developmentseed.org' title='Visit Development Seed website' target="_blank">Development Seed</a> using <a href={'https://opensensemap.org/explore/' + config.senseBox.id} title='Visit openSenseMap website' target="_blank">openSenseMap</a> data </p>
9 years ago
</footer>
</div>
);
}
});
module.exports = App;