From fe8ab6133a31284d94944f5d75da9d6ad2b2bdb9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 18 Dec 2019 21:13:05 +0100 Subject: adding biggan --- app/client/modules/biggan/index.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app/client/modules/biggan/index.js (limited to 'app/client/modules/biggan/index.js') 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 ( +
+ +
+ ) + } +} + +function links(){ + return [ + { url: '/biggan/live/', name: 'live' }, + ] +} + +export default { + name: 'biggan', + router, links, +} -- cgit v1.2.3-70-g09d2