Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | import { FC } from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; const StyledBody = styled.div` display: flex; justify-content: center; align-items: center; height: 100lvh; `; const StyledBox = styled.div``; const StyledStatusCode = styled.div` font-size: 4rem; text-align: center; `; const StyledMessage = styled.h1` font-size: 2.6rem; text-align: center; `; const StyledBackLink = styled.div` width: fit-content; margin: 50px auto 0 auto; padding: 5px 20px; background-color: #caad63; border: none; font-size: 1.6rem; cursor: pointer; `; const PageNotFoundComponent: FC = () => { return ( <StyledBody> <StyledBox> <StyledStatusCode>404</StyledStatusCode> <StyledMessage>Page Not Found</StyledMessage> <StyledBackLink> <Link to="/" style={{ color: 'inherit' }}> Homeに戻る </Link> </StyledBackLink> </StyledBox> </StyledBody> ); }; export default PageNotFoundComponent; |