diff --git a/public/flags/eng.svg b/public/flags/eng.svg new file mode 100644 index 0000000..27179be --- /dev/null +++ b/public/flags/eng.svg @@ -0,0 +1,6 @@ + diff --git a/public/flags/est.svg b/public/flags/est.svg new file mode 100644 index 0000000..c0d2649 --- /dev/null +++ b/public/flags/est.svg @@ -0,0 +1,5 @@ + diff --git a/src/app/[locale]/ajakava/page.tsx b/src/app/[locale]/ajakava/page.tsx index 0fc3bc7..e32f55f 100644 --- a/src/app/[locale]/ajakava/page.tsx +++ b/src/app/[locale]/ajakava/page.tsx @@ -13,12 +13,12 @@ export default async function Timetable({ return (
{t("schedule.comingSoon")}
diff --git a/src/app/[locale]/kodukord/page.tsx b/src/app/[locale]/kodukord/page.tsx index 0e78cdf..75a956a 100644 --- a/src/app/[locale]/kodukord/page.tsx +++ b/src/app/[locale]/kodukord/page.tsx @@ -1,10 +1,15 @@ // app/kodukord/page.tsx (App Router) import ReactMarkdown, { Components } from "react-markdown"; import { vipnagorgialla } from "@/components/Vipnagorgialla"; -import SectionDivider from "@/components/SectionDivider"; +import RuleNav from "@/components/RuleNav"; import { getTranslations, setRequestLocale } from "next-intl/server"; import { loadRulesBun } from "@/lib/loadRules"; +const sectionKeys = [ + { id: "reminder", labelKey: "rules.reminder" }, + { id: "code", labelKey: "rules.code" }, +]; + export default async function Page({ params, }: { @@ -15,50 +20,77 @@ export default async function Page({ const t = await getTranslations({ locale }); const content = await loadRulesBun("kodukord", locale as "et" | "en"); - return ( -{props.children}
, - } as Components - } - > - {content} -{props.children}
+ ), + li: (props) => ( +{t("expo.comingSoon")}
diff --git a/src/app/[locale]/page.tsx b/src/app/[locale]/page.tsx index 943cac3..cf56c6f 100644 --- a/src/app/[locale]/page.tsx +++ b/src/app/[locale]/page.tsx @@ -29,7 +29,7 @@ export default async function Home({ >@@ -61,7 +61,7 @@ export default async function Home({ src="https://player.twitch.tv/?channel=tipilan_ee&parent=localhost&parent=tipilan.ee" height="100%" width="100%" - className="w-full h-full min-h-[400px]" + className="w-full h-full min-h-100" allow="autoplay; encrypted-media" >
@@ -102,12 +102,12 @@ export default async function Home({ > {t("navigation.expo")} - + arrow_right_alt
@@ -125,7 +125,7 @@ export default async function Home({
+
{t("cs2page.intro.description")}
2025
-2025
+- {t("cs2page.info.description")} -
+{t("cs2page.info.description")}
+
{t("cs2page.prizes.mainNote")}
+
{t("cs2page.prizes.secondNote")}
+
{t("cs2page.format.description")}
-{t("cs2page.format.day1")}
-{t("cs2page.format.day23")}
+{t("cs2page.format.day1")}
+{t("cs2page.format.day23")}
- {t("cs2page.vrs.description1")} -
-- {t("cs2page.vrs.description2")} -
+{t("cs2page.vrs.description1")}
+{t("cs2page.vrs.description2")}
+
{t("cs2page.faq.a1")}
+
{t("cs2page.rules.description")}
- {t("cs2page.rules.contact")} -
+{t("cs2page.rules.contact")}
{t("cs2page.rules.contactName")}
-- {t("cs2page.rules.contactRole")} -
-+
{t("cs2page.rules.contactRole")}
+
Discord:{" "}
hrkruger
diff --git a/src/app/[locale]/turniirid/lol/page.tsx b/src/app/[locale]/turniirid/lol/page.tsx
index 57ab39c..8c23610 100644
--- a/src/app/[locale]/turniirid/lol/page.tsx
+++ b/src/app/[locale]/turniirid/lol/page.tsx
@@ -54,21 +54,21 @@ export default async function LoLTournament({
{/* SISSEJUHATUS */}
+
{t("lolpage.intro.description")}
2025 2025
- {t("lolpage.info.description")}
- {t("lolpage.info.description")}
+
{t("lolpage.prizes.note")}
+
{t("lolpage.format.description")}
{t("lolpage.format.day1")} {t("lolpage.format.day2")} {t("lolpage.format.day1")} {t("lolpage.format.day2")}
+
{t("lolpage.faq.a1")}
+
{t("lolpage.rules.description")}
- {t("lolpage.rules.contact")}
- {t("lolpage.rules.contact")}
{t("lolpage.rules.contactName")}
- {t("lolpage.rules.contactRole")}
-
+ {t("lolpage.rules.contactRole")}
Discord:{" "}
Kukkel
diff --git a/src/app/globals.css b/src/app/globals.css
index d4020f9..ef620ac 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -56,7 +56,7 @@ body {
:root {
--radius: 0.625rem;
- --background: oklch(1 0 0);
+ --background: #0a121f;
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
@@ -90,7 +90,7 @@ body {
}
.dark {
- --background: oklch(0.145 0 0);
+ --background: #0a121f;
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
index 57ff6d1..3ac9ed5 100644
--- a/src/components/Footer.tsx
+++ b/src/components/Footer.tsx
@@ -11,7 +11,7 @@ const Footer = () => {
{t("lolpage.intro.title")}
-
{t("lolpage.intro.previousWinners")}
-
+
{t("lolpage.info.title")}
-
{t("lolpage.prizes.title")}
{t("lolpage.prizes.mainTitle")}
-
+
-
{t("lolpage.format.title")}
-
{t("lolpage.faq.title")}
{t("lolpage.faq.q1")}
-
{t("lolpage.rules.title")}
-
{t("footer.contact")}
@@ -30,7 +30,7 @@ const Footer = () => {