diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-04-05 15:51:04 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-04-05 15:51:04 -0700 |
commit | 8cbfdc58b9c5c18c2873b80889684f42d4ea2dfb (patch) | |
tree | 539e9e1ab1d0c0aefc6610b16815132fd890f12e /src | |
parent | fc7c3e6dfc3e6fa84bd7b51eee4fe8492dac0b93 (diff) |
Remove injected css
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/about.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/pages/about.js b/src/pages/about.js index 27c193f..af07de0 100644 --- a/src/pages/about.js +++ b/src/pages/about.js @@ -1,4 +1,5 @@ import React from 'react' +import { css } from '@emotion/core' import { FontAwesome } from '../components/font-awesome' import { faHeart, @@ -9,7 +10,6 @@ import { } from '@fortawesome/free-solid-svg-icons' import Layout from '../components/layout' -import { margins } from '../components/globals' import { AboutEntry } from '../components/about-entry' import { Personal } from '../components/personal' import { SplitContainer } from '../components/split-container' @@ -99,13 +99,17 @@ export default () => ( <Layout> <SplitContainer> <Personal {...personalProps} /> - <div> + <div + css={({ margins }) => + css` + & h2 { + margin: 0 0 ${margins.md}px 0; + } + ` + } + > {aboutLists.map((entry, i) => ( - <AboutEntry - {...entry} - headerMargin={`0 0 ${margins.md}px 0`} - key={`about-entry-${i}`} - /> + <AboutEntry {...entry} key={`about-entry-${i}`} /> ))} </div> </SplitContainer> |