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

Commit

Permalink
Add links at the bottom and fix some styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Dec 8, 2015
1 parent cc33389 commit 7e967ec
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/pages/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import EpisodesSection from './sections/episodes'
import HostSection from './sections/host'
import PanelistsSection from './sections/panelists'
import SponsorsSection from './sections/sponsors'
import LinksSection from './sections/links'

import SocialIconGroupSection from './sections/social-icon-group'
import GoogleAnalyticsScript from './scripts/google-analytics'
Expand Down Expand Up @@ -58,6 +59,10 @@ function Home({futureEpisodes = [], pastEpisodes = [], sponsors}) {

<SocialIconGroupSection />

<hr />

<LinksSection />

<GoogleAnalyticsScript />
<FeatureShowScript />
</Page>
Expand Down
37 changes: 37 additions & 0 deletions src/pages/home/sections/links.js
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',
},
]
}
12 changes: 10 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ h3 small {
font-size: 23px;
}

.person img {
.person img, .sponsor img {
max-width: 120px;
}

Expand All @@ -146,6 +146,10 @@ h3 small {
margin-right: 10px;
}

.\+font-smaller {
font-size: 12px;
}

}

/* Desktop */
Expand Down Expand Up @@ -175,7 +179,7 @@ h3 small {
font-size: 30px;
}

.person img {
.person img, .sponsor img {
max-width: 180px;
}

Expand All @@ -188,4 +192,8 @@ h3 small {
margin-right: 28px;
}


.\+font-smaller {
font-size: 18px;
}
}

0 comments on commit 7e967ec

Please sign in to comment.