From 42367cf8e2a9c16b90148f01afec45994ff7fbf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katri=20Lotam=C3=B5is?= Date: Fri, 26 Jun 2026 14:30:59 +0300 Subject: [PATCH 1/5] adjust text size on different screen types --- src/app/[locale]/kodukord/page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/[locale]/kodukord/page.tsx b/src/app/[locale]/kodukord/page.tsx index 45ac2e0..e05517c 100644 --- a/src/app/[locale]/kodukord/page.tsx +++ b/src/app/[locale]/kodukord/page.tsx @@ -57,7 +57,8 @@ export default async function Page({ return (

{props.children}

@@ -81,12 +82,12 @@ export default async function Page({ ), p: (props) => ( -

+

{props.children}

), li: (props) => ( -
  • +
  • {props.children}
  • ), From 85fea205842584d8e6ef5dc3d9c70fe5fc5dbf88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katri=20Lotam=C3=B5is?= Date: Fri, 26 Jun 2026 15:40:02 +0300 Subject: [PATCH 2/5] improve LoL page readability --- src/app/[locale]/turniirid/lol/page.tsx | 36 +++++---- src/app/[locale]/turniirid/style.css | 21 +++++ src/components/RulesContent.tsx | 103 +++++++++++++----------- 3 files changed, 94 insertions(+), 66 deletions(-) create mode 100644 src/app/[locale]/turniirid/style.css 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) => ( ))} From 670755f64c4374eb9572b5e71c37f1bb8d478925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katri=20Lotam=C3=B5is?= Date: Fri, 26 Jun 2026 15:42:47 +0300 Subject: [PATCH 3/5] improve CS page readability --- src/app/[locale]/turniirid/cs2/page.tsx | 33 +++++++++++++------------ 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/app/[locale]/turniirid/cs2/page.tsx b/src/app/[locale]/turniirid/cs2/page.tsx index d330638..62aaf55 100644 --- a/src/app/[locale]/turniirid/cs2/page.tsx +++ b/src/app/[locale]/turniirid/cs2/page.tsx @@ -68,7 +68,7 @@ export default async function CS2Tournament({ > {t("cs2page.intro.title")} -

        +

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

        @@ -77,8 +77,8 @@ export default async function CS2Tournament({ > {t("cs2page.intro.previousWinners")} -

        2025

        -
          +

          2025

          +
          1. RAID (Eesti)
          2. hypewrld (Läti)
          3. CSDIILIT (Soome/Eesti)
          4. @@ -92,7 +92,7 @@ export default async function CS2Tournament({ > {t("cs2page.info.title")} -

            +

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

            @@ -110,7 +110,7 @@ export default async function CS2Tournament({ > {t("cs2page.prizes.mainTitle")} -