mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
32 lines
758 B
JavaScript
32 lines
758 B
JavaScript
import * as React from 'react'
|
|
import redirect from '../lib/redirect'
|
|
// import Link from 'next/link'
|
|
// import Head from '../components/head'
|
|
// import Nav from '../components/nav'
|
|
import TypingDemo from '../components/demos/typing'
|
|
import TapDemo from '../components/demos/tap'
|
|
|
|
export default class Home extends React.Component {
|
|
static async getInitialProps (ctx, rpc) {
|
|
if (ctx.user != null) {
|
|
redirect(ctx, '/s/add')
|
|
}
|
|
|
|
ctx.layout.noBackground = true
|
|
}
|
|
|
|
render () {
|
|
return <div>
|
|
<h2>A bot to tame your self-assignable Discord roles.</h2>
|
|
<div>
|
|
<TypingDemo />
|
|
<p>What is this? 2005?</p>
|
|
</div>
|
|
<div>
|
|
<TapDemo />
|
|
<p>Just click or tap.</p>
|
|
</div>
|
|
|
|
</div>
|
|
}
|
|
}
|