Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Add SEO component (#1834)
Browse files Browse the repository at this point in the history
Add SEO component
  • Loading branch information
spences10 committed Nov 4, 2019
2 parents 054ef36 + f0ddc88 commit d72da1c
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 384 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -52,6 +52,7 @@
"react-helmet": "5.2.1",
"react-live": "2.2.1",
"react-lottie": "1.2.3",
"react-seo-component": "0.1.10",
"react-utterances": "0.6.4",
"styled-components": "4.4.1"
},
Expand Down
2 changes: 2 additions & 0 deletions root-wrapper.js
Expand Up @@ -7,6 +7,7 @@ import {
Code,
StyledH2,
StyledH3,
StyledH4,
} from './src/components/elements';
import {
InlineCode,
Expand All @@ -26,6 +27,7 @@ const components = {
blockquote: BlockQuote,
h2: StyledH2,
h3: StyledH3,
h4: StyledH4,
p: Paragraph,
'p.a': AnchorTag,
'p.inlineCode': StyledInlineCode,
Expand Down
78 changes: 0 additions & 78 deletions src/components/SEO.js

This file was deleted.

21 changes: 3 additions & 18 deletions src/components/elements/H3.js
@@ -1,21 +1,6 @@
import styled from 'styled-components';
import { StyledH2 } from './H2';

export const StyledH3 = styled.h3`
font-family: ${props => props.theme.fontBody};
color: ${props => props.theme.fontDark};
a {
float: left;
padding-right: 4px;
margin-left: -20px;
}
svg {
visibility: hidden;
}
&:hover {
a {
svg {
visibility: visible;
}
}
}
export const StyledH3 = styled(StyledH2)`
font-size: 20px;
`;
6 changes: 6 additions & 0 deletions src/components/elements/H4.js
@@ -0,0 +1,6 @@
import styled from 'styled-components';
import { StyledH2 } from './H2';

export const StyledH4 = styled(StyledH2)`
font-size: 18px;
`;
1 change: 1 addition & 0 deletions src/components/elements/index.js
Expand Up @@ -4,3 +4,4 @@ export * from './Code';
export * from './GroupedElements';
export * from './H2';
export * from './H3';
export * from './H4';
37 changes: 0 additions & 37 deletions src/components/seo/facebook.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/seo/index.js

This file was deleted.

202 changes: 0 additions & 202 deletions src/components/seo/seo.js

This file was deleted.

0 comments on commit d72da1c

Please sign in to comment.