aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx
blob: ae882951b84c6b9f40ac90d3e971624df6b76709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { PlayerProfile } from "../../types/PlayerProfile";
import PlayerNameAndIcon from "../PlayerNameAndIcon";

type Props = {
	gameDisplayName: string;
	playerProfileA: PlayerProfile | null;
	playerProfileB: PlayerProfile | null;
};

export default function GolfWatchAppWaiting1v1({
	gameDisplayName,
	playerProfileA,
	playerProfileB,
}: Props) {
	return (
		<div className="min-h-screen bg-gray-100 flex flex-col font-bold text-center">
			<div className="text-white bg-sky-600 p-10">
				<div className="text-4xl">{gameDisplayName}</div>
			</div>
			<div className="grow grid grid-cols-3 gap-10 mx-auto text-black">
				{playerProfileA ? (
					<PlayerNameAndIcon profile={playerProfileA} />
				) : (
					<div></div>
				)}
				<div className="text-8xl my-auto">vs.</div>
				{playerProfileB ? (
					<PlayerNameAndIcon profile={playerProfileB} />
				) : (
					<div></div>
				)}
			</div>
		</div>
	);
}