scratch-www/src/views/splash/splash.jsx

40 lines
944 B
React
Raw Normal View History

2015-09-02 15:08:58 -04:00
var React = require('react');
var Api = require('../../mixins/api.jsx');
2015-09-03 22:41:27 -04:00
var Session = require('../../mixins/session.jsx');
2015-09-02 15:08:58 -04:00
var News = require('../../components/news/news.jsx');
require('./splash.scss');
var View = React.createClass({
mixins: [
2015-09-03 22:41:27 -04:00
Api,
Session
2015-09-02 15:08:58 -04:00
],
getInitialState: function () {
return {
2015-09-03 22:41:27 -04:00
activity: [],
news: [],
featured: []
2015-09-02 15:08:58 -04:00
};
},
componentDidMount: function () {
2015-09-02 16:33:31 -04:00
// @todo API request for News
// @todo API request for Activity
// @todo API request for Featured
2015-09-02 15:08:58 -04:00
},
render: function () {
return (
2015-09-03 22:41:27 -04:00
<div className="inner">
<div className="intro"></div>
<div className="activity"></div>
2015-09-02 16:33:31 -04:00
<News />
2015-09-03 22:41:27 -04:00
<div className="featured"></div>
2015-09-02 15:08:58 -04:00
</div>
);
}
});
React.render(<View />, document.getElementById('view'));