mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Merge pull request #216 from ascribe/feature/end-of-life
end of life component
This commit is contained in:
commit
e62548a765
21
js/components/eol.js
Normal file
21
js/components/eol.js
Normal 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;
|
@ -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',
|
||||||
|
@ -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
13
sass/ascribe_eol.scss
Normal 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%;
|
||||||
|
}
|
||||||
|
}
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user