-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathindex.tsx
51 lines (42 loc) · 1.23 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
40
41
42
43
44
45
46
47
48
49
50
51
import React from "react";
import styled, { css } from "styled-components";
import { MAX_WIDTH_LANDSCAPE, landscapeStyle } from "styles/landscapeStyle";
import { responsiveSize } from "styles/responsiveSize";
import { HomePageProvider } from "hooks/useHomePageContext";
import { getOneYearAgoTimestamp } from "utils/date";
import HeroImage from "components/HeroImage";
import LatestCases from "components/LatestCases";
import ScrollTop from "components/ScrollTop";
import Community from "./Community";
import CourtOverview from "./CourtOverview";
import TopJurors from "./TopJurors";
const Wrapper = styled.div`
width: 100%;
`;
const Container = styled.div`
width: 100%;
background-color: ${({ theme }) => theme.lightBackground};
padding: 16px 16px 40px;
max-width: ${MAX_WIDTH_LANDSCAPE};
margin: 0 auto;
${landscapeStyle(
() => css`
padding: 16px ${responsiveSize(0, 132)} 60px;
`
)}
`;
const Home: React.FC = () => (
<HomePageProvider timeframe={getOneYearAgoTimestamp()}>
<Wrapper>
<HeroImage />
<Container>
<CourtOverview />
<LatestCases />
<TopJurors />
<Community />
</Container>
<ScrollTop />
</Wrapper>
</HomePageProvider>
);
export default Home;