geneza gractwa & api persons of note preparation
This commit is contained in:
@@ -31,6 +31,10 @@
|
|||||||
"href": "/o-gractwie#sklad-administracji",
|
"href": "/o-gractwie#sklad-administracji",
|
||||||
"hrefalias": ["/profil"]
|
"hrefalias": ["/profil"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"href": "https://youtu.be/NNv2RHR62Rs",
|
||||||
|
"hrefalias": ["/pgtf-theme"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Kod Źródłowy",
|
"name": "Kod Źródłowy",
|
||||||
"href": "https://github.com/gractwo/gractwo-web",
|
"href": "https://github.com/gractwo/gractwo-web",
|
||||||
|
|||||||
@@ -8,14 +8,15 @@ import links from "../data/links.json";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
const PageInfo = () => {
|
const PageInfo = () => {
|
||||||
const [adminList, setAdminList] = useState([]);
|
const [personsList, setPersonsList] = useState([]);
|
||||||
type apiResType = {
|
type apiResType = {
|
||||||
Id: string;
|
Id: string;
|
||||||
Name: string;
|
Name: string;
|
||||||
Desc: string;
|
Desc?: string;
|
||||||
Img: string;
|
Img?: string;
|
||||||
DevBadge: string;
|
IsAdmin?: boolean;
|
||||||
AssignedUser: string;
|
DevBadge?: boolean;
|
||||||
|
AssignedUser?: string;
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch("https://gractwo.pl/api/v1/admincards")
|
fetch("https://gractwo.pl/api/v1/admincards")
|
||||||
@@ -23,7 +24,7 @@ const PageInfo = () => {
|
|||||||
return res.json();
|
return res.json();
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
setAdminList(data);
|
setPersonsList(data);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
@@ -66,10 +67,28 @@ const PageInfo = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
<main id="geneza-gractwa">
|
||||||
|
<h2>geneza gractwa</h2>
|
||||||
|
<p style={{ textAlign: "justify" }}>
|
||||||
|
Gractwo zostało założone w 2020 roku w odpowiedzi na{" "}
|
||||||
|
<Link href="/pgtf-theme">rozłam / przewrót władzy w PGTF</Link>
|
||||||
|
{". "}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ń.
|
||||||
|
</p>
|
||||||
|
</main>
|
||||||
<main id="sklad-administracji">
|
<main id="sklad-administracji">
|
||||||
<h2>skład administracji</h2>
|
<h2>skład administracji</h2>
|
||||||
<div className={styles.persons}>
|
<div className={styles.persons}>
|
||||||
{adminList.map((el: apiResType) => {
|
{personsList
|
||||||
|
.filter((el: apiResType) => {
|
||||||
|
return !el.IsAdmin;
|
||||||
|
})
|
||||||
|
.map((el: apiResType) => {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
key={el.Id}
|
key={el.Id}
|
||||||
@@ -95,6 +114,39 @@ const PageInfo = () => {
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
{/* <main id="osoby-godne-uwagi">
|
||||||
|
<h2>osoby godne uwagi</h2>
|
||||||
|
<div className={styles.persons}>
|
||||||
|
{personsList
|
||||||
|
.filter((el: apiResType) => {
|
||||||
|
return !el.IsAdmin;
|
||||||
|
})
|
||||||
|
.map((el: apiResType) => {
|
||||||
|
return (
|
||||||
|
<Link
|
||||||
|
key={el.Id}
|
||||||
|
href={`/profil/${el.Name.replaceAll(
|
||||||
|
" ",
|
||||||
|
"-"
|
||||||
|
).toLocaleLowerCase()}`}
|
||||||
|
>
|
||||||
|
<article>
|
||||||
|
<img src={el.Img} alt={`zdjęcia profilowe ${el.Name}`} />
|
||||||
|
<div>
|
||||||
|
<h3>{el.Name}</h3>
|
||||||
|
<p>{el.Desc || "brak opisu."}</p>
|
||||||
|
{el.DevBadge ? (
|
||||||
|
<span className={styles.devBadge}>DEV</span>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</main> */}
|
||||||
<main id="linki">
|
<main id="linki">
|
||||||
<h2>linki i przekierowania</h2>
|
<h2>linki i przekierowania</h2>
|
||||||
<div className="chips">
|
<div className="chips">
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ main {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
a {
|
||||||
|
color: rgb(251, 99, 107);
|
||||||
|
}
|
||||||
|
|
||||||
.chips {
|
.chips {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -44,7 +44,9 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
}
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
a {
|
a {
|
||||||
|
|||||||
Reference in New Issue
Block a user