This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from hyperspacedev/beta2
Beta 2 updates
- Loading branch information
Showing
18 changed files
with
675 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React, {Component} from 'react'; | ||
import {MuiThemeProvider, Theme, AppBar, Typography, CssBaseline, Toolbar, Fab, Paper} from '@material-ui/core'; | ||
import EditIcon from '@material-ui/icons/Edit'; | ||
import MenuIcon from '@material-ui/icons/Menu'; | ||
|
||
interface IThemePreviewProps { | ||
theme: Theme; | ||
} | ||
|
||
interface IThemePreviewState { | ||
theme: Theme; | ||
} | ||
|
||
class ThemePreview extends Component<IThemePreviewProps, IThemePreviewState> { | ||
constructor(props: IThemePreviewProps) { | ||
super(props); | ||
|
||
this.state = { | ||
theme: this.props.theme | ||
} | ||
} | ||
|
||
render() { | ||
return ( | ||
<div style={{ position: 'relative' }}> | ||
<MuiThemeProvider theme={this.props.theme}> | ||
<CssBaseline/> | ||
<Paper> | ||
<AppBar color="primary" position="static"> | ||
<Toolbar> | ||
<MenuIcon style={{ marginRight: 20, marginLeft: -4 }}/> | ||
<Typography variant="h6" color="inherit">Hyperspace</Typography> | ||
</Toolbar> | ||
</AppBar> | ||
<div style={{ paddingLeft: 16, paddingTop: 16, paddingRight: 16, paddingBottom: 16, flexGrow: 1 }}> | ||
<Typography variant="h4" component="p"> | ||
This is your theme. | ||
</Typography> | ||
<br/> | ||
<Typography paragraph> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vestibulum congue sem ac ornare. In nec imperdiet neque. In eleifend laoreet efficitur. Vestibulum vel odio mattis, scelerisque nibh a, ornare lectus. Phasellus sollicitudin erat et turpis pellentesque consequat. In maximus luctus purus, eu molestie elit euismod eu. Pellentesque quam lectus, sagittis eget accumsan in, consequat ut sapien. Morbi aliquet ligula erat, id dapibus nunc laoreet at. Integer sodales lacinia finibus. Aliquam augue nibh, eleifend quis consectetur et, rhoncus ut odio. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
</Typography> | ||
</div> | ||
<div style={{ textAlign: 'right' }}> | ||
<Fab color="secondary" style={{ marginRight: 8, marginBottom: 8 }}> | ||
<EditIcon/> | ||
</Fab> | ||
</div> | ||
|
||
</Paper> | ||
</MuiThemeProvider> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default ThemePreview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ThemePreview from './ThemePreview'; | ||
|
||
export default ThemePreview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React, {Component} from 'react'; | ||
import {withStyles, Typography} from '@material-ui/core'; | ||
import {styles} from './PageLayout.styles'; | ||
import {LinkableButton} from '../interfaces/overrides'; | ||
|
||
class Missingno extends Component<any, any> { | ||
|
||
render() { | ||
const {classes} = this.props; | ||
return ( | ||
<div className={classes.pageLayoutConstraints}> | ||
<div> | ||
<Typography variant="h4" component="h1"><b>Uh oh!</b></Typography> | ||
<Typography variant="h6" component="p">The part of Hyperspace you're looking for isn't here.</Typography> | ||
<br/> | ||
<LinkableButton to="/home" color="primary" variant="contained"> | ||
Go back to home timeline | ||
</LinkableButton> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default withStyles(styles)(Missingno); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.