forked from SLoh4137/umcp-tase
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.tsx
39 lines (32 loc) · 1.09 KB
/
index.tsx
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
import React from "react"
import { Theme, createStyles, withStyles, WithStyles } from "@material-ui/core"
import SEO from "components/seo"
import Hero from "components/Home/Hero"
import Welcome from "components/Home/Welcome"
import Goals from "components/Home/Goals"
import UpcomingEvents from "components/Home/UpcomingEvents"
import NewsletterContact from "components/Home/NewsletterContact"
import { ThemeProvider } from "@material-ui/core/styles"
import theme from "../theme"
const styles = (theme: Theme) =>
createStyles({
parent: { backgroundColor: "white" },
})
type Props = WithStyles<typeof styles>
function IndexPage(props: Props) {
const { classes } = props
return (
<ThemeProvider theme={theme}>
<div className={classes.parent}>
<SEO title="Home" />
<Hero />
<Welcome />
<Goals />
<a id="upcoming-events" />
<UpcomingEvents />
<NewsletterContact />
</div>
</ThemeProvider>
)
}
export default withStyles(styles)(IndexPage)