diff --git a/src/app/[locale]/page.tsx b/src/app/[locale]/page.tsx index 01a4750..67aab73 100644 --- a/src/app/[locale]/page.tsx +++ b/src/app/[locale]/page.tsx @@ -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({ - {/* Livestreams — shown automatically when the event begins */} - + {/* Farewell message */} + {/* Nav cards: Piletid + Ajakava + Turniirid */}
diff --git a/src/components/FarewellMessage.tsx b/src/components/FarewellMessage.tsx new file mode 100644 index 0000000..f309cd8 --- /dev/null +++ b/src/components/FarewellMessage.tsx @@ -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 ( +
+

+ {t("message")} +

+
+ ); +} diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 8fc6be4..44f4546 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -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), ); diff --git a/translations/en.json b/translations/en.json index 0c1d0aa..38b1451 100644 --- a/translations/en.json +++ b/translations/en.json @@ -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." diff --git a/translations/et.json b/translations/et.json index 4364975..7bc975a 100644 --- a/translations/et.json +++ b/translations/et.json @@ -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."