Files
5chan/src/components/views/NotFound.jsx
T

60 lines
1.6 KiB
React
Raw Normal View History

2023-03-17 17:49:30 +01:00
import React, { useEffect } from 'react';
2023-04-21 10:47:39 +02:00
import { Helmet } from 'react-helmet-async';
2023-04-08 13:27:17 +02:00
import useGeneralStore from '../../hooks/stores/useGeneralStore';
2023-03-06 18:38:33 +01:00
import { Link } from "react-router-dom";
2023-04-09 08:37:29 +02:00
import { Container, Header, Logo, Page, Boards, BoardsTitle } from '../styled/Home.styled';
2023-04-24 20:00:11 +00:00
import packageJson from '../../../package.json'
const {version} = packageJson
2023-03-06 18:38:33 +01:00
2023-03-17 17:49:30 +01:00
const NotFound = ({ setBodyStyle }) => {
2023-04-08 13:27:17 +02:00
const { setSelectedStyle } = useGeneralStore(state => state);
2023-03-17 17:49:30 +01:00
useEffect(() => {
setBodyStyle({
background: "#ffe url(/assets/fade.png) top repeat-x",
color: "maroon",
fontFamily: "Helvetica, Arial, sans-serif"
});
setSelectedStyle("Yotsuba");
}, [setBodyStyle, setSelectedStyle]);
2023-03-06 18:38:33 +01:00
return (
2023-04-21 10:47:39 +02:00
<>
<Helmet>
<title>plebchan - 404 Not Found</title>
</Helmet>
<Container>
<Header>
<Logo>
<Link to="/">
<img alt="plebchan" src="/assets/logo/logo-transparent.png" />
</Link>
</Logo>
</Header>
<Page>
<Boards>
<BoardsTitle>
<h2 style={{textAlign: 'center'}}>404 Not Found</h2>
</BoardsTitle>
<img src="/assets/plebchan-husbando.jpg" alt="plebchan" style={{
display: "block",
margin: "auto",
padding: "15px",
width: "50%"
}}></img>
</Boards>
</Page>
2023-04-22 13:11:42 +02:00
<div style={{
textAlign: "center",
fontSize: "11px",
2023-04-23 11:57:13 +02:00
marginTop: "2em",
2023-04-22 13:11:42 +02:00
}}>
2023-04-24 20:00:11 +00:00
plebchan v{version}. GPL-2.0
2023-04-22 13:11:42 +02:00
</div>
2023-04-21 10:47:39 +02:00
</Container>
</>
2023-03-06 18:38:33 +01:00
);
}
export default NotFound;