From 85fb3626cd82d3563dbfb7f8dee42de0c40b0ac4 Mon Sep 17 00:00:00 2001 From: Rene Arumetsa Date: Mon, 29 Sep 2025 15:03:06 +0300 Subject: [PATCH] Add minitournaments, photos to be added later. --- src/app/[locale]/turniirid/page.tsx | 137 ++++++++++++++++------------ 1 file changed, 77 insertions(+), 60 deletions(-) diff --git a/src/app/[locale]/turniirid/page.tsx b/src/app/[locale]/turniirid/page.tsx index f8058e3..44b88ae 100644 --- a/src/app/[locale]/turniirid/page.tsx +++ b/src/app/[locale]/turniirid/page.tsx @@ -4,11 +4,10 @@ import Image from "next/image"; import { getTranslations, setRequestLocale } from "next-intl/server"; export default async function Tourney({ - params, + params: { locale }, }: { - params: Promise<{ locale: string }>; + params: { locale: string }; }) { - const { locale } = await params; setRequestLocale(locale); const t = await getTranslations({ locale }); const headingStyle = `text-3xl md:text-5xl lg:text-5xl ${vipnagorgialla.className} font-bold uppercase text-[#2A2C3F] dark:text-[#EEE5E5] -skew-x-2 md:-skew-x-5`; @@ -27,29 +26,17 @@ export default async function Tourney({
-

- {t("tournaments.cs2.title")} -

-

+

{t("tournaments.cs2.title")}

+

{t("tournaments.cs2.timing")}

-

- {t("tournaments.cs2.description1")} -

+

{t("tournaments.cs2.description1")}


-

- {t("tournaments.cs2.description2")} -

-

- {t("tournaments.cs2.description3")} -

+

{t("tournaments.cs2.description2")}

+

{t("tournaments.cs2.description3")}


-
+
- {/* Outside div needs to remain so that overflow won't occur*/} CS2 tournament
@@ -85,33 +77,23 @@ export default async function Tourney({
- {/* Outside div needs to remain so that overflow won't occur*/} LoL tournament
-

- {t("tournaments.lol.title")} -

-

+

{t("tournaments.lol.title")}

+

{t("tournaments.lol.timing")}

-

- {t("tournaments.lol.description1")} -

+

{t("tournaments.lol.description1")}


-

- {t("tournaments.lol.description2")} -

+

{t("tournaments.lol.description2")}


- {/* Outside div needs to remain so that overflow won't occur*/} mini tournaments
+ + {/* 3x3 grid */} +
+

+ {t("tournaments.mini.participants")} +

+
+ {[ + { name: "Tekken 8", img: "/images/players/player1.png" }, + { name: "WRC", img: "/images/players/player2.png" }, + { name: "Street Fighter 6", img: "/images/players/player3.png" }, + { name: "Gran Turismo", img: "/images/players/player4.png" }, + { name: "FC 26", img: "/images/players/player5.png" }, + { name: "Dwarf Escape", img: "/images/players/player6.png" }, + { name: "Buckshot Tournament", img: "/images/players/player7.png" }, + { name: "Grandblue fantasy", img: "/images/players/player8.png" }, + { name: "Super Smash Bros Ultimate", img: "/images/players/player9.png" }, + ].map((p, i) => ( +
{p.name} +

+ {p.name} +

+
+ ))} +
+
-
-
+
+
); }