From be04d04039ee619715002e41c544e410f164758a Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 14 Dec 2021 21:15:04 +0900 Subject: [PATCH] changed 404 page to functional component --- source/src/pages/NotFound.tsx | 54 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/source/src/pages/NotFound.tsx b/source/src/pages/NotFound.tsx index 112344e..b56ff1e 100644 --- a/source/src/pages/NotFound.tsx +++ b/source/src/pages/NotFound.tsx @@ -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 ( - <> - - pomp | 404 +const NotFound = () => { + return ( + <> + + pomp | 404 - - - - - - - - 404 - the page you are looking for does not exist. :( - - - ) - } + + + + + + + + + 404 +
+ Page was not found :( +
+ + ) } + +export default NotFound