From a0b530379f22e21a421acbe9c57813d2db0aac3f Mon Sep 17 00:00:00 2001 From: v4ltages Date: Fri, 24 Oct 2025 17:13:47 +0300 Subject: [PATCH] Redirect to stream page for todays live feed --- next.config.ts | 14 ++++ src/app/[locale]/striim/page.tsx | 114 ++----------------------------- src/components/Sponsors.tsx | 13 ++-- 3 files changed, 29 insertions(+), 112 deletions(-) diff --git a/next.config.ts b/next.config.ts index d71ac07..069e25a 100644 --- a/next.config.ts +++ b/next.config.ts @@ -22,6 +22,20 @@ const nextConfig: NextConfig = { }, ]; }, + async redirects() { + return [ + { + source: "/et", + destination: "/striim", + permanent: false, + }, + { + source: "/en", + destination: "/stream", + permanent: false, + }, + ]; + }, }; export default withNextIntl(nextConfig); diff --git a/src/app/[locale]/striim/page.tsx b/src/app/[locale]/striim/page.tsx index f9a49b4..f6fd6a6 100644 --- a/src/app/[locale]/striim/page.tsx +++ b/src/app/[locale]/striim/page.tsx @@ -1,7 +1,8 @@ import { vipnagorgialla } from "@/components/Vipnagorgialla"; -import Link from "next/link"; -import Image from "next/image"; +import Sponsors from "@/components/Sponsors"; +import { Link } from "@/i18n/routing"; import { getTranslations, setRequestLocale } from "next-intl/server"; +import Image from "next/image"; export default async function Home({ params, @@ -73,7 +74,7 @@ export default async function Home({ >

{t("navigation.tournaments")}

@@ -129,114 +130,11 @@ export default async function Home({

- 24.-26. okt. + {t("home.sections.dateAndLocation")}

{/* Sponsors */} -
-
-

- {t("home.sections.poweredBy")} -

-
- - Taltech (Tallinna Tehnikaülikool) - - - Redbull - - - Alecoq - - - EVAL - - - Balsnack - - - LVLup! - - - BFGL - - - Tallinna Haridusamet - - - Militaarseiklus - - - Arvutimuuseum - -
-
-
+ ); } diff --git a/src/components/Sponsors.tsx b/src/components/Sponsors.tsx index a3d025c..d778ff0 100644 --- a/src/components/Sponsors.tsx +++ b/src/components/Sponsors.tsx @@ -8,7 +8,10 @@ interface SponsorsProps { className?: string; } -export default function Sponsors({ showTitle = true, className = "" }: SponsorsProps) { +export default function Sponsors({ + showTitle = true, + className = "", +}: SponsorsProps) { const t = useTranslations(); return ( @@ -109,7 +112,10 @@ export default function Sponsors({ showTitle = true, className = "" }: SponsorsP className="object-contain" /> - + Estonian Gamedev Guild @@ -190,7 +196,6 @@ export default function Sponsors({ showTitle = true, className = "" }: SponsorsP className="object-contain" /> -