More setup

This commit is contained in:
Marquis Kurt 2019-03-25 17:01:39 -04:00
parent f4784308c3
commit 46448d5bc6
5 changed files with 33 additions and 69 deletions

View File

@ -7,6 +7,11 @@
name="viewport" name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" content="width=device-width, initial-scale=1, shrink-to-fit=no"
/> />
<style>
body {
overflow: hidden;
}
</style>
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<!-- <!--
manifest.json provides metadata used when your web app is installed on a manifest.json provides metadata used when your web app is installed on a

View File

@ -1,33 +0,0 @@
.App {
text-align: center;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
pointer-events: none;
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View File

@ -1,28 +1,30 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import logo from './logo.svg'; import { withStyles, createStyles, Theme } from '@material-ui/core/styles';
import './App.css'; import { setHyperspaceTheme } from './utilities/themes';
import { defaultTheme } from './types/HyperspaceTheme';
import { Typography, MuiThemeProvider } from '@material-ui/core';
class App extends Component { const theme = setHyperspaceTheme(defaultTheme);
const styles = (theme: Theme) => createStyles({
root: {
width: '100%'
}
});
class App extends Component<any, any> {
render() { render() {
const { classes } = this.props;
return ( return (
<div className="App"> <MuiThemeProvider theme={theme}>
<header className="App-header"> <div className={classes.root}>
<img src={logo} className="App-logo" alt="logo" /> <Typography variant="h4">Bing!</Typography>
<p> <br/>
Edit <code>src/App.tsx</code> and save to reload. <Typography variant="body1" paragraph> Thus the app should be ready to be deployed at any moment.</Typography>
</p> </div>
<a </MuiThemeProvider>
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
); );
} }
} }
export default App; export default withStyles(styles)(App);

View File

@ -1,14 +0,0 @@
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

View File

@ -1,10 +1,14 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import './index.css';
import App from './App'; import App from './App';
import { HashRouter } from 'react-router-dom';
import * as serviceWorker from './serviceWorker'; import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root')); ReactDOM.render(
<HashRouter>
<App />
</HashRouter>,
document.getElementById('root'));
// If you want your app to work offline and load faster, you can change // If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls. // unregister() to register() below. Note this comes with some pitfalls.