Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Add link to github repos #30

Merged
merged 2 commits into from
Mar 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Components/Router/Link/External/ExternalLink.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'

// ExternalLink :: Props -> React.Component
export default ({
to,
children,
}) =>
<a
href={to}
target="_blank"
rel="noopener noreferrer"
>
{children}
</a>
1 change: 1 addition & 0 deletions src/Components/Router/Link/External/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ExternalLink'
6 changes: 6 additions & 0 deletions src/Components/SideWidget/SideWidget.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import './SideWidget.css'
import Link from './../Router/Link/External'

// SideWidget :: () -> React.Component
export default () =>
Expand All @@ -13,5 +14,10 @@ export default () =>
This minimal blog is an attempt to share my daily understandings,
and a pretty good excuse to improve my english :)
</p>
<p>
Have a look to this blog codebase&nbsp;
<Link to="https://github.com/jaljo/blog-react">here</Link> and&nbsp;
<Link to="https://github.com/jaljo/blog-api">here</Link>.
</p>
</div>
</div>