diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-18 21:13:05 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-18 21:13:05 +0100 |
| commit | fe8ab6133a31284d94944f5d75da9d6ad2b2bdb9 (patch) | |
| tree | 6b73b14bd88b64868d776b481d2aca0feb453c9c /app/client/modules/biggan/index.js | |
| parent | 3a432e15399bd756cdeef376b46ae2968559790c (diff) | |
adding biggan
Diffstat (limited to 'app/client/modules/biggan/index.js')
| -rw-r--r-- | app/client/modules/biggan/index.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app/client/modules/biggan/index.js b/app/client/modules/biggan/index.js new file mode 100644 index 0000000..6c94008 --- /dev/null +++ b/app/client/modules/biggan/index.js @@ -0,0 +1,37 @@ +import { h, Component } from 'preact' +import { Route, Link } from 'react-router-dom' + +import actions from '../../actions' + +import util from '../../util' + +import BigGANLive from './views/biggan.live' + +class router { + componentWillMount(){ + actions.system.changeTool('biggan') + document.body.style.backgroundImage = 'linear-gradient(' + (util.randint(40)+40) + 'deg, #dfe, #def)' + } + componentWillReceiveProps(){ + actions.system.changeTool('biggan') + document.body.style.backgroundImage = 'linear-gradient(' + (util.randint(40)+40) + 'deg, #dfe, #def)' + } + render(){ + return ( + <section> + <Route exact path='/biggan/live/' component={BigGANLive} /> + </section> + ) + } +} + +function links(){ + return [ + { url: '/biggan/live/', name: 'live' }, + ] +} + +export default { + name: 'biggan', + router, links, +} |
