This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add links at the bottom and fix some styling issues
- Loading branch information
Kent C. Dodds
committed
Dec 8, 2015
1 parent
cc33389
commit 7e967ec
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react' | ||
import utils from '../../../utils' | ||
|
||
export default Links | ||
|
||
function Links() { | ||
return ( | ||
<section id="links" className="+text-center +font-smaller"> | ||
{ | ||
utils.intersperse( | ||
getLinks().map((link, i) => { | ||
return ( | ||
<a key={i} href={link.href} alt={link.alt || link.title}> | ||
{link.title} | ||
</a> | ||
) | ||
}), | ||
' | ' | ||
) | ||
} | ||
</section> | ||
) | ||
} | ||
|
||
function getLinks() { | ||
return [ | ||
{ | ||
href: 'http://issuetemplate.com/#/javascriptair/site/episode-suggestion', | ||
title: 'Suggest Episodes', | ||
}, | ||
{ | ||
href: 'mailto:[email protected]', | ||
alt: 'Email JavaScript Air', | ||
title: 'Contact us', | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters