From 7da5e912c0b91d3855aea1cce63b5669c3f55195 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Fri, 17 Dec 2021 08:16:02 +0200 Subject: [PATCH] Start page UI initial --- .../to/$organization.$tournament/start.tsx | 56 +++++++++++++------ 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/app/routes/to/$organization.$tournament/start.tsx b/app/routes/to/$organization.$tournament/start.tsx index 2de36b922..cb24ff179 100644 --- a/app/routes/to/$organization.$tournament/start.tsx +++ b/app/routes/to/$organization.$tournament/start.tsx @@ -1,7 +1,18 @@ import { useMatches } from "remix"; +import type { LinksFunction } from "remix"; import { useTournamentRounds } from "~/hooks/useTournamentRounds"; import type { UseTournamentRoundsState } from "~/hooks/useTournamentRounds/types"; import type { FindTournamentByNameForUrlI } from "~/services/tournament"; +import startBracketTabStylesUrl from "~/styles/tournament-start.css"; + +// 2) can change best of -> regens maps +// 3) can regen maps via button +// 4) can change any invidual map via dropdown (no regen) +// 5) Blackbelly TC repeats Losers Round 3 and 4 -> add test & fix? (use real maps as test data) + +export const links: LinksFunction = () => { + return [{ rel: "stylesheet", href: startBracketTabStylesUrl }]; +}; // TODO: handle warning if check-in has not concluded export default function StartBracketTab() { @@ -15,7 +26,7 @@ export default function StartBracketTab() { }); return ( -
{" "}
+ {stage.name}
+