summaryrefslogtreecommitdiff
path: root/src/components/splash.js
blob: 4b1a3e4417af267377201cb8b8e30442fbef0ccd (plain)
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
import React from 'react'
import { css } from '@emotion/core'

import { Button } from './button'
import { colours } from './globals'

const splashContainerStyle = css`
  height: 100%;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
`

const heroTextStyle = css`
  font-size: 3em;
`

export const Splash = p => (
  <article css={splashContainerStyle}>
    <div>
      <h2 css={heroTextStyle}>{p.heroText}</h2>
      <h3>{p.heroTagline}</h3>
    </div>
    <Button
      fontSize="1.2em"
      fontWeight="800"
      background={colours.background}
      hoverBackground={colours.main}
      hoverColour={colours.background}
      to={p.heroBtnTo}
    >
      {p.heroBtn}
    </Button>
  </article>
)