-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(404-page): upgrade 404 page animations
upgrade TitleWithDivider to use all available props - no breaking changes
- Loading branch information
1 parent
7a36203
commit d739cba
Showing
2 changed files
with
25 additions
and
15 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
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 |
---|---|---|
@@ -1,21 +1,31 @@ | ||
import TitleWithDivider from '@components/HoC/TitleWithDivider' | ||
import { PageAnimation } from '@components/UI' | ||
import * as MUI from '@material-ui/core' | ||
import { lpar } from '@util/characters' | ||
import { PageProps } from 'PageProps' | ||
|
||
const Page404: React.FC<PageProps> = () => ( | ||
<PageAnimation layoutID="layout"> | ||
<MUI.Typography variant="h1" color="primary" gutterBottom align="center"> | ||
404 - Page Not Found :{lpar} | ||
</MUI.Typography> | ||
<> | ||
<TitleWithDivider | ||
align="center" | ||
variant="h1" | ||
text={` | ||
404 - Page Not Found :${lpar}`} | ||
/> | ||
{/* TODO: Make this a Framer animation to showcase and make errors more fun */} | ||
<MUI.Typography variant="h2" color="secondary" gutterBottom align="center"> | ||
Redirecting in 10 seconds... | ||
</MUI.Typography> | ||
<MUI.Button fullWidth size="large"> | ||
Go to front page? | ||
</MUI.Button> | ||
</PageAnimation> | ||
<PageAnimation layoutID="layout"> | ||
<MUI.Typography | ||
variant="h2" | ||
color="secondary" | ||
gutterBottom | ||
align="center"> | ||
Redirecting in 10 seconds... | ||
</MUI.Typography> | ||
<MUI.Button fullWidth size="large"> | ||
Go to front page? | ||
</MUI.Button> | ||
</PageAnimation> | ||
</> | ||
) | ||
|
||
export default Page404 |