bug fixes, new fonts, etc
This commit is contained in:
@@ -13,7 +13,7 @@ const Header = ({ tournament }: HeaderProps) => {
|
||||
<Flex h="20dvh" px='xl' w='100%' align='self-end' gap='md'>
|
||||
<Avatar contain name={tournament.name} radius={0} withBorder={false} size={150} src={`/api/files/tournaments/${tournament.id}/${tournament.logo}`} />
|
||||
<Flex align='center' justify='center' gap={4} pb={20} w='100%'>
|
||||
<Title ta='center' order={2}>{tournament.name}</Title>
|
||||
<Title ta='center' order={1}>{tournament.name}</Title>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</>
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
Group,
|
||||
UnstyledButton,
|
||||
Badge,
|
||||
Title,
|
||||
} from "@mantine/core";
|
||||
import { TournamentInfo } from "@/features/tournaments/types";
|
||||
import {
|
||||
@@ -57,7 +58,7 @@ export const TournamentCard = ({ tournament }: TournamentCardProps) => {
|
||||
<Group justify="space-between" align="center">
|
||||
<Group gap="md" align="center">
|
||||
<Avatar
|
||||
size={90}
|
||||
size={95}
|
||||
radius="sm"
|
||||
name={tournament.name}
|
||||
contain
|
||||
@@ -70,9 +71,9 @@ export const TournamentCard = ({ tournament }: TournamentCardProps) => {
|
||||
<TrophyIcon size={20} />
|
||||
</Avatar>
|
||||
<Stack gap="xs">
|
||||
<Text fw={600} size="lg" lineClamp={2}>
|
||||
<Title mb={-6} order={3} lineClamp={2}>
|
||||
{tournament.name}
|
||||
</Text>
|
||||
</Title>
|
||||
{(tournament.first_place || tournament.second_place || tournament.third_place) && (
|
||||
<Stack gap={6} >
|
||||
{tournament.first_place && (
|
||||
|
||||
@@ -15,8 +15,6 @@ const TeamSelectionView: React.FC<TeamSelectionViewProps> = React.memo(({
|
||||
const [selectedTeam, setSelectedTeam] = React.useState<ComboboxItem | null>(null);
|
||||
|
||||
const searchTeams = async (query: string): Promise<TypeaheadOption<ComboboxItem>[]> => {
|
||||
if (!query.trim()) return [];
|
||||
|
||||
const filtered = options.filter(option =>
|
||||
option.label.toLowerCase().includes(query.toLowerCase())
|
||||
);
|
||||
@@ -66,6 +64,7 @@ const TeamSelectionView: React.FC<TeamSelectionViewProps> = React.memo(({
|
||||
searchFn={searchTeams}
|
||||
renderOption={renderTeamOption}
|
||||
format={formatTeam}
|
||||
maxHeight={80}
|
||||
/>
|
||||
|
||||
<Button
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Suspense, useCallback, useMemo } from "react";
|
||||
import { Tournament } from "../../types";
|
||||
import { useAuth } from "@/contexts/auth-context";
|
||||
import { Box, Button, Card, Divider, Group, Stack, Text } from "@mantine/core";
|
||||
import { Box, Button, Card, Divider, Group, Stack, Text, Title } from "@mantine/core";
|
||||
import Countdown from "@/components/countdown";
|
||||
import ListLink from "@/components/list-link";
|
||||
import ListButton from "@/components/list-button";
|
||||
@@ -56,11 +56,11 @@ const UpcomingTournament: React.FC<{ tournament: Tournament }> = ({
|
||||
|
||||
<Card withBorder radius="lg" p="lg">
|
||||
<Stack gap="xs">
|
||||
<Group mb="sm" gap="xs" align="center">
|
||||
<Group gap="xs" align="center">
|
||||
<UsersIcon size={16} />
|
||||
<Text size="sm" fw={500}>
|
||||
<Title mt={4} order={5}>
|
||||
Enrollment
|
||||
</Text>
|
||||
</Title>
|
||||
{isEnrollmentOpen && (
|
||||
<Box ml="auto">
|
||||
<Countdown
|
||||
|
||||
Reference in New Issue
Block a user