2016-03-11 23:28:19 +01:00
|
|
|
import React from 'react'
|
|
|
|
import { RouteHandler, Link } from 'react-router'
|
2016-06-03 01:32:38 +02:00
|
|
|
import { prefixLink } from 'gatsby-helpers'
|
2016-03-11 23:28:19 +01:00
|
|
|
import { config } from 'config'
|
2016-06-03 01:32:38 +02:00
|
|
|
import './style.css'
|
2016-03-11 23:28:19 +01:00
|
|
|
import '../../static/fonts/fontawesome/style.css'
|
|
|
|
|
2016-06-03 13:05:50 +02:00
|
|
|
class SiteLinks extends React.Component {
|
2017-01-25 10:59:10 +01:00
|
|
|
render () {
|
2016-03-11 23:28:19 +01:00
|
|
|
|
2017-01-25 10:59:10 +01:00
|
|
|
return (
|
2017-02-05 16:45:57 +01:00
|
|
|
<div className="blog-links">
|
2017-01-25 10:59:10 +01:00
|
|
|
<ul>
|
|
|
|
{config.siteTwitterUrl && (
|
|
|
|
<li>
|
|
|
|
<a href={config.siteTwitterUrl}>
|
|
|
|
<i className="fa fa-twitter" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
{config.siteGithubUrl && (
|
|
|
|
<li>
|
|
|
|
<a href={config.siteGithubUrl}>
|
|
|
|
<i className="fa fa-github-alt" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
{config.siteVkUrl && (
|
|
|
|
<li>
|
|
|
|
<a href={config.siteVkUrl}><i className="fa fa-vk" /></a>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
{config.siteEmailUrl && (
|
|
|
|
<li>
|
2017-03-05 00:15:02 +01:00
|
|
|
<a href={`mailto:${config.siteEmailUrl}`}>
|
2017-01-25 10:59:10 +01:00
|
|
|
<i className="fa fa-envelope-o" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
{config.siteTelegramUrl && (
|
|
|
|
<li>
|
|
|
|
<a href={config.siteTelegramUrl}>
|
|
|
|
<i className="fa fa-paper-plane" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
{config.siteRssUrl && (
|
|
|
|
<li>
|
|
|
|
<a href={config.siteRssUrl}><i className="fa fa-rss" /></a>
|
|
|
|
</li>
|
|
|
|
)}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
2016-03-11 23:28:19 +01:00
|
|
|
}
|
|
|
|
|
2017-03-05 00:15:02 +01:00
|
|
|
export default SiteLinks
|