-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import tw, { styled } from 'twin.macro'; | ||
|
||
export const ErrorHeader = styled.h2` | ||
${tw`text-2xl font-semibold uppercase mb-8 mt-1`} | ||
`; | ||
|
||
export const ErrorStatusText = styled.h1<{ color?: string }>` | ||
${tw`text-orange-500 uppercase`} | ||
font-size: 145px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import tw from 'twin.macro'; | ||
import { Helmet } from 'react-helmet'; | ||
import { Container } from '~/components/ui/containers/Container'; | ||
import { Icon } from '~/components/ui/icons/Icon'; | ||
import React from 'react'; | ||
import { ErrorHeader, ErrorStatusText } from '~/components/ui/errors/ErrorPage'; | ||
import { Card } from '~/components/ui/containers/Card'; | ||
import { Link } from 'gatsby'; | ||
import { Button } from '~/components/ui/controls/Button'; | ||
|
||
const Root = tw.div` | ||
bg-gray-300 flex-grow py-10 | ||
`; | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<Root> | ||
<Helmet defer={false} title={'Not Found'} /> | ||
<Container className={'items-center'}> | ||
<Card tw={'max-w-4xl sm:w-2/3 w-full p-10'}> | ||
<div | ||
tw={ | ||
'flex flex-col items-center justify-center transform -translate-y-5' | ||
} | ||
> | ||
<ErrorStatusText>404</ErrorStatusText> | ||
<ErrorHeader>Page Not Found</ErrorHeader> | ||
<Link to={'/'}> | ||
<Button> | ||
<Icon name='arrow-narrow-left' size={16} className={'mr-2'} /> | ||
<span>Home Page</span> | ||
</Button> | ||
</Link> | ||
</div> | ||
</Card> | ||
</Container> | ||
</Root> | ||
); | ||
} |