changed 404 page to functional component
This commit is contained in:
parent
84c2e082a6
commit
be04d04039
1 changed files with 26 additions and 28 deletions
|
@ -5,9 +5,8 @@ import { Helmet } from "react-helmet-async"
|
|||
import theming from "../theming"
|
||||
|
||||
const StyledNotFound = styled.div`
|
||||
margin: auto;
|
||||
margin-top: 2rem;
|
||||
text-align: center;
|
||||
|
||||
color: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
light: "#111111",
|
||||
|
@ -16,33 +15,32 @@ const StyledNotFound = styled.div`
|
|||
`
|
||||
|
||||
const Styled404 = styled.h1`
|
||||
font-size: 3rem;
|
||||
font-size: 5rem;
|
||||
`
|
||||
|
||||
export default class NotFound extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<title>pomp | 404</title>
|
||||
const NotFound = () => {
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<title>pomp | 404</title>
|
||||
|
||||
<meta property="og:title" content="Page Not Found" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="http://developomp.com" />
|
||||
<meta
|
||||
property="og:image"
|
||||
content="http://developomp.com/icon/icon.svg"
|
||||
/>
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Page does not exist"
|
||||
/>
|
||||
</Helmet>
|
||||
<StyledNotFound className="card main-content">
|
||||
<Styled404>404</Styled404>
|
||||
the page you are looking for does not exist. :(
|
||||
</StyledNotFound>
|
||||
</>
|
||||
)
|
||||
}
|
||||
<meta property="og:title" content="Page Not Found" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="http://developomp.com" />
|
||||
<meta
|
||||
property="og:image"
|
||||
content="http://developomp.com/icon/icon.svg"
|
||||
/>
|
||||
<meta property="og:description" content="Page does not exist" />
|
||||
</Helmet>
|
||||
|
||||
<StyledNotFound className="card main-content">
|
||||
<Styled404>404</Styled404>
|
||||
<br />
|
||||
Page was not found :(
|
||||
</StyledNotFound>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default NotFound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue