diff --git a/assets/data/team.json b/assets/data/team.json index 23fa5786..bd52305f 100644 --- a/assets/data/team.json +++ b/assets/data/team.json @@ -70,7 +70,14 @@ "name": "Spottedleaf", "avatar": "https://avatars.githubusercontent.com/u/6100722?v=4", "discord": "spottedleaf", - "github": "Spottedleaf" + "github": "Spottedleaf", + "tags": [ + { + "name": "Folia", + "color": "#bf026b", + "description": "Maintains Folia" + } + ] } ] }, @@ -193,7 +200,14 @@ "name": "Ollie", "avatar": "https://avatars.githubusercontent.com/u/69084614?v=4", "discord": "ollieee_", - "github": "olijeffers0n" + "github": "olijeffers0n", + "tags": [ + { + "name": "Docs", + "color": "#029ffa", + "description": "Handles documentation for PaperMC projects" + } + ] } ] }, @@ -264,6 +278,7 @@ }, { "name": "stefvanschie", + "avatar": "https://avatars.githubusercontent.com/u/12550728?v=4", "discord": "stefvanschie", "github": "stefvanschie" }, diff --git a/src/components/layout/SoftwareHeader.tsx b/src/components/layout/SoftwareHeader.tsx index 64c34361..bad265bb 100644 --- a/src/components/layout/SoftwareHeader.tsx +++ b/src/components/layout/SoftwareHeader.tsx @@ -22,7 +22,7 @@ const SoftwareHeader = ({ description, github, }: SoftwareHeaderProps): ReactElement => ( -
+
diff --git a/src/pages/team.tsx b/src/pages/team.tsx index fd64165b..122a0f3e 100644 --- a/src/pages/team.tsx +++ b/src/pages/team.tsx @@ -1,7 +1,7 @@ import type { NextPage } from "next"; import Image from "next/image"; -import teams from "@/assets/data/team.json"; +import teamData from "@/assets/data/team.json"; import DiscordIcon from "@/assets/icons/fontawesome/discord-brands.svg"; import GitHubIcon from "@/assets/icons/fontawesome/github-brands.svg"; import Button from "@/components/input/Button"; @@ -10,8 +10,30 @@ import { useGitHubContributors } from "@/lib/service/github"; const HIDDEN_USERS = [1007849, 23557539, 49699333]; // md_5, EcoCityCraftCI, dependabot +interface Tag { + name: string; + color: string; + description?: string; +} + +interface Member { + name: string; + github?: string; + discord?: string; + avatar?: string; + tags?: Tag[]; +} + +interface Team { + id: string; + name: string; + description: string; + members: Member[]; +} + const Team: NextPage = () => { const { data: contributors } = useGitHubContributors(); + const teams: Team[] = teamData; return ( <> @@ -21,7 +43,7 @@ const Team: NextPage = () => { the game’s ecosystem with faster and more secure software." keywords={["papermc", "paper", "minecraft", "team"]} /> -
+

Meet our team @@ -61,7 +83,7 @@ const Team: NextPage = () => { className="border border-gray-300 dark:border-gray-700 rounded-md hover:shadow-md transition-shadow p-4" >
-
+
{member.avatar && ( {`${member.name}'s { )}
- {member.name} +
+ + {member.name} + + {member.tags?.map((tag) => ( + + {tag.name} + + ))} +
{member.github && (