From 0d13d01e247089cf97487c115a77953a5ff9acd6 Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Wed, 3 Apr 2024 17:13:10 +0100 Subject: [PATCH 1/2] Remove defunct polyfill service --- src/index.tpl.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.tpl.html b/src/index.tpl.html index c577e4a0..02d592a2 100644 --- a/src/index.tpl.html +++ b/src/index.tpl.html @@ -18,6 +18,5 @@
- From f1049d7bb48e279f618124720463a510087d6b8a Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Wed, 3 Apr 2024 17:39:24 +0100 Subject: [PATCH 2/2] Add AppBanner, with 'transcriptions finished' message --- src/components/App.jsx | 2 ++ src/components/AppBanner.jsx | 36 +++++++++++++++++++++++++++ src/styles/components/app-banner.styl | 4 +++ 3 files changed, 42 insertions(+) create mode 100644 src/components/AppBanner.jsx create mode 100644 src/styles/components/app-banner.styl diff --git a/src/components/App.jsx b/src/components/App.jsx index 2112dbdd..1a5f0ff2 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -11,6 +11,7 @@ import AuthContainer from '../containers/AuthContainer'; import ClassifierContainer from '../containers/ClassifierContainer'; import Home from './Home'; import ProjectHeader from '../containers/ProjectHeader'; +import AppBanner from './AppBanner'; class App extends React.Component { componentWillMount() { @@ -29,6 +30,7 @@ class App extends React.Component {
} />
+ {/* Added 3 Apr 2024 */}
diff --git a/src/components/AppBanner.jsx b/src/components/AppBanner.jsx new file mode 100644 index 00000000..00ce1d35 --- /dev/null +++ b/src/components/AppBanner.jsx @@ -0,0 +1,36 @@ +import React from 'react'; +import { connect } from 'react-redux'; +import { getActiveLanguage } from 'react-localize-redux'; +import PropTypes from 'prop-types'; + +const AppBanner = ({ currentLanguage }) => { + switch (currentLanguage) { + case 'he': return ( +
+ התמלול על פרויקט זה הושלם כעת. תודה על כל העזרה שלך! אנא עיין ב-Zooniverse Publications Page לתוצאות. +
+ ); + case 'ar': return ( +
+ اكتمل النسخ في هذا المشروع حاليًا. شكرا لكم على كل ما تبذلونه من مساعدة! يرجى الاطلاع على Zooniverse Publications Page للحصول على النتائج. +
+ ); + default: return ( +
+ Transcription on this project is currently complete. Thank you for all your help! Please see the Zooniverse Publications Page for results. +
+ ); + } +}; + +AppBanner.propTypes = { + currentLanguage: PropTypes.string.isRequired +}; + +AppBanner.defaultProps = {}; + +const mapStateToProps = state => ({ + currentLanguage: getActiveLanguage(state.locale).code +}); + +export default connect(mapStateToProps)(AppBanner); diff --git a/src/styles/components/app-banner.styl b/src/styles/components/app-banner.styl new file mode 100644 index 00000000..866f2206 --- /dev/null +++ b/src/styles/components/app-banner.styl @@ -0,0 +1,4 @@ +.app-banner + padding: 0.5rem 3.5rem + background: $light-teal + text-align: center \ No newline at end of file