From f39e63cf6b95829f7446884b750e76e1303a6a31 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Tue, 27 Dec 2022 20:13:56 +0100 Subject: [PATCH] geneza gractwa & api persons of note preparation --- data/links.json | 4 ++ pages/o-gractwie.tsx | 112 +++++++++++++++++++++++++---------- styles/globals.scss | 3 + styles/oGractwie.module.scss | 4 +- 4 files changed, 92 insertions(+), 31 deletions(-) diff --git a/data/links.json b/data/links.json index 3739a8f..65906fb 100644 --- a/data/links.json +++ b/data/links.json @@ -31,6 +31,10 @@ "href": "/o-gractwie#sklad-administracji", "hrefalias": ["/profil"] }, + { + "href": "https://youtu.be/NNv2RHR62Rs", + "hrefalias": ["/pgtf-theme"] + }, { "name": "Kod Źródłowy", "href": "https://github.com/gractwo/gractwo-web", diff --git a/pages/o-gractwie.tsx b/pages/o-gractwie.tsx index 55dde0f..1d16178 100644 --- a/pages/o-gractwie.tsx +++ b/pages/o-gractwie.tsx @@ -8,14 +8,15 @@ import links from "../data/links.json"; import { useEffect, useState } from "react"; const PageInfo = () => { - const [adminList, setAdminList] = useState([]); + const [personsList, setPersonsList] = useState([]); type apiResType = { Id: string; Name: string; - Desc: string; - Img: string; - DevBadge: string; - AssignedUser: string; + Desc?: string; + Img?: string; + IsAdmin?: boolean; + DevBadge?: boolean; + AssignedUser?: string; }; useEffect(() => { fetch("https://gractwo.pl/api/v1/admincards") @@ -23,7 +24,7 @@ const PageInfo = () => { return res.json(); }) .then((data) => { - setAdminList(data); + setPersonsList(data); }) .catch((err) => { console.log(err); @@ -66,35 +67,86 @@ const PageInfo = () => { +
+

geneza gractwa

+

+ Gractwo zostało założone w 2020 roku w odpowiedzi na{" "} + rozłam / przewrót władzy w PGTF + {". "}Serwer discordowy PGTF, pozostający nadal pod kontrolą naszej + administracji został przeniesiony w stan przejściowy do czasu podjęcia + decyzji o powstaniu Gractwa. W pierwszych dniach została utworzona + grupa facebookowa i strona internetowa. Aktywność na grupie + facebookowej nigdy nie rozwinęła się wystarczająco by przekształcić + się w pełnoprawną społeczność, ale serwer discord cały czas + funkcjonuje jako nasze małe, ciasne ale własne miejsce spotkań. +

+

skład administracji

- {adminList.map((el: apiResType) => { - return ( - -
- {`zdjęcie -
-

{el.Name}

-

{el.Desc || "brak opisu."}

- {el.DevBadge ? ( - DEV - ) : ( - "" - )} -
-
- - ); - })} + {personsList + .filter((el: apiResType) => { + return !el.IsAdmin; + }) + .map((el: apiResType) => { + return ( + +
+ {`zdjęcie +
+

{el.Name}

+

{el.Desc || "brak opisu."}

+ {el.DevBadge ? ( + DEV + ) : ( + "" + )} +
+
+ + ); + })}
+ {/*
+

osoby godne uwagi

+
+ {personsList + .filter((el: apiResType) => { + return !el.IsAdmin; + }) + .map((el: apiResType) => { + return ( + +
+ {`zdjęcia +
+

{el.Name}

+

{el.Desc || "brak opisu."}

+ {el.DevBadge ? ( + DEV + ) : ( + "" + )} +
+
+ + ); + })} +
+
*/}

linki i przekierowania

diff --git a/styles/globals.scss b/styles/globals.scss index bfaa49b..37d1a5b 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -39,6 +39,9 @@ main { margin: 0 auto; padding: 1rem; } +a { + color: rgb(251, 99, 107); +} .chips { display: flex; diff --git a/styles/oGractwie.module.scss b/styles/oGractwie.module.scss index 6d9e974..3930004 100644 --- a/styles/oGractwie.module.scss +++ b/styles/oGractwie.module.scss @@ -44,7 +44,9 @@ display: flex; flex-direction: row; flex-wrap: wrap; - justify-content: center; + @media screen and (max-width: 800px) { + justify-content: center; + } margin-top: 1rem; gap: 1.5rem; a {