mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
remove unused old 404 page
This commit is contained in:
parent
7a7b7a4bf9
commit
7f411713f4
4 changed files with 0 additions and 64 deletions
|
@ -12,10 +12,6 @@ export const URLS = {
|
|||
EDITOR: '/examples/edit',
|
||||
IMAGE: '/examples/image',
|
||||
},
|
||||
ERRORS: {
|
||||
NOT_FOUND: '/lost',
|
||||
BACKEND_DOWN: '/oopsie',
|
||||
},
|
||||
NODE_URL: (id: INode['id'] | string) => `/post${id}`,
|
||||
PROFILE_PAGE: (username: string) => `/profile/${username}`,
|
||||
SETTINGS: {
|
||||
|
|
|
@ -3,7 +3,6 @@ import { FC } from 'react';
|
|||
import { Redirect, Route, Switch, useLocation } from 'react-router';
|
||||
|
||||
import { URLS } from '~/constants/urls';
|
||||
import { ErrorNotFound } from '~/containers/pages/ErrorNotFound';
|
||||
import { useAuth } from '~/hooks/auth/useAuth';
|
||||
import { ProfileLayout } from '~/layouts/ProfileLayout';
|
||||
import FlowPage from '~/pages';
|
||||
|
@ -21,7 +20,6 @@ const MainRouter: FC<IProps> = () => {
|
|||
<Switch location={location}>
|
||||
<Route path={URLS.NODE_URL(':id')} component={NodePage} />
|
||||
<Route path={URLS.BORIS} component={BorisPage} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfileLayout} />
|
||||
|
||||
{isUser && <Route path={URLS.LAB} component={LabPage} />}
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
import { VFC } from 'react';
|
||||
|
||||
import { createPortal } from 'react-dom';
|
||||
|
||||
import { GodRays } from '~/components/main/GodRays';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
const ErrorNotFound: VFC = () =>
|
||||
createPortal(
|
||||
<div className={styles.wrap}>
|
||||
<GodRays />
|
||||
<h2 className={styles.sign}>Страница утеряна</h2>
|
||||
<div>Нам очень жаль</div>
|
||||
</div>,
|
||||
document.body,
|
||||
);
|
||||
|
||||
export { ErrorNotFound };
|
|
@ -1,39 +0,0 @@
|
|||
@import "src/styles/variables";
|
||||
|
||||
.wrap {
|
||||
@include outer_shadow();
|
||||
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
justify-content: flex-start;
|
||||
background: $content_bg;
|
||||
border-radius: $radius;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding-top: 25vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
background: url('../../../sprites/lost.svg') 50% 50% no-repeat;
|
||||
background-size: cover;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
|
||||
h2 {
|
||||
text-transform: uppercase;
|
||||
margin-bottom: $gap;
|
||||
font-size: 72px;
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
h2 {
|
||||
font-size: 48px;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue