open5gs/webui/pages/index.js

31 lines
960 B
JavaScript
Raw Normal View History

2017-05-19 05:13:44 +00:00
/**
* The index page uses a layout page that pulls in header and footer components
*/
import Link from 'next/link'
import React from 'react'
2017-05-19 06:08:32 +00:00
import Start from '../components/start'
2017-05-19 05:13:44 +00:00
import Layout from '../components/layout'
2017-05-19 06:08:32 +00:00
import Session from '../components/session'
2017-05-17 10:53:22 +00:00
2017-05-19 12:23:45 +00:00
export default class extends React.Component {
static async getInitialProps({req}) {
const session = new Session({req})
return {session: await session.getSession(true)}
}
2017-05-19 05:13:44 +00:00
render() {
return (
<Layout session={this.props.session}>
<h2>Under construction</h2>
<ul>
<li><Link prefetch href="/helloworld"><a>HelloWorld</a></Link> - The simplest possible example</li>
<li><Link prefetch href="/login"><a>Login</a></Link> - prefetch</li>
2017-05-19 05:36:17 +00:00
<li><Link prefetch href="/about"><a>About</a></Link> - About</li>
<li><Link prefetch href="/secret"><a>Secret</a></Link> - Secret</li>
2017-05-19 05:13:44 +00:00
</ul>
</Layout>
)
}
}