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-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={{
|
|
|
|
|
marginTop: "25px",
|
|
|
|
|
textAlign: "center",
|
|
|
|
|
fontSize: "11px",
|
|
|
|
|
marginBottom: "1em",
|
|
|
|
|
}}>
|
|
|
|
|
v.0.1.0
|
|
|
|
|
<br />
|
|
|
|
|
Plebchan is free and open-source software distributed under GPL-2.0 license.
|
|
|
|
|
</div>
|
2023-04-21 10:47:39 +02:00
|
|
|
</Container>
|
|
|
|
|
</>
|
2023-03-06 18:38:33 +01:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default NotFound;
|