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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
import React from 'react';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Build from '@material-ui/icons/Build';
import Settings from '@material-ui/icons/SettingsApplications';
import Warning from '@material-ui/icons/Warning';
import { Typography, Avatar, Hidden, Paper } from '@material-ui/core';
const styles = theme => ({
root: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height: '100%'
},
paper: {
margin: 'auto',
padding: 40,
width: '90%',
[theme.breakpoints.up('sm')]: {
width: 600,
height: 300,
},
textAlign: 'center'
},
artwork: {
display: 'flex',
justifyContent: 'center',
marginBottom: 30
},
icon: {
margin: '10px 20px',
background: theme.palette.secondary.main,
color: theme.palette.common.white,
width: 100,
height: 100,
'& svg': {
fontSize: 64,
},
},
});
class Maintenance extends React.Component {
render() {
const title = brand.name + ' - Maintenance';
const description = brand.desc;
const { classes } = this.props;
return (
<div className={classes.root}>
<Helmet>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
</Helmet>
<div className={classes.container}>
<Paper className={classes.paper}>
<div className={classes.artwork}>
<Avatar className={classes.icon}><Build /></Avatar>
<Hidden xsDown>
<Avatar className={classes.icon}><Warning /></Avatar>
</Hidden>
<Hidden xsDown>
<Avatar className={classes.icon}><Settings /></Avatar>
</Hidden>
</div>
<Typography variant="h4" gutterBottom>Website under maintenance</Typography>
<Typography variant="subtitle1">
Our website is under maintenance. We
{"'"}
ll be back shortly
</Typography>
</Paper>
</div>
</div>
);
}
}
Maintenance.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(styles)(Maintenance);
|