|
1 | 1 | import * as React from 'react';
|
2 |
| -import { P, Div } from 'glamorous'; |
| 2 | +import { Div, P } from 'glamorous'; |
3 | 3 | import { SectionHeader } from '../../atoms/Header';
|
4 | 4 | import { red, white } from '../../theme/semantic';
|
5 |
| -import { Container, Grid, Header, Icon, Button } from 'semantic-ui-react'; |
| 5 | +import { Button, Container, Grid, Header, Icon } from 'semantic-ui-react'; |
6 | 6 | import { DarkBg, LightBg } from '../../atoms/Container';
|
7 | 7 | import Observer from 'react-intersection-observer';
|
8 |
| -import {router as routerx} from '../../../utils'; |
9 |
| -import {SingletonRouter} from 'next/router'; |
| 8 | +import { router as routerx } from '../../../utils'; |
| 9 | +import { SingletonRouter } from 'next/router'; |
10 | 10 | import pageData from '../../pageData/data';
|
11 | 11 |
|
12 | 12 | const goToMethodologyPage = (router?: SingletonRouter) => () =>
|
13 | 13 | router ? router.push('/methodology') : routerx.push('/methodology');
|
14 | 14 |
|
15 |
| -if ((process as any).browser) require('intersection-observer'); |
| 15 | +if ((process as any).browser) { |
| 16 | + require('intersection-observer'); |
| 17 | +} |
16 | 18 |
|
17 |
| -export default ({router}: {router?: SingletonRouter}) => |
| 19 | +export default ({ router }: {router?: SingletonRouter}) => |
18 | 20 | <section id="about">
|
19 | 21 | <DarkBg>
|
20 |
| - <SectionHeader color={red} fontColor={white}> |
| 22 | + <SectionHeader color={ red } fontColor={ white }> |
21 | 23 | DATA VISUALISATIONS
|
22 | 24 | </SectionHeader>
|
23 | 25 | </DarkBg>
|
24 | 26 | <Container>
|
25 | 27 | <Grid>
|
26 | 28 | <Grid.Row centered>
|
27 |
| - <Div paddingTop={'2em'} paddingBottom={'2em'}> |
| 29 | + <Div paddingTop={ '2em' } paddingBottom={ '2em' }> |
28 | 30 | <SectionHeader>
|
29 | 31 | ABOUT THE <span>DEVELOPMENT DATA HUB</span>
|
30 | 32 | </SectionHeader>
|
31 | 33 | </Div>
|
32 | 34 | </Grid.Row>
|
33 | 35 | <Grid.Row centered>
|
34 | 36 | <Grid.Column width="8">
|
35 |
| - <Header as="h3">{pageData.about[0].title}</Header> |
| 37 | + <Header as="h3">{ pageData.about[0].title }</Header> |
36 | 38 | <p>
|
37 |
| - {pageData.about[1].narrative} |
| 39 | + { pageData.about[1].narrative } |
38 | 40 | </p>
|
39 | 41 | </Grid.Column>
|
40 | 42 | <Grid.Column width="8">
|
41 | 43 | <Header as="h3">How does it work?</Header>
|
42 | 44 | <p>
|
43 |
| - {pageData.about[2].narrative} |
| 45 | + { pageData.about[2].narrative } |
44 | 46 | </p>
|
45 | 47 | </Grid.Column>
|
46 | 48 | </Grid.Row>
|
47 | 49 | <Grid.Row centered>
|
48 | 50 | <Grid.Column width="12">
|
49 | 51 | <Observer>
|
50 |
| - <iframe |
51 |
| - src="http://www.youtube.com/embed/2G1Gg2opKPg?rel=0&showinfo=0" |
52 |
| - title="About Datahub" |
53 |
| - frameBorder="0" |
54 |
| - height="585" |
55 |
| - style={{ width: '100%' }} |
56 |
| - /> |
| 52 | + <iframe |
| 53 | + src="https://player.vimeo.com/video/296043249" |
| 54 | + title="About Datahub" |
| 55 | + frameBorder="0" |
| 56 | + height="585" |
| 57 | + style={ { width: '100%' } } |
| 58 | + allowFullScreen |
| 59 | + /> |
57 | 60 | </Observer>
|
58 | 61 | </Grid.Column>
|
59 | 62 | </Grid.Row>
|
60 | 63 | </Grid>
|
61 | 64 | </Container>
|
62 | 65 | <LightBg>
|
63 | 66 | <Container textAlign="center">
|
64 |
| - <SectionHeader color={white}>DATA SOURCES</SectionHeader> |
65 |
| - <P paddingTop={'2em'} paddingBottom={'2em'}> |
| 67 | + <SectionHeader color={ white }>DATA SOURCES</SectionHeader> |
| 68 | + <P paddingTop={ '2em' } paddingBottom={ '2em' }> |
66 | 69 | For documentation and data downloads, navigate to the methodology page.
|
67 | 70 | </P>
|
68 |
| - <Button color="grey" size="large" onClick={goToMethodologyPage(router)}> |
| 71 | + <Button color="grey" size="large" onClick={ goToMethodologyPage(router) }> |
69 | 72 | Methodology and Data <Icon name="chevron right" />
|
70 | 73 | </Button>
|
71 | 74 | </Container>
|
|
0 commit comments