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"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<style>
body {
overflow: hidden;
}
</style>
<meta name="theme-color" content="#000000" />
<!--
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 logo from './logo.svg';
import './App.css';
import { withStyles, createStyles, Theme } from '@material-ui/core/styles';
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() {
const { classes } = this.props;
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<MuiThemeProvider theme={theme}>
<div className={classes.root}>
<Typography variant="h4">Bing!</Typography>
<br/>
<Typography variant="body1" paragraph> Thus the app should be ready to be deployed at any moment.</Typography>
</div>
</MuiThemeProvider>
);
}
}
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 ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { HashRouter } from 'react-router-dom';
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
// unregister() to register() below. Note this comes with some pitfalls.