-
Notifications
You must be signed in to change notification settings - Fork 213
/
Copy pathNotFound.tsx
65 lines (61 loc) · 1.64 KB
/
NotFound.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import EthDiamondPlain from '../static/eth-diamond-plain.svg';
import { Text } from '../components/Text';
import { Link } from '../components/Link';
const RainbowBackground = styled.div`
background-image: ${p =>
`radial-gradient(circle at 100% -80%, ${p.theme.rainbowLight})`};
min-height: 100vh;
`;
const LogoContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
`;
const EthLogo = styled.img`
height: 100px;
`;
const LogoText = styled(Text)`
font-weight: bold;
align-items: center;
`;
const Content = styled.div`
display: flex;
justify-content: center;
flex-direction: column;
width: 400px;
height: 400px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
/*this to solve "the content will not be cut when the window is smaller than the content": */
max-width: 100%;
max-height: 100%;
overflow: auto;
`;
export const NotFoundPage = (): JSX.Element => {
return (
<RainbowBackground>
<Content>
<LogoContainer>
<EthLogo src={EthDiamondPlain} />
<LogoText className="mt20" center size="large">
Ethereum Staking Launchpad
</LogoText>
</LogoContainer>
<Text center className="mt20">
<FormattedMessage defaultMessage="Sorry, this page does not exist." />
<Link primary className="mt20" to="/">
{' '}
<FormattedMessage defaultMessage="Launchpad home" />
</Link>
</Text>
</Content>
</RainbowBackground>
);
};