import React, { useEffect } from 'react'; import { Helmet } from 'react-helmet-async'; import { Link } from "react-router-dom"; import { Container, Header, Logo, Page, Boards, BoardsTitle } from '../styled/views/Home.styled'; import packageJson from '../../../package.json'; const {version} = packageJson; const commitRef = process?.env?.REACT_APP_COMMIT_REF ? ` ${process.env.REACT_APP_COMMIT_REF.slice(0, 7)}` : ''; const NotFound = () => { useEffect(() => { const yotsubaBodyStyle = { background: "#ffe url(assets/fade.png) top repeat-x", color: "maroon", fontFamily: "Arial, Helvetica, sans-serif" }; const originalBodyStyles = { background: document.body.style.background, color: document.body.style.color, fontFamily: document.body.style.fontFamily }; for (const [key, value] of Object.entries(yotsubaBodyStyle)) { document.body.style[key] = value; } return () => { for (const [key, value] of Object.entries(originalBodyStyles)) { document.body.style[key] = value; } }; }, []); return ( <> plebchan - 404 Not Found 404 Not Found plebchan v{version}{commitRef}. GPL-2.0 > ); } export default NotFound;