From 3bdd5082188159914d0bdc83389d5a490eb378ee Mon Sep 17 00:00:00 2001 From: Rene Arumetsa Date: Fri, 1 May 2026 18:54:19 +0300 Subject: [PATCH] CS2 and LoL pages --- src/app/[locale]/turniirid/lol/page.tsx | 166 ++++++++++++++++++++++++ translations/en.json | 44 +++++++ translations/et.json | 44 +++++++ 3 files changed, 254 insertions(+) create mode 100644 src/app/[locale]/turniirid/lol/page.tsx diff --git a/src/app/[locale]/turniirid/lol/page.tsx b/src/app/[locale]/turniirid/lol/page.tsx new file mode 100644 index 0000000..49a96f1 --- /dev/null +++ b/src/app/[locale]/turniirid/lol/page.tsx @@ -0,0 +1,166 @@ +import { vipnagorgialla } from "@/components/Vipnagorgialla"; +import CS2Sidebar from "@/components/CS2Sidebar"; +import Link from "next/link"; +import { getTranslations, setRequestLocale } from "next-intl/server"; + +const sectionKeys = [ + { id: "intro", labelKey: "lolpage.nav.intro" }, + { id: "info", labelKey: "lolpage.nav.info" }, + { id: "prizes", labelKey: "lolpage.nav.prizes" }, + { id: "format", labelKey: "lolpage.nav.format" }, + { id: "faq", labelKey: "lolpage.nav.faq" }, + { id: "rules", labelKey: "lolpage.nav.rules" }, +]; + +export default async function LoLTournament({ + params, +}: { + params: Promise<{ locale: string }>; +}) { + const { locale } = await params; + setRequestLocale(locale); + const t = await getTranslations({ locale }); + + const sections = sectionKeys.map((section) => ({ + id: section.id, + label: t(section.labelKey), + })); + + return ( +
+
+
+ {/* Main content */} +
+ {/* Header */} +

+ {t("lolpage.title")} +

+ + {/* Buttons */} +
+ + {t("lolpage.buyTicket")} + +
+ + {/* SISSEJUHATUS */} +
+

+ {t("lolpage.intro.title")} +

+

+ {t("lolpage.intro.description")} +

+ +

+ {t("lolpage.intro.previousWinners")} +

+

2025

+
    +
  1. Ükssilm (Eesti)
  2. +
  3. Eesti Rästikud (Eesti)
  4. +
  5. LOMiks (Läti)
  6. +
+
+ + {/* ÜLDINE INFO */} +
+

+ {t("lolpage.info.title")} +

+

+ {t("lolpage.info.description")} +

+
+ + {/* AUHINNAFOND */} +
+

+ {t("lolpage.prizes.title")} +

+ +

+ {t("lolpage.prizes.mainTitle")} +

+
    +
  • {t("lolpage.prizes.place1")}
  • +
  • {t("lolpage.prizes.place2")}
  • +
  • {t("lolpage.prizes.place3")}
  • +
+

+ {t("lolpage.prizes.note")} +

+
+ + {/* TURNIIRI FORMAAT */} +
+

+ {t("lolpage.format.title")} +

+

+ {t("lolpage.format.description")} +

+

+ {t("lolpage.format.day1")} +

+

+ {t("lolpage.format.day2")} +

+
+ + {/* FAQ */} +
+

+ {t("lolpage.faq.title")} +

+

+ {t("lolpage.faq.q1")} +

+

+ {t("lolpage.faq.a1")} +

+
+ + {/* REEGLID */} +
+

+ {t("lolpage.rules.title")} +

+

+ {t("lolpage.rules.comingSoon")} +

+
+
+ + {/* Sidebar navigation */} + +
+
+
+ ); +} diff --git a/translations/en.json b/translations/en.json index 06eb77d..22bf75c 100644 --- a/translations/en.json +++ b/translations/en.json @@ -323,6 +323,50 @@ ] } }, + "lolpage": { + "title": "LEAGUE OF LEGENDS TOURNAMENT", + "buyTicket": "BUY TICKET", + "nav": { + "intro": "Introduction", + "info": "General info", + "prizes": "Prize pool", + "format": "Tournament format", + "faq": "FAQ", + "rules": "Rules" + }, + "intro": { + "title": "INTRODUCTION", + "description": "TipiLAN organized its first LoL tournament in 2025 at its debut event. Teams from Estonia and Latvia participated.", + "previousWinners": "PREVIOUS WINNERS" + }, + "info": { + "title": "GENERAL INFO", + "description": "TipiLAN 2026 LoL tournament takes place September 11-13 at TalTech, Tallinn, Estonia. This is a BYOC LAN tournament. On-site, each participant is provided with: desk, chair, wired internet connection, power connection (2 outlets)." + }, + "prizes": { + "title": "PRIZE POOL", + "mainTitle": "MAIN TOURNAMENT - €3000", + "place1": "1st place - €1500, €300 per player, 50% or 1/2 of the prize pool.", + "place2": "2nd place - €1000, €200 per player, 33.3...% or 1/3 of the prize pool.", + "place3": "3rd place - €500, €100 per player, 16.6...% or 1/6 of the prize pool.", + "note": "Teams and players outside the prize pool will not receive additional compensation." + }, + "format": { + "title": "TOURNAMENT FORMAT", + "description": "The entire tournament is BYOC (bring your own computer) LAN, no qualifications take place.", + "day1": "Day 1: Round Robin in two groups, 5 games.", + "day2": "Day 2: Single Elimination Playoff." + }, + "faq": { + "title": "FREQUENTLY ASKED QUESTIONS", + "q1": "QUESTION?", + "a1": "Answer" + }, + "rules": { + "title": "RULES", + "comingSoon": "Rules will be added here:)" + } + }, "schedule": { "title": "Schedule", "day": "Day", diff --git a/translations/et.json b/translations/et.json index 6504891..0796095 100644 --- a/translations/et.json +++ b/translations/et.json @@ -324,6 +324,50 @@ ] } }, + "lolpage": { + "title": "LEAGUE OF LEGENDS TURNIIR", + "buyTicket": "OSTA PILET", + "nav": { + "intro": "Sissejuhatus", + "info": "Üldine info", + "prizes": "Auhinnafond", + "format": "Turniiri formaat", + "faq": "Korduma kippuvad küsimused", + "rules": "Reeglid" + }, + "intro": { + "title": "SISSEJUHATUS", + "description": "TipiLAN korraldas esimese LoL turniiri 2025. aastal oma debüütüritusel. Kohal käis tiime nii Eestist kui ka Lätist.", + "previousWinners": "VARASEMAD VÕITJAD" + }, + "info": { + "title": "ÜLDINE INFO", + "description": "TipiLAN 2026 LoL turniir toimub 11.-13. septembril TalTechis, Tallinnas, Eestis. Tegemist on BYOC LAN turniiriga. Kohapeal pakutakse igale osalejale: laud, tool, võrgukaabliga internetiühendus, vooluühendus (2 pesa)." + }, + "prizes": { + "title": "AUHINNAFOND", + "mainTitle": "PEATURNIIR - 3000€", + "place1": "1. koht - 1500€, 300€ inimese kohta, 50% ehk 1/2 auhinnafondist.", + "place2": "2. koht - 1000€, 200€ inimese kohta, 33.3...(3)% ehk 1/3 auhinnafondist.", + "place3": "3. koht - 500€, 100€ inimese kohta, 16.6...(6)% ehk 1/6 auhinnafondist.", + "note": "Auhinnafondist väljaspoole jäävatele meeskondadele ja mängijatele lisahüvitisi ei pakuta." + }, + "format": { + "title": "TURNIIRI FORMAAT", + "description": "Terve turniir on BYOC (bring your own computer) LAN, kvalifikatsioone ei toimu.", + "day1": "Päev 1: Round Robin kahes grupis, 5 mängu.", + "day2": "Päev 2: Single Elimination Playoff." + }, + "faq": { + "title": "KORDUMA KIPPUVAD KÜSIMUSED", + "q1": "KÜSIMUS?", + "a1": "Vastus" + }, + "rules": { + "title": "REEGLID", + "comingSoon": "Siia tulevad reeglid:)" + } + }, "schedule": { "title": "Ajakava", "day": "Päev",