1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 01:13:14 +01:00

add end of life component

This commit is contained in:
Matthias Kretschmann 2018-09-03 11:37:39 +02:00
parent 802b4e84ce
commit 19173bc96d
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 43 additions and 0 deletions

21
js/components/eol.js Normal file
View File

@ -0,0 +1,21 @@
'use strict';
import React from 'react';
import { getLangText } from '../utils/lang_utils';
import { setDocumentTitle } from '../utils/dom_utils';
const EndOfLife = () =>{
setDocumentTitle(getLangText('EOL Title'));
return (
<div className="ascribe-eol-wrapper">
<h3>{getLangText('EOL Title')}</h3>
<p>{getLangText('EOL Text')} <a href="https://www.ascribe.io">{getLangText('EOL Action')}</a></p>
</div>
);
};
export default EndOfLife;

View File

@ -2,6 +2,9 @@
const languages = { const languages = {
'en-US': { 'en-US': {
'EOL Title': 'End Of Life',
'EOL Text': 'As of September 8 2018, ascribe has been shut down.',
'EOL Action': 'Learn more',
'ID': 'ID', 'ID': 'ID',
'Actions': 'Actions', 'Actions': 'Actions',
'Hide': 'Hide', 'Hide': 'Hide',

View File

@ -25,6 +25,7 @@ import ErrorNotFoundPage from './components/error_not_found_page';
import RegisterPiece from './components/register_piece'; import RegisterPiece from './components/register_piece';
import Footer from './components/footer'; import Footer from './components/footer';
import Eol from './components/eol';
import { ProxyHandler, AuthRedirect } from './components/ascribe_routes/proxy_handler'; import { ProxyHandler, AuthRedirect } from './components/ascribe_routes/proxy_handler';
@ -33,6 +34,10 @@ import { getLangText } from './utils/lang_utils';
const COMMON_ROUTES = ( const COMMON_ROUTES = (
<Route path='/' component={AscribeApp}> <Route path='/' component={AscribeApp}>
<Route
path='eol'
component={Eol}
footer={Footer} />
<Route <Route
path='login' path='login'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)}

13
sass/ascribe_eol.scss Normal file
View File

@ -0,0 +1,13 @@
$break-small: 764px;
.ascribe-eol-wrapper {
margin: 0 auto;
max-width: 600px;
width: 80%;
padding-top: 10rem;
padding-bottom: 10rem;
@media screen and (max-width: $break-small) {
width: 100%;
}
}

View File

@ -14,6 +14,7 @@ $BASE_URL: '<%= BASE_URL %>';
@import './ascribe-fonts/ascribe-fonts'; @import './ascribe-fonts/ascribe-fonts';
@import 'ascribe_navbar'; @import 'ascribe_navbar';
@import 'ascribe_login'; @import 'ascribe_login';
@import 'ascribe_eol';
@import 'ascribe_table'; @import 'ascribe_table';
@import 'ascribe_accordion_list'; @import 'ascribe_accordion_list';
@import 'ascribe_piece_list_bulk_modal'; @import 'ascribe_piece_list_bulk_modal';