Farewell message

This commit is contained in:
2026-09-21 14:47:40 +03:00
parent ffec159cbb
commit 617743488c
5 changed files with 29 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import { vipnagorgialla } from "@/components/Vipnagorgialla";
import Sponsors from "@/components/Sponsors";
import HeroSection from "@/components/HeroSection";
import TeaserCarousel from "@/components/TeaserCarousel";
import Livestreams from "@/components/Livestreams";
import FarewellMessage from "@/components/FarewellMessage";
import { Link } from "@/i18n/routing";
import { getTranslations, setRequestLocale } from "next-intl/server";
@@ -22,8 +22,8 @@ export default async function Home({
<HeroSection />
</div>
{/* Livestreams — shown automatically when the event begins */}
<Livestreams />
{/* Farewell message */}
<FarewellMessage />
{/* Nav cards: Piletid + Ajakava + Turniirid */}
<div className="grid grid-cols-1 lg:grid-cols-2 3xl:grid-cols-4 3xl:h-65 border-b-3 border-[#1F5673]">

View File

@@ -0,0 +1,16 @@
import { getTranslations } from "next-intl/server";
import { vipnagorgialla } from "@/components/Vipnagorgialla";
export default async function FarewellMessage() {
const t = await getTranslations("home.farewell");
return (
<section
className={`mx-auto flex w-full flex-col items-center border-b-4 border-[#00A3E0]/50 px-4 py-11 sm:px-8 sm:py-14 lg:px-12 lg:py-[68px] ${vipnagorgialla.className} font-bold italic`}
>
<h2 className="max-w-[1100px] text-center text-2xl leading-[0.95] text-white uppercase sm:text-3xl lg:text-4xl">
{t("message")}
</h2>
</section>
);
}

View File

@@ -41,7 +41,10 @@ const Header = ({ navItems }: HeaderProps) => {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
// Header navigation should include all options except homepage and hidden items
const hiddenNavHrefs: NavItem["href"][] = [];
const hiddenNavHrefs: NavItem["href"][] = [
"/messiala",
"/turniirid",
];
const mainNavItems = navItems.filter(
(item) => item.href !== "/" && !hiddenNavHrefs.includes(item.href),
);

View File

@@ -73,6 +73,9 @@
"cs2": "Counter-Strike 2",
"lol": "League of Legends"
},
"farewell": {
"message": "Thank you for participating in TipiLAN 2026! We hope to see you again next time!"
},
"sections": {
"schedule": {
"description": "TipiLAN is packed with exciting tournaments, mini-competitions and much more."

View File

@@ -73,6 +73,9 @@
"cs2": "Counter-Strike 2",
"lol": "League of Legends"
},
"farewell": {
"message": "Aitäh, et olite osa 2026 TipiLANist! Ootame teid tagasi järgmisel!"
},
"sections": {
"schedule": {
"description": "TipiLAN on pungil põnevatest turniiridest, mini-võistlustest ja paljust muust."