This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Landing.js
66 lines (63 loc) · 1.8 KB
/
Landing.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import React, { Component } from "react";
import { withStyles } from "@material-ui/core";
import Typography from "@material-ui/core/Typography/Typography";
import Logo from "./components/Logo";
import ReactGA from "react-ga";
// import ScaleIn from 'material-ui/internal/ScaleIn';
class Landing extends Component {
constructor(props) {
super(props);
ReactGA.pageview(window.location.pathname + window.location.search);
}
//TODO update download links
render() {
const { classes } = this.props;
return (
<div className={classes.root}>
<div className={classes.textContainer}>
<Logo fontSize={150} />
<Typography className={classes.tagline}>
Discover all the events at Cornell
</Typography>
</div>
<img src={"/static/device.png"} className={classes.image} alt="Phone" />
</div>
);
}
}
const styles = theme => ({
root: {
flex: 1,
display: "flex",
flexDirection: "row",
alignItems: "center",
alignSelf: "stretch",
marginRight: theme.spacing(24),
marginLeft: theme.spacing(16)
},
textContainer: {
flexGrow: 1,
flexDirection: "column",
marginRight: theme.spacing(8)
},
buttonContainer: {
display: "flex",
flexDirection: "row",
alignItems: "center",
marginTop: theme.spacing(2)
},
button: {
width: "13vw",
height: "auto",
marginRight: theme.spacing(2)
},
image: {
marginleft: theme.spacing(16),
marginTop: theme.spacing(6),
height: "70vh"
},
tagline: {
fontSize: 40
}
});
export default withStyles(styles)(Landing);