diff --git a/src/containers/Future/index.tsx b/src/containers/Future/index.tsx new file mode 100644 index 00000000..4f3a6966 --- /dev/null +++ b/src/containers/Future/index.tsx @@ -0,0 +1,110 @@ +import React from 'react'; +import { compose } from 'redux'; +import styled from 'styled-components'; +import { withStyles } from '@material-ui/core/styles'; +import { withRouter } from 'react-router-dom'; + +import { Props } from '../Homepage/types'; + +export const Typewriter = styled.div` + body { + background: #fff; + padding-top: 5em; + display: flex; + justify-content: center; + } + + h1 { + color: #000; + font-family: monospace; + overflow: hidden; + border-right: 0.15em solid orange; + white-space: nowrap; + margin: 0 auto; + letter-spacing: 0.15em; + animation: typing 3.5s steps(30, end), blink-caret 0.5s step-end infinite; + } + + @keyframes typing { + from { + width: 0; + } + to { + width: 100%; + } + } + + @keyframes blink-caret { + from, + to { + border-color: transparent; + } + 50% { + border-color: black; + } + } +`; + +export const Desk = styled.div` + display: flex; + flex-direction: column; + min-height: 100vh; + background-size: cover; + background-repeat: no-repeat; + background-position: center; + position: relative; +`; + +export const DeskMat = styled.h1` + align-self: center; + flex: 1 1 auto; + display: flex; + flex-flow: column nowrap; + justify-content: center; + text-align: center; +`; + +export const BottomDiv = styled.div` + position: absolute; + bottom: 10px; + left: 0; + right: 0; + margin: 0 auto; +`; + +export const Title2 = styled.h4` + font-family: monospace; + font-weight: 300; + margin: 0 0 25px; + font-size: 20px; + line-height: 29px; + letter-spacing: 3.04333px; + color: #000; + cursor: pointer; +`; + +class Future extends React.Component { + redirectToDashboard = () => { + this.props.history.push('/tezos/mainnet/'); + } + + render() { + return ( + + + + +

Polygon coming soon

+
+ + + Legacy Tezos Data + +
+
+
+ ); + } +} + +export const FuturePage: any = compose(withRouter, withStyles({}))(Future); diff --git a/src/router/routes.tsx b/src/router/routes.tsx index 2badf3ea..72c4c82e 100644 --- a/src/router/routes.tsx +++ b/src/router/routes.tsx @@ -1,39 +1,35 @@ import { Route, Switch, Redirect, useLocation } from 'react-router-dom'; import { ArronaxApp } from '../containers/App'; -import {HomePage} from '../containers/Homepage'; +import { FuturePage } from '../containers/Future'; export const defaultPath = '/tezos/mainnet/blocks'; export const reQuery = /^\?e=\w+(|%20)\w+\/\w+&q=\w+/; const QuerySupport = () => { - const location = useLocation(); + const location = useLocation(); - if (reQuery.test(location.search)) { - return ; - } + if (reQuery.test(location.search)) { + return ; + } - return ; + return ; }; const routes = () => { - const routes = [ - '/:platform/:network/:entity/:id', - '/:platform/:network/:entity/query/:id', - '/:platform/:network/:entity', - ]; - - return ( - - - - - - - - - - ); + const routes = ['/:platform/:network/:entity/:id', '/:platform/:network/:entity/query/:id', '/:platform/:network/:entity']; + + return ( + + + + + + + + + + ); }; export default routes;