diff --git a/data/administracja.json b/data/administracja.json
deleted file mode 100644
index a6b4c85..0000000
--- a/data/administracja.json
+++ /dev/null
@@ -1,58 +0,0 @@
-[
- {
- "name": "jamesen",
- "desc": "project pioneer.",
- "img": "https://i.imgur.com/CBRxP3Z.png",
- "devBadge": true,
- "profile": {
- "bigdesc": ["Tutaj będzie kiedyś opis profilu."],
- "links": [
- {
- "resname": "Website",
- "href": "https://manczak.net"
- }
- ]
- }
- },
- {
- "name": "Mollin",
- "desc": "porucznik essy.",
- "img": "https://i.imgur.com/64sHQjM.jpg",
- "profile": {
- "bigdesc": ["Tutaj będzie kiedyś opis profilu."]
- }
- },
- {
- "name": "Elephant",
- "desc": "osobnik demencyjny.",
- "img": "https://i.imgur.com/INQM1Cd.png",
- "profile": {
- "bigdesc": ["Tutaj będzie kiedyś opis profilu."]
- }
- },
- {
- "name": "Dzioba",
- "desc": "backend bastard.",
- "img": "https://i.imgur.com/0gUirZH.png",
- "devBadge": true,
- "profile": {
- "bigdesc": ["Tutaj będzie kiedyś opis profilu."]
- }
- },
- {
- "name": "KuOlek",
- "desc": "duch. (bo go nie ma)",
- "img": "https://i.imgur.com/SCTXTtz.png",
- "profile": {
- "bigdesc": ["Tutaj będzie kiedyś opis profilu."]
- }
- },
- {
- "name": "Bavil Gravlax",
- "desc": "śpiący rękawek.",
- "img": "https://i.imgur.com/6bxpBgK.png",
- "profile": {
- "bigdesc": ["Tutaj będzie kiedyś opis profilu."]
- }
- }
-]
diff --git a/data/links.json b/data/links.json
index ccb77c2..3739a8f 100644
--- a/data/links.json
+++ b/data/links.json
@@ -29,7 +29,7 @@
},
{
"href": "/o-gractwie#sklad-administracji",
- "hrefalias": ["/profile"]
+ "hrefalias": ["/profil"]
},
{
"name": "Kod Źródłowy",
diff --git a/pages/404.tsx b/pages/404.tsx
index 4b89920..a8698f3 100644
--- a/pages/404.tsx
+++ b/pages/404.tsx
@@ -1,9 +1,13 @@
import { SEO } from "../components/SEO";
import { useRouter } from "next/router";
-import Link from "next/link";
+import { useEffect, useState } from "react";
const PageError404 = () => {
const router = useRouter();
+ const [badPath, setBadPath] = useState("");
+ useEffect(() => {
+ setBadPath(router.asPath);
+ }, [router.asPath]);
return (
<>
{person.Desc}
+{el ||
}
+ Sprawdź pisownię: + + {`/profile/${profname}`} + + nie jest poprawnym lokatorem profilu. +
+{person.desc}
-{el ||
}
- Sprawdź pisownię: - - {`/profile/${profname}`} - - nie jest poprawnym lokatorem profilu. -
-