Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 7 additions & 2 deletions apps/frontend/src/app/[locale]/teams/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -65,7 +65,12 @@ export default async function Page({
<br />
{t('description.1')}
</Text>
<QuerySearchInput paramName="q" my="xl" />
<Group my="xl" wrap="nowrap" align="flex-end">
<QuerySearchInput paramName="q" style={{ flex: 1 }} />
<Button component={Link} href="/map/teams">
{t('viewTeamOnMap')}
</Button>
</Group>
<SimpleGrid cols={2} spacing="xl" mb="xl">
{buildTeams
.filter((element) => {
Expand Down