-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
46 lines (36 loc) · 1.04 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React, { Component } from 'react';
import { createMuiTheme, withStyles, MuiThemeProvider } from '@material-ui/core/styles';
import deepOrange from '@material-ui/core/colors/deepOrange';
import cyan from '@material-ui/core/colors/cyan';
import Presentation from './layout/Presentation';
import networksScatteringImage from './images/backgrounds/networks-scattering.gif';
const theme = createMuiTheme({
palette: {
primary: deepOrange,
secondary: cyan
},
typography: {
useNextVariants: true
}
});
const styles = (theme) => ({
background: {
minHeight: `100vh`,
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover',
backgroundPosition: 'center'
}
});
class App extends Component {
render() {
const { classes } = this.props;
return (
<MuiThemeProvider theme={theme}>
<div className={classes.background} style={{ backgroundImage: `url(${networksScatteringImage})` }}>
<Presentation />
</div>
</MuiThemeProvider>
);
}
}
export default withStyles(styles)(App);