Updated kodukord and lol rules in est

This commit is contained in:
2026-05-14 20:55:34 +03:00
parent 206d098360
commit 08431e22d6
7 changed files with 236 additions and 94 deletions

View File

@@ -1,6 +1,7 @@
// app/kodukord/page.tsx (App Router)
import ReactMarkdown, { Components } from "react-markdown";
import { vipnagorgialla } from "@/components/Vipnagorgialla";
import RulesLastChanged from "@/components/RulesLastChanged";
import RuleNav from "@/components/RuleNav";
import { getTranslations, setRequestLocale } from "next-intl/server";
import { loadRulesBun } from "@/lib/loadRules";
@@ -40,6 +41,10 @@ export default async function Page({
>
{t("rules.houseRules")}
</h1>
<RulesLastChanged
locale={locale as "et" | "en"}
ruleType="kodukord"
/>
<div className="rules-markdown">
<ReactMarkdown

View File

@@ -1,6 +1,7 @@
import { vipnagorgialla } from "@/components/Vipnagorgialla";
import RuleNav from "@/components/RuleNav";
import RulesContent from "@/components/RulesContent";
import RulesLastChanged from "@/components/RulesLastChanged";
import Link from "next/link";
import { getTranslations, setRequestLocale } from "next-intl/server";
@@ -40,6 +41,7 @@ export default async function CS2Tournament({
>
{t("cs2page.title")}
</h1>
<RulesLastChanged locale={locale as "et" | "en"} ruleType="cs2" />
{/* Buttons */}
<div className="flex flex-wrap gap-4 mb-12">

View File

@@ -1,6 +1,7 @@
import { vipnagorgialla } from "@/components/Vipnagorgialla";
import RuleNav from "@/components/RuleNav";
import RulesContent from "@/components/RulesContent";
import RulesLastChanged from "@/components/RulesLastChanged";
import Link from "next/link";
import { getTranslations, setRequestLocale } from "next-intl/server";
@@ -39,6 +40,7 @@ export default async function LoLTournament({
>
{t("lolpage.title")}
</h1>
<RulesLastChanged locale={locale as "et" | "en"} ruleType="lol" />
{/* Buttons */}
<div className="flex flex-wrap gap-4 mb-12">