summaryrefslogtreecommitdiff
path: root/src/components/layout.js
blob: 72a270649a81d91cdfca5d85c6f61cc51ac19b17 (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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import React from 'react'
import Helmet from 'react-helmet'
import { injectGlobal } from 'emotion'
import { colours, fontStack, transitions } from './globals'
import { Container } from './container'
import { Header } from './header'

import '../../node_modules/font-awesome/css/font-awesome.min.css'

injectGlobal(`
  *,
  html,
  body {
    margin: 0;
    padding: 0;
  }
  p,
  a,
  h1,
  h2,
  h3,
  h4,
  h5,
  div {
    font-family: ${fontStack};
    color: ${colours.main};
  }
  a {
    border-bottom: 1px dotted;
    text-decoration: none;
    &: hover {
      transition: ${transitions.hover};
    }
  }
  body {
    background: ${colours.background};
  }
`)

const siteData = {
  siteName: 'Nicholas Van Doorn',
  navLinks: [
    {
      name: 'Work',
      link: '/work'
    },
    {
      name: 'Projects',
      link: '/projects'
    },
    {
      name: 'About',
      link: '/about'
    }
  ],
  socialEntries: [
    {
      link: '//github.com/nvandoorn',
      name: 'github'
    },
    {
      link: '//twitter.com/nickvandoorn',
      name: 'twitter'
    },
    {
      link: '//open.spotify.com/user/pontonn',
      name: 'spotify'
    }
  ]
}

export default ({ children, data }) => (
  <>
    <Helmet
      title="Nicholas Van Doorn"
      meta={[
        { name: 'description', content: 'Portfolio for Nicholas Van Doorn' },
        { name: 'keywords', content: 'software, engineer, development, web' }
      ]}
    >
      <html lang="en" />
    </Helmet>
    <Container>
      <Header
        siteName={siteData.siteName}
        links={siteData.navLinks}
        socialEntries={siteData.socialEntries}
      />
      {children}
    </Container>
  </>
)