-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docz-theme-default): add custom not found component
- Loading branch information
1 parent
455dcca
commit 1773fe1
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
packages/docz-theme-default/src/components/ui/NotFound.tsx
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,31 @@ | ||
import * as React from 'react' | ||
import styled from 'react-emotion' | ||
|
||
const Wrapper = styled('div')` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
width: 100%; | ||
height: 100%; | ||
` | ||
|
||
const Title = styled('h1')` | ||
margin: 0; | ||
font-size: 48px; | ||
color: ${p => p.theme.colors.primary}; | ||
` | ||
|
||
const Subtitle = styled('p')` | ||
margin: 0; | ||
font-size: 22px; | ||
` | ||
|
||
export const NotFound = () => ( | ||
<Wrapper> | ||
<Title>Page Not Found</Title> | ||
<Subtitle> | ||
Check if you haven't changed the document route or delete it! | ||
</Subtitle> | ||
</Wrapper> | ||
) |
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