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 (
) } function links(){ return [ { url: '/pix2pix/new/', name: 'new' }, { url: '/pix2pix/sequences/', name: 'sequences' }, { name: 'train' }, { name: 'process' }, { url: '/pix2pix/live/', name: 'live' }, ] return ( new sequences train process live ) } export default { name: 'pix2pix', router, links, }