2015-07-10 16:43:35 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import Router from 'react-router';
|
2015-08-11 14:47:28 +02:00
|
|
|
import Hero from './components/prize_hero';
|
2015-07-13 16:34:26 +02:00
|
|
|
import Header from '../../header';
|
2015-08-18 09:42:28 +02:00
|
|
|
import Footer from '../../footer';
|
2015-07-10 16:43:35 +02:00
|
|
|
import GlobalNotification from '../../global_notification';
|
|
|
|
|
|
|
|
let RouteHandler = Router.RouteHandler;
|
|
|
|
|
|
|
|
let PrizeApp = React.createClass({
|
2015-07-13 16:34:26 +02:00
|
|
|
mixins: [Router.State],
|
|
|
|
|
2015-07-10 16:43:35 +02:00
|
|
|
render() {
|
2015-07-13 16:34:26 +02:00
|
|
|
let header = null;
|
2015-07-14 18:55:34 +02:00
|
|
|
if (this.isActive('landing') || this.isActive('login') || this.isActive('signup')) {
|
|
|
|
header = <Hero />;
|
|
|
|
} else {
|
2015-07-14 21:06:11 +02:00
|
|
|
header = <Header showAddWork={false} />;
|
2015-07-13 16:34:26 +02:00
|
|
|
}
|
|
|
|
|
2015-07-10 16:43:35 +02:00
|
|
|
return (
|
2015-08-17 20:52:36 +02:00
|
|
|
<div className="container ascribe-prize-app">
|
2015-07-13 16:34:26 +02:00
|
|
|
{header}
|
2015-07-14 18:55:34 +02:00
|
|
|
<div className="wp">
|
|
|
|
<RouteHandler />
|
|
|
|
</div>
|
2015-07-10 16:43:35 +02:00
|
|
|
<GlobalNotification />
|
|
|
|
<div id="modal" className="container"></div>
|
2015-08-18 09:42:28 +02:00
|
|
|
<Footer />
|
2015-07-10 16:43:35 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default PrizeApp;
|