Improve MineGeo UI and application flows
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 2m37s

This commit is contained in:
2026-10-18 11:44:04 +05:00
parent ad73132f15
commit a7085e4e80
50 changed files with 4790 additions and 703 deletions

View File

@@ -0,0 +1,24 @@
import { Header, Footer } from "@/components/Shell";
import { TournamentLobby } from "@/components/TournamentLobby";
import { user } from "@/lib/supabase";
import { notFound } from "next/navigation";
import { z } from "zod";
export default async function TournamentPage({
params,
}: {
params: Promise<{ id: string }>;
}) {
const { id } = await params;
if (!z.string().uuid().safeParse(id).success) notFound();
const account = await user();
return (
<>
<Header />
<main id="main-content">
<TournamentLobby id={id} signedIn={!!account} />
</main>
<Footer />
</>
);
}

16
app/tournaments/page.tsx Normal file
View File

@@ -0,0 +1,16 @@
import { Header, Footer } from "@/components/Shell";
import { TournamentIndex } from "@/components/TournamentLobby";
import { user } from "@/lib/supabase";
export default async function TournamentsPage() {
const account = await user();
return (
<>
<Header />
<main id="main-content">
<TournamentIndex signedIn={!!account} />
</main>
<Footer />
</>
);
}