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.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")} +
+
{t("tournaments.lol.timing")}
-{t("tournaments.lol.description1")}
++ {t("tournaments.lol.description1")} +
{t("tournaments.lol.description2")}
++ {t("tournaments.lol.description2")} +
+
{t("tournaments.mini.timing")}
-{t("tournaments.mini.description1")}
++ {t("tournaments.mini.description1")} +
{t("tournaments.mini.description2")}
++ {t("tournaments.mini.description2")} +
- {p.name} -
+ {miniTournaments.map((tournament) => ( +{tournament.name} - {tournament.prize}
+