From 078ec37662199ba778b04b86d5a7ec682f7dadff Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 26 Apr 2018 14:40:22 +0200 Subject: [PATCH] =?UTF-8?q?:art:=20cache=20le=20bandeau=20de=20news=20quan?= =?UTF-8?q?d=20la=20simulation=20a=20commenc=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/News.css | 28 +++++++++++++++++++++ source/components/News.js | 32 ++++++++++++++++++++++++ source/components/pages/Home.css | 17 ------------- source/components/pages/Home.js | 43 ++++++-------------------------- 4 files changed, 68 insertions(+), 52 deletions(-) create mode 100644 source/components/News.css create mode 100644 source/components/News.js delete mode 100644 source/components/pages/Home.css diff --git a/source/components/News.css b/source/components/News.css new file mode 100644 index 000000000..06b5dc9fa --- /dev/null +++ b/source/components/News.css @@ -0,0 +1,28 @@ +.news-header { + display: flex; + align-items: center; + max-width: 30em; + margin: 0 auto; + justify-content: center; + animation: fade-in 2s; +} +.news-header p { + color: #4b4b66; + font-size: 85%; +} + +.news-header i { + margin-right: 1em; +} + +@keyframes fade-in { + from { + opacity: 0; + } + 50% { + opacity: 0; + } + to { + opacity: 1; + } +} diff --git a/source/components/News.js b/source/components/News.js new file mode 100644 index 000000000..73fade65d --- /dev/null +++ b/source/components/News.js @@ -0,0 +1,32 @@ +import React from 'react' +import { connect } from 'react-redux' +import { compose } from 'ramda' +import withColours from './withColours' +import { Trans, translate } from 'react-i18next' +import './News.css' + +let News = ({ hidden, colours: { textColourOnWhite } }) => + !hidden ? ( +
+