Merge branch 'dev' of tmshv/hudozka into master
This commit is contained in:
commit
19952b72f1
4 files changed
+22
-10
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ RUN npm i
|
|||||||
COPY webpack.config.js gulpfile.js .babelrc ./
|
COPY webpack.config.js gulpfile.js .babelrc ./
|
||||||
COPY robots.txt ./
|
COPY robots.txt ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN npm run gulp deploy
|
RUN npm run gulp
|
||||||
RUN npm run build-app
|
RUN npm run build-app
|
||||||
RUN npm run out
|
RUN npm run out
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ services:
|
|||||||
- mongo
|
- mongo
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: Hudozka.Dockerfile
|
dockerfile: Dockerfile
|
||||||
links:
|
links:
|
||||||
- mongo
|
- mongo
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
+1
-2
@@ -54,6 +54,5 @@ gulp.task('imagemin', () => {
|
|||||||
.pipe(gulp.dest('./public/graphics'))
|
.pipe(gulp.dest('./public/graphics'))
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('default', gulp.series('style'))
|
|
||||||
gulp.task('copy', gulp.series('copy views', 'copy fonts', 'copy graphics', 'copy robots.txt'))
|
gulp.task('copy', gulp.series('copy views', 'copy fonts', 'copy graphics', 'copy robots.txt'))
|
||||||
gulp.task('deploy', gulp.series('default', 'copy', 'imagemin'))
|
gulp.task('default', gulp.series('style', 'copy', 'imagemin'))
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
const React = require('react')
|
const React = require('react')
|
||||||
|
|
||||||
const mailto = email => `mailto:${email}`
|
const mailto = email => `mailto:${email}`
|
||||||
|
const currentYear = () => (new Date()).getFullYear()
|
||||||
|
|
||||||
const Footer = ({children, address, telephone, email, showAuthor}) => (
|
const Footer = ({children, address, telephone, email, showAuthor}) => (
|
||||||
<footer>
|
<footer>
|
||||||
@@ -16,16 +17,28 @@ const Footer = ({children, address, telephone, email, showAuthor}) => (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="copyright">
|
<div className="copyright">
|
||||||
<span>© 2012—2017 Шлиссельбургская детская художественная школа</span>
|
<Copyright
|
||||||
|
yearStart={2012}
|
||||||
|
yearEnd={currentYear()}
|
||||||
|
/>
|
||||||
{!showAuthor ? null : (
|
{!showAuthor ? null : (
|
||||||
<span>Разработка и поддержка сайта —
|
<Author/>
|
||||||
<a href="http://tmshv.ru?utm_source=artshburg&utm_medium=developer&utm_campaign=tmshv_ru">
|
|
||||||
www.tmshv.ru
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const Author = () => (
|
||||||
|
<span>
|
||||||
|
Разработка и поддержка сайта —
|
||||||
|
<a href="http://tmshv.ru?utm_source=artshburg&utm_medium=developer&utm_campaign=tmshv_ru">
|
||||||
|
www.tmshv.ru
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
|
||||||
|
const Copyright = ({yearStart, yearEnd}) => (
|
||||||
|
<span>© {yearStart}—{yearEnd} Шлиссельбургская детская художественная школа</span>
|
||||||
|
)
|
||||||
|
|
||||||
module.exports = Footer
|
module.exports = Footer
|
||||||
Reference in new issue
Block a user