From 8ec5b7a35e0e52e492148bd490c53586be9879fa Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Fri, 5 Apr 2019 15:47:00 -0700 Subject: Use provided theme --- src/components/about-entry.js | 8 ++---- src/components/button.js | 57 +++++++++++++++------------------------ src/components/container.js | 16 +++++------ src/components/font-awesome.js | 16 +++++------ src/components/header.js | 5 ++-- src/components/image.js | 3 +-- src/components/nav.js | 3 +-- src/components/personal.js | 4 +-- src/components/project-detail.js | 7 +++-- src/components/project.js | 13 +++++---- src/components/social.js | 3 +-- src/components/split-container.js | 4 +-- src/components/tag.js | 15 +++++------ 13 files changed, 62 insertions(+), 92 deletions(-) (limited to 'src') diff --git a/src/components/about-entry.js b/src/components/about-entry.js index 553b5e5..1a65800 100644 --- a/src/components/about-entry.js +++ b/src/components/about-entry.js @@ -1,8 +1,7 @@ import React from 'react' import { css } from '@emotion/core' -import { margins } from './globals' -const aboutEntryStyle = css` +const aboutEntryStyle = ({ margins }) => css` margin: 0 0 ${margins.lg}px 0; & li { margin-bottom: ${margins.sm}px; @@ -10,12 +9,9 @@ const aboutEntryStyle = css` ` export const AboutEntry = ({ headerMargin, listItems, header }) => { - const headingStyle = css` - margin: ${headerMargin || 0}; - ` return (
-

{header}

+

{header}

{listItems ? (