@@ -1,10 +1,51 @@
|
|||||||
import { SEO } from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
const PageError404 = () => {
|
const PageError404 = () => {
|
||||||
|
const router = useRouter();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SEO title="404" />
|
<SEO title="404" />
|
||||||
<main>Error 404 - nie znaleziono takiego URL.</main>
|
<div
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
userSelect: "none",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{ textAlign: "center", position: "relative", width: "320px" }}
|
||||||
|
>
|
||||||
|
<h1 style={{ fontSize: "8rem", zIndex: -1 }}>404</h1>
|
||||||
|
<p
|
||||||
|
style={{
|
||||||
|
position: "absolute",
|
||||||
|
fontSize: "1.2rem",
|
||||||
|
left: "174px",
|
||||||
|
bottom: "36px",
|
||||||
|
background: "var(--black0)",
|
||||||
|
padding: "0 4px",
|
||||||
|
borderTopLeftRadius: "4px",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
ERROR
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p style={{ textAlign: "center", lineHeight: "1.5rem" }}>
|
||||||
|
<span
|
||||||
|
style={{
|
||||||
|
padding: "4px",
|
||||||
|
background: "var(--black1)",
|
||||||
|
borderRadius: "4px",
|
||||||
|
boxShadow: "var(--shadow0)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{useRouter().asPath}
|
||||||
|
</span>{" "}
|
||||||
|
nie jest poprawnym adresem.
|
||||||
|
</p>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user