summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-03-20 04:13:53 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-03-20 04:14:42 -0700
commit364e1c0d5ed2be3eca9c20a7628782e378e18324 (patch)
treed3915571b8b3fa7a1ca7e84ec101add5acb2a8f9
parent1781d2057191c9c4d71eaac7bb3dfbe8d11d6ab8 (diff)
Use styled custom implementation of FontAwesome
-rw-r--r--src/components/layout.js16
-rw-r--r--src/components/tag.js9
2 files changed, 16 insertions, 9 deletions
diff --git a/src/components/layout.js b/src/components/layout.js
index ccee009..5e8ce25 100644
--- a/src/components/layout.js
+++ b/src/components/layout.js
@@ -2,7 +2,6 @@ import React from 'react'
import Helmet from 'react-helmet'
import { css, Global } from '@emotion/core'
import { colours, fontStack, transitions } from './globals'
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import {
faSpotify,
faGithub,
@@ -12,6 +11,7 @@ import {
import { Container } from './container'
import { Header } from './header'
+import { FontAwesome } from './font-awesome'
const globalStyles = css`
*,
@@ -20,6 +20,9 @@ const globalStyles = css`
margin: 0;
padding: 0;
}
+ path {
+ fill: ${colours.main};
+ }
p,
a,
h1,
@@ -36,8 +39,8 @@ const globalStyles = css`
line-height: 2em;
}
li {
- list-style-type: circle;
list-style-position: outside;
+ margin-left: 20px;
}
a {
border-bottom: 1px dotted;
@@ -50,7 +53,6 @@ const globalStyles = css`
background: ${colours.background};
}
`
-
const siteData = {
siteName: 'Nicholas Van Doorn',
navLinks: [
@@ -71,22 +73,22 @@ const siteData = {
{
href: '//github.com/nvandoorn',
name: 'GitHub',
- icon: <FontAwesomeIcon icon={faGithub} />
+ icon: <FontAwesome icon={faGithub} size="30px" />
},
{
href: '//twitter.com/nickvandoorn',
name: 'Twitter',
- icon: <FontAwesomeIcon icon={faTwitter} />
+ icon: <FontAwesome icon={faTwitter} size="30px" />
},
{
href: '//keybase.io/nvandoorn',
name: 'Keybase',
- icon: <FontAwesomeIcon icon={faKeybase} />
+ icon: <FontAwesome icon={faKeybase} size="30px" />
},
{
href: '//open.spotify.com/user/pontonn',
name: 'Spotify',
- icon: <FontAwesomeIcon icon={faSpotify} />
+ icon: <FontAwesome icon={faSpotify} size="30px" />
}
]
}
diff --git a/src/components/tag.js b/src/components/tag.js
index cf20526..b887150 100644
--- a/src/components/tag.js
+++ b/src/components/tag.js
@@ -1,5 +1,5 @@
import React from 'react'
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
+import { FontAwesome } from './font-awesome'
import { faTag } from '@fortawesome/free-solid-svg-icons/faTag'
import { css } from '@emotion/core'
import { margins, colours } from './globals'
@@ -20,7 +20,12 @@ export const Tag = p => {
`
return (
<div css={tagStyle}>
- <FontAwesomeIcon icon={faTag} css={tagIconStyle} />
+ <FontAwesome
+ icon={faTag}
+ cssProp={tagIconStyle}
+ fill={colours.background}
+ size="10px"
+ />
{p.children}
</div>
)