/
index.js
70 lines (59 loc) 路 1.48 KB
/
index.js
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
import React from 'react'
import styled from 'styled-components'
import { MdCode, MdMailOutline, MdRssFeed } from 'react-icons/md'
import Layout from '../components/layout'
import SEO from '../components/seo'
import { SocialLink } from '../elements'
import { above, avenir, darkTheme } from '../utils'
const IndexPage = () => (
<Layout>
<SEO title='Home' />
<HeaderWrapper>
<Header>Hi, I'm Enea!</Header>
<SubHeader>Web Developer</SubHeader>
<SocialLink href="https://github.com/eneax" aria-label="github" >
<MdCode />
</SocialLink>
<SocialLink href="mailto:eneaxharja@gmail.com" aria-label="mail" >
<MdMailOutline />
</SocialLink>
<SocialLink href="https://eneaxharja.com/rss.xml" aria-label="rss" >
<MdRssFeed />
</SocialLink>
</HeaderWrapper>
</Layout>
)
export default IndexPage
// styles
const HeaderWrapper = styled.header`
background-color: ${darkTheme.body};
color: ${darkTheme.text};
text-align: center;
margin: 6rem auto 2rem auto;
padding-top: 2rem;
padding-bottom: 2rem;
${above.mobileL`
padding-top: 4rem;
padding-bottom: 4rem;
`}
${above.mobileS`
margin-top: 3rem;
`}
`
const Header = styled.h1`
${avenir};
font-weight: 900;
font-size: 1.25rem;
${above.mobileL`
font-size: 1.5rem;
`}
`
const SubHeader = styled.h2`
${avenir};
font-size: .875rem;
font-weight: 400;
text-transform: uppercase;
letter-spacing: .1em;
margin-top: -.5rem;
margin-bottom: 1rem;
`