Add instructions to home on user login
This commit is contained in:
1 parent
c415e641a0
commit
b3473e01c4
4 files changed
+228
-27
No files matched your search
@@ -374,6 +374,23 @@ header.menu{
|
||||
padding: 20px 0 0.5em 0;
|
||||
@include fluid-type($break-xs, $break-lg, 18px, 20px);
|
||||
}
|
||||
.instructions{
|
||||
h5{
|
||||
color: white;
|
||||
margin-top:25px;
|
||||
}
|
||||
h6{
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
&:hover {
|
||||
color: #f55858;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,48 @@
|
||||
import React, { Component } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
import { BannerTopBar } from '../common'
|
||||
import { Typography } from '@material-ui/core'
|
||||
|
||||
class Home extends Component {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
this.state = {
|
||||
user: null
|
||||
}
|
||||
}
|
||||
componentDidMount () {
|
||||
const user = window.localStorage.getItem('user')
|
||||
this.setState({ user })
|
||||
}
|
||||
render () {
|
||||
let user = JSON.parse(this.state.user)
|
||||
if(this.state.user !== undefined && this.state.user !== null){}
|
||||
return (
|
||||
<React.Fragment>
|
||||
<BannerTopBar
|
||||
size='big'
|
||||
title='Superalgos Platform'
|
||||
text='People and machines working together to create Superalgos'
|
||||
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
|
||||
/>
|
||||
{this.state.user !== undefined && this.state.user !== null && (
|
||||
<BannerTopBar
|
||||
size='big'
|
||||
title='Superalgos Platform Demo'
|
||||
text='Get Started Using the Demo'
|
||||
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
|
||||
>
|
||||
<div className='instructions'>
|
||||
<Typography align='center' variant='subtitle1' >1. <Link to='/teams/manage-teams'>Create a Team and Financial Being →</Link></Typography>
|
||||
<Typography align='center' variant='subtitle1' >2. <Link to='/strategizer'>Visit the Strategizer and learn how to build a strategy →</Link></Typography>
|
||||
<Typography align='center' variant='subtitle1' >3. <Link to='/clones/add'>Run a clone instance of your simulator algobot to test the strategy →</Link></Typography>
|
||||
<Typography align='center' variant='subtitle1' >4. <Link to='/charts'>View the results of your strategy in the charts →</Link></Typography>
|
||||
</div>
|
||||
</BannerTopBar>
|
||||
)}
|
||||
{(this.state.user === undefined || this.state.user === null) && (
|
||||
<BannerTopBar
|
||||
size='big'
|
||||
title='Superalgos Platform Demo'
|
||||
text='People and machines working together to create Superalgos'
|
||||
backgroundUrl='https://superalgos.org/img/photos/superalgos-platform.jpg'
|
||||
/>
|
||||
)}
|
||||
<div className='homePage container'>
|
||||
<Typography variant='h1' align='center' className='title'>Welcome to the Superalgos Platform!</Typography>
|
||||
<Typography variant='h2' align='center' className='subtitle'>Enabling the evolutionary race towards the emergence of superalgos</Typography>
|
||||
@@ -28,7 +59,7 @@ class Home extends Component {
|
||||
</div>
|
||||
<div className='column'>
|
||||
<Typography align='justify'>
|
||||
Feel free to explore the menu in the top-right corner or visit the <a href='https://www.superalgos.org/documentation-quick-start.shtml' target='_blank'>Quick Start Guide</a>.
|
||||
Feel free to explore the menu in the top-right corner or visit the <a href='https://superalgos.org/documentation-quick-start.shtml' target='_blank'>Quick Start Guide</a>.
|
||||
Reporting of bugs at the corresponding <a href='https://github.com/Superalgos' target='_blank' rel='nofollow'>Superalgos Github repository</a> is highly appreciated.
|
||||
</Typography>
|
||||
<Typography align='justify'>
|
||||
|
||||
Reference in new issue
Block a user