Skip to content

Commit

Permalink
Add LinkedIn to footer
Browse files Browse the repository at this point in the history
Related to #61
  • Loading branch information
jbelien committed Dec 18, 2020
1 parent c1bcad7 commit fd37866
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 8 deletions.
1 change: 1 addition & 0 deletions content/settings/footer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ socials:
github: https://github.com/openknowledgebe
twitter: https://twitter.com/openknowledgebe
facebook: https://www.facebook.com/OpenKnowledgeBE
linkedin: https://www.linkedin.com/company/open-knowledge-belgium/
footer_nav:
- label: About
to: /about
Expand Down
10 changes: 9 additions & 1 deletion src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import Markdown from 'markdown-to-jsx';

import NavItems from './NavItems';
import { facebookIcon, githubIcon, twitterIcon } from '../images/icons';
import { facebookIcon, githubIcon, twitterIcon, linkedinIcon } from '../images/icons';
import { breakpoints } from '../styles/globals';

const StyledFooter = styled.footer`
Expand Down Expand Up @@ -114,6 +114,14 @@ const Footer = ({ data }) => (
>
<img src={facebookIcon} alt="Facebook" />
</a>
<a
href={data.socials.linkedin}
className="mg-r-b"
target="_blank"
rel="noopener noreferrer"
>
<img src={linkedinIcon} alt="LinkedIn" />
</a>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Layout = ({ children }) => {
github
twitter
facebook
linkedin
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/UI/Person.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styled from 'styled-components';
import { twitterBlackIcon, mailIcon, linkedinIcon, headshotIcon } from '../../images/icons';
import { twitterBlackIcon, mailIcon, linkedinBlackIcon, headshotIcon } from '../../images/icons';

import Img from './Img';

Expand Down Expand Up @@ -64,7 +64,7 @@ const Person = ({ name, picture, socials, task }) => (
)}
{socials.linkedin && (
<a href={socials.linkedin} target="_blank" rel="noopener noreferrer">
<img src={linkedinIcon} alt="LinkedIn" />
<img src={linkedinBlackIcon} alt="LinkedIn" />
</a>
)}
{socials.twitter && (
Expand Down
1 change: 1 addition & 0 deletions src/images/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export { default as twitterIcon } from './twitter.svg';
export { default as arrow } from './arrow.svg';
export { default as twitterBlackIcon } from './twitter-black.svg';
export { default as mailIcon } from './mail.svg';
export { default as linkedinBlackIcon } from './linkedin-black.svg';
export { default as linkedinIcon } from './linkedin.svg';
export { default as headshotIcon } from './placeholder-person.svg';
export { default as btmFacingArrow } from './btm-facing-arrow.svg';
Expand Down
5 changes: 5 additions & 0 deletions src/images/icons/linkedin-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/images/icons/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/templates/Activity.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
btmFacingArrow,
facebookBlackIcon,
twitterBlackIcon,
linkedinIcon,
linkedinBlackIcon,
githubBlackIcon
} from '../images/icons';

Expand Down Expand Up @@ -279,7 +279,7 @@ export const ActivityTemplate = ({ data }) => (
target="_blank"
rel="noopener noreferrer"
>
<img src={linkedinIcon} alt="Linkedin" />
<img src={linkedinBlackIcon} alt="Linkedin" />
</a>
)}

Expand Down
1 change: 1 addition & 0 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ collections:
- { label: Github, name: github, widget: string }
- { label: 'Twitter', name: 'twitter', widget: 'string' }
- { label: 'Facebook', name: 'facebook', widget: 'string' }
- { label: 'LinkedIn', name: 'linkedin', widget: 'string' }
- label: 'Footer Navigation'
name: 'footer_nav'
widget: 'list'
Expand Down

0 comments on commit fd37866

Please sign in to comment.