From 13d0a32521d5bd1c564c1c72437aa7eee3153152 Mon Sep 17 00:00:00 2001 From: Rene Arumetsa Date: Fri, 1 May 2026 17:47:52 +0300 Subject: [PATCH] rename league_tournament.png to league_ticket.png --- ...eague_tournament.jpg => league_ticket.jpg} | Bin src/app/[locale]/piletid/page.tsx | 2 +- src/app/[locale]/turniirid/page.tsx | 301 ++++-------------- translations/en.json | 1 + translations/et.json | 1 + 5 files changed, 59 insertions(+), 246 deletions(-) rename public/images/landing/{league_tournament.jpg => league_ticket.jpg} (100%) diff --git a/public/images/landing/league_tournament.jpg b/public/images/landing/league_ticket.jpg similarity index 100% rename from public/images/landing/league_tournament.jpg rename to public/images/landing/league_ticket.jpg diff --git a/src/app/[locale]/piletid/page.tsx b/src/app/[locale]/piletid/page.tsx index b499c3c..2c3c596 100644 --- a/src/app/[locale]/piletid/page.tsx +++ b/src/app/[locale]/piletid/page.tsx @@ -117,7 +117,7 @@ export default async function Tickets({ features={t.raw("tickets.lol.features")} buttonText={t("tickets.buyButton")} buttonHref="https://fienta.com/et/tipilan" - backgroundImage="/images/landing/league_tournament.jpg" + backgroundImage="/images/landing/league_ticket.jpg" /> {/* CS2 TURNIIRI PILET */} diff --git a/src/app/[locale]/turniirid/page.tsx b/src/app/[locale]/turniirid/page.tsx index 0a34600..8501b34 100644 --- a/src/app/[locale]/turniirid/page.tsx +++ b/src/app/[locale]/turniirid/page.tsx @@ -3,6 +3,44 @@ import Link from "next/link"; import Image from "next/image"; import { getTranslations, setRequestLocale } from "next-intl/server"; +interface TournamentCardProps { + title: string; + buttonText: string; + buttonHref: string; + backgroundImage: string; +} + +function TournamentCard({ + title, + buttonText, + buttonHref, + backgroundImage, +}: TournamentCardProps) { + return ( +
+ +
+

+ {title} +

+ + {buttonText} + +
+
+ ); +} + export default async function Tourney({ params, }: { @@ -11,254 +49,27 @@ export default async function Tourney({ 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 break-normal`; - - const miniTournaments: { - name: string; - prize: string; - image: string; - objectPosition?: string; - bgClass?: string; - }[] = [ - { - name: "Tekken 8", - prize: "200€", - image: "/images/miniturniirid/tekken8.jpg", - objectPosition: "object-center", - }, - { - name: "WRC", - prize: "350€", - image: "/images/miniturniirid/wrc.jpg", - objectPosition: "object-center", - }, - { - name: "Street Fighter 6", - prize: "150€", - image: "/images/miniturniirid/street_fighter.jpg", - objectPosition: "object-center", - }, - { - name: "Gran Turismo", - prize: "200€", - image: "/images/miniturniirid/gran_turismo.jpg", - objectPosition: "object-center", - }, - { - name: "FC 26", - prize: "100€", - image: "/images/miniturniirid/fc26.jpg", - objectPosition: "object-center", - }, - { - name: "Dwarf Escape", - prize: "50€", - image: "/images/miniturniirid/dwarf_escape.png", - objectPosition: "object-center", - bgClass: "bg-black", - }, - { - name: "Buckshot Roulette", - prize: "Merch", - image: "/images/miniturniirid/buckshot_tournament.png", - objectPosition: "object-center", - bgClass: "bg-black", - }, - { - name: "2XKO", - prize: "100€", - image: "/images/miniturniirid/2xko.png", - objectPosition: "object-top", - }, - { - name: "Super Smash Bros. Ultimate", - prize: "100€", - image: "/images/miniturniirid/super_smash_bros.jpg", - objectPosition: "object-top", - }, - ]; return ( -
-

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

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

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

-

- {t("tournaments.mini.timing")} -

-

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

-

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

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

{tournament.name} - {tournament.prize}

-
-
- ))} -
-
-
- - {/* CS2 turniir */} -
-
-
-

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

-

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

-

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

-
-

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

-

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

-
- -
- - - - - - -
-
-
-
- {/* Outside div needs to remain so that overflow won't occur*/} - CS2 tournament -
-
-
-
- - {/* LoL turniir */} -
-
-
-
- {/* Outside div needs to remain so that overflow won't occur*/} - LoL tournament -
-
-
-

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

-

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

-

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

-
-

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

-
-
- - - - - - -
-
-
-
+
+ {/* 1x2 Grid */} +
+ {/* CS2 */} + + {/* LoL */} +
); -} \ No newline at end of file +} diff --git a/translations/en.json b/translations/en.json index 5794bca..dc1e655 100644 --- a/translations/en.json +++ b/translations/en.json @@ -124,6 +124,7 @@ }, "tournaments": { "title": "Tournaments", + "clickButton": "CLICK", "register": "Register", "participants": "Participants", "prizePool": "Prize pool", diff --git a/translations/et.json b/translations/et.json index 011fc23..9f3a813 100644 --- a/translations/et.json +++ b/translations/et.json @@ -124,6 +124,7 @@ }, "tournaments": { "title": "Turniirid", + "clickButton": "VAJUTA", "register": "Registreeru", "participants": "Osalejad", "prizePool": "Auhinnafond",