From f8596c37124f00143804142c329f63326c57bae7 Mon Sep 17 00:00:00 2001 From: Zoriot Date: Sat, 16 May 2026 21:47:33 +0200 Subject: [PATCH] =?UTF-8?q?feat(frontend/team):=20=E2=9C=A8=20Add=20"View?= =?UTF-8?q?=20teams=20on=20the=20map"=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/frontend/messages/en.json | 1 + apps/frontend/src/app/[locale]/teams/page.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/frontend/messages/en.json b/apps/frontend/messages/en.json index 75cdaee4..150a2a5e 100644 --- a/apps/frontend/messages/en.json +++ b/apps/frontend/messages/en.json @@ -124,6 +124,7 @@ "BuildTheEarth is divided into subteams, which build specific countries or areas of the world.", "Each Team has its own Minecraft server, where you can join and start building." ], + "viewTeamOnMap": "Explore Teams on Map", "tooltip": { "location": "A list of countries this team builds in", "members": "Number of members in this team" diff --git a/apps/frontend/src/app/[locale]/teams/page.tsx b/apps/frontend/src/app/[locale]/teams/page.tsx index d24b86f3..c8bfe181 100644 --- a/apps/frontend/src/app/[locale]/teams/page.tsx +++ b/apps/frontend/src/app/[locale]/teams/page.tsx @@ -5,7 +5,7 @@ import { Link } from '@/i18n/navigation'; import { getCountryNames } from '@/util/countries'; import prisma from '@/util/db'; import { getLanguageAlternates } from '@/util/seo'; -import { Avatar, Group, SimpleGrid, Stack, Text, Tooltip } from '@mantine/core'; +import { Avatar, Button, Group, SimpleGrid, Stack, Text, Tooltip } from '@mantine/core'; import { IconPin, IconUsers, IconWorld } from '@tabler/icons-react'; import { Metadata } from 'next'; import { Locale } from 'next-intl'; @@ -65,7 +65,12 @@ export default async function Page({
{t('description.1')} - + + + + {buildTeams .filter((element) => {