diff options
Diffstat (limited to 'app/client/modules/pix2pix/index.js')
| -rw-r--r-- | app/client/modules/pix2pix/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/client/modules/pix2pix/index.js b/app/client/modules/pix2pix/index.js index ffe5f6b..9e3d466 100644 --- a/app/client/modules/pix2pix/index.js +++ b/app/client/modules/pix2pix/index.js @@ -1,11 +1,14 @@ import { h, Component } from 'preact' import { Route, Link } from 'react-router-dom' +import util from '../../util' + import Pix2PixNew from './views/pix2pix.new' import Pix2PixShow from './views/pix2pix.show' import Pix2PixLive from './views/pix2pix.live' function router () { + document.body.style.backgroundImage = 'linear-gradient(' + (util.randint(40)+40) + 'deg, #fde, #ffe)' return ( <section> <Route exact path='/pix2pix/new/' component={Pix2PixNew} /> |
