From 4cb360e59cec319dd37b5c3d57c8a5096a75eb66 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Sat, 7 Jan 2023 12:34:59 +0100 Subject: [PATCH] indexing seo changes --- components/SEO.tsx | 22 ++++++++++++--- pages/404.tsx | 2 +- pages/cytaty.tsx | 3 +- pages/ja/index.tsx | 2 +- pages/ja/ustawienia.tsx | 1 + pages/profil/[profname]/index.tsx | 46 ++++++++----------------------- pages/rankingi.tsx | 3 +- 7 files changed, 37 insertions(+), 42 deletions(-) diff --git a/components/SEO.tsx b/components/SEO.tsx index efad1f4..f506096 100644 --- a/components/SEO.tsx +++ b/components/SEO.tsx @@ -4,9 +4,17 @@ type seoprops = { title?: string; noatsign?: boolean; // simply add "noatsign" as property to element description?: string; + picture?: string; + dontindex?: boolean; }; -const SEO = ({ title, noatsign, description }: seoprops) => { +const SEO = ({ + title, + noatsign, + description, + picture, + dontindex, +}: seoprops) => { const titleEnhanced = title ? `${title}${noatsign ? "" : " @ gractwo.pl"}` : "Gractwo!"; @@ -25,15 +33,21 @@ const SEO = ({ title, noatsign, description }: seoprops) => { - + - - + + ); }; diff --git a/pages/404.tsx b/pages/404.tsx index a8698f3..262b933 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -10,7 +10,7 @@ const PageError404 = () => { }, [router.asPath]); return ( <> - +
{ + const SEOdesc = `Strona w trakcie budowy - zbiorowisko cytatów użytkowników gractwa!`; return ( <> - +
Miejsce na stronkę od cytatów.
); diff --git a/pages/ja/index.tsx b/pages/ja/index.tsx index 00752a4..88632a5 100644 --- a/pages/ja/index.tsx +++ b/pages/ja/index.tsx @@ -35,6 +35,7 @@ const PageMe = () => { return ( <> + {isLoading && (

Ładujemy dane dla Ciebie...

@@ -51,7 +52,6 @@ const PageMe = () => { )} {!isLoading && !error && user && (
- { return ( <> + {isLoading && ( <>
diff --git a/pages/profil/[profname]/index.tsx b/pages/profil/[profname]/index.tsx index 5d0309e..224607f 100644 --- a/pages/profil/[profname]/index.tsx +++ b/pages/profil/[profname]/index.tsx @@ -31,7 +31,12 @@ const ProfilePage = () => { }); }, []); if (loading) { - return
Fetching data...
; + return ( + <> + +
Fetching data...
+ + ); } else { if ( persons @@ -45,38 +50,11 @@ const ProfilePage = () => { })[0]; return ( <> - - {/*
-
- {`${person.Name} -
-

{person.Name}

-

{person.Desc}

-
-
*/} - {/* FOR LATER BIGDESC DATASET */} - {/* {person.profile?.bigdesc.map((el, index) => { - return

{el ||
}

; - })} */} - {/*
*/} +
{ } else { return (
- +

Sorki!{" :("}

Sprawdź pisownię: diff --git a/pages/rankingi.tsx b/pages/rankingi.tsx index 1b66419..b02ac9f 100644 --- a/pages/rankingi.tsx +++ b/pages/rankingi.tsx @@ -1,9 +1,10 @@ import { SEO } from "../components/SEO"; const PageRankingi = () => { + const SEOdesc = `Strona w trakcie budowy - rankingi wiadomości i danych wśród użytkowników gractwa!`; return ( <> - +

Miejsce na stronkę od rankingów.
);