Footer updated #2

Merged
tmshv merged 4 commits from dev into master 2018-05-22 23:56:21 +00:00
Showing only changes of commit f3b6420d02 - Show all commits
+9 -1
View File
@@ -1,6 +1,7 @@
const React = require('react')
const mailto = email => `mailto:${email}`
const currentYear = () => (new Date()).getFullYear()
const Footer = ({children, address, telephone, email, showAuthor}) => (
<footer>
@@ -16,7 +17,10 @@ const Footer = ({children, address, telephone, email, showAuthor}) => (
</div>
<div className="copyright">
<span>©&nbsp;2012—2017 Шлиссельбургская детская художественная школа</span>
<Copyright
yearStart={2012}
yearEnd={currentYear()}
/>
{!showAuthor ? null : (
<span>Разработка и поддержка сайта —
<a href="http://tmshv.ru?utm_source=artshburg&utm_medium=developer&utm_campaign=tmshv_ru">
@@ -28,4 +32,8 @@ const Footer = ({children, address, telephone, email, showAuthor}) => (
</footer>
)
const Copyright = ({yearStart, yearEnd}) => (
<span>©&nbsp;{yearStart}—{yearEnd} Шлиссельбургская детская художественная школа</span>
)
module.exports = Footer