Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(NotFound): add NotFound container (404 error)
Browse files Browse the repository at this point in the history
feat(NotFound): add NotFound container (404 error)
  • Loading branch information
Metnew committed Nov 3, 2017
1 parent 57bb4c3 commit 2070c0a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/common/containers/NotFound/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// @flow
import React from 'react'
import {Header, Icon} from 'semantic-ui-react'
import {Link} from 'react-router-dom'
import {NotFoundLayout} from './style'
type Props = any

const NotFound = (props: Props) => {
return (
<NotFoundLayout>
<Header as="h2" icon textAlign="center">
<Icon name="users" circular />
<Header.Content>404</Header.Content>
<Header.Subheader>
<Link to="/">Dashboard lives here</Link>
</Header.Subheader>
</Header>
</NotFoundLayout>
)
}

export default NotFound
7 changes: 7 additions & 0 deletions src/common/containers/NotFound/style.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styled from 'styled-components'

export const NotFoundLayout = styled.div`
display: flex;
height: 100%;
align-items: center;
`

0 comments on commit 2070c0a

Please sign in to comment.