diff --git a/src/app/[locale]/turniirid/page.tsx b/src/app/[locale]/turniirid/page.tsx index 44b88ae..3de8f3e 100644 --- a/src/app/[locale]/turniirid/page.tsx +++ b/src/app/[locale]/turniirid/page.tsx @@ -4,14 +4,77 @@ import Image from "next/image"; import { getTranslations, setRequestLocale } from "next-intl/server"; export default async function Tourney({ - params: { locale }, + params, }: { - params: { locale: string }; + params: Promise<{ 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`; + const miniTournaments: { + name: string; + prize: string; + image: string; + objectPosition?: string; + }[] = [ + { + name: "Tekken 8", + prize: "350€", + image: "/messiala/tekken8.jpg", + objectPosition: "object-center", + }, + { + name: "WRC", + prize: "350€", + image: "/messiala/wrc.jpg", + objectPosition: "object-center", + }, + { + name: "Street Fighter 6", + prize: "200€", + image: "/messiala/street_fighter.jpg", + objectPosition: "object-right", + }, + { + name: "Gran Turismo", + prize: "200€", + image: "/messiala/gran_turismo.jpg", + objectPosition: "object-center", + }, + { + name: "FC 26", + prize: "100€", + image: "/messiala/fc26.jpg", + objectPosition: "object-center", + }, + { + name: "Dwarf Escape", + prize: "50€", + image: "/messiala/dwarf_escape.png", + objectPosition: "object-center", + }, + { + name: "Buckshot Roulette", + prize: "Merch", + image: "/messiala/buckshot_tournament.png", + objectPosition: "object-center", + }, + { + name: "Granblue Fantasy: Versus Rising", + prize: "50€", + image: "/messiala/grandblue_fantasy.jpg", + objectPosition: "object-top", + }, + { + name: "Super Smash Bros. Ultimate", + prize: "50€", + image: "/messiala/super_smash_bros.jpg", + objectPosition: "object-top", + }, + ]; + return (

-

{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 turniiri logo
@@ -77,23 +147,33 @@ export default async function Tourney({
+ {/* Outside div needs to remain so that overflow won't occur*/} League of Legends turniiri logo
-

{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")} +


{/* Mini-turniirid */} -
-
-
-

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

-

+

+ - - {/* 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} -

+ {miniTournaments.map((tournament) => ( +
+
+ {tournament.name} +
+
+

{tournament.name} - {tournament.prize}

+
))}
-
-
+
+
); -} +} \ No newline at end of file