diff --git a/src/app/[locale]/turniirid/lol/page.tsx b/src/app/[locale]/turniirid/lol/page.tsx index b3c9b83..ae3836b 100644 --- a/src/app/[locale]/turniirid/lol/page.tsx +++ b/src/app/[locale]/turniirid/lol/page.tsx @@ -4,6 +4,7 @@ import RulesContent from "@/components/RulesContent"; import RulesLastChanged from "@/components/RulesLastChanged"; import Link from "next/link"; import { getTranslations, setRequestLocale } from "next-intl/server"; +import '../style.css'; const sectionKeys = [ { id: "intro", labelKey: "lolpage.nav.intro" }, @@ -31,7 +32,7 @@ export default async function LoLTournament({ return (
-
+
{/* Main content */}
{/* Header */} @@ -54,23 +55,23 @@ export default async function LoLTournament({
{/* SISSEJUHATUS */} -
+

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

-

+

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

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

-

2025

-
    +

    2025

    +
    1. Ükssilm (Eesti)
    2. Eesti Rästikud (Eesti)
    3. LOMiks (Läti)
    4. @@ -84,7 +85,7 @@ export default async function LoLTournament({ > {t("lolpage.info.title")} -

      +

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

@@ -102,12 +103,12 @@ export default async function LoLTournament({ > {t("lolpage.prizes.mainTitle")} -
    +
    • {t("lolpage.prizes.place1")}
    • {t("lolpage.prizes.place2")}
    • {t("lolpage.prizes.place3")}
    -

    +

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

@@ -119,13 +120,13 @@ export default async function LoLTournament({ > {t("lolpage.format.title")} -

+

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

-

+

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

-

+

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

@@ -155,23 +156,24 @@ export default async function LoLTournament({ > {t("lolpage.rules.title")} -

+

{t("lolpage.rules.description")}

- + + {/* Contact info */}
-

+

{t("lolpage.rules.contact")}

{t("lolpage.rules.contactName")}

-

+

{t("lolpage.rules.contactRole")}

-

+

Discord:{" "} - {index}. - {rule} - +

  • + {/* Fixed min-width prevents numbers from shifting text as digits grow (e.g., 9. vs 10.) */} + {index}. +
    {rule}
    +
  • ); } return ( -
  • - {index}. - {rule.main} - {rule.sub && rule.sub.length > 0 && ( -
      - {rule.sub.map((subRule, subIndex) => { - if (typeof subRule === "string") { - return ( -
    1. - +
    2. + {/* Main rule row */} +
      + {index}. +
      {rule.main}
      +
      + + {rule.sub && rule.sub.length > 0 && ( +
        + {rule.sub.map((subRule, subIndex) => { + if (typeof subRule === "string") { + return ( +
      1. + {index}.{subIndex + 1}. - {subRule} -
      2. - ); - } - return ( -
      3. - - {index}.{subIndex + 1}. - - {subRule.main} - {subRule.sub && subRule.sub.length > 0 && ( -
          - {subRule.sub.map((subSubRule, subSubIndex) => ( -
        1. - +
          {subRule}
          +
        2. + ); + } + return ( +
        3. +
          + + {index}.{subIndex + 1}. + +
          {subRule.main}
          +
          + + {subRule.sub && subRule.sub.length > 0 && ( +
            + {subRule.sub.map((subSubRule, subSubIndex) => ( +
          1. + {index}.{subIndex + 1}.{subSubIndex + 1}. - {subSubRule} -
          2. - ))} -
          - )} -
        4. - ); - })} -
        - )} -
      4. +
        {subSubRule}
        + + ))} +
      + )} +
    3. + ); + })} +
    + )} +
  • ); } @@ -89,7 +94,7 @@ export default function RulesContent({ sections }: RulesContentProps) { > {sectionIndex + 1}) {section.title} -
      +
        {section.rules.map((rule, ruleIndex) => ( ))}