From 8a629c3de87b5f6d7bb2ecebdd4e793d0b60da84 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Wed, 27 Aug 2025 14:09:04 +0200 Subject: [PATCH 1/2] feat: simplify navigation and add wiki link - Remove standalone agenda page (deleted agenda/page.tsx) - Remove CFP/art submission sections from contribute area - Add direct wiki link to navigation and FAQ documents - Add wiki button alongside schedule button in hero section - Update navigation to include wiki as external link - Clean up translations by removing unused CFP/art text --- src/app/[locale]/agenda/page.tsx | 78 -------------------------------- src/components/landing-page.tsx | 76 ++++++++++++++++--------------- src/components/mobile-nav.tsx | 30 ++++++++---- src/components/nav.tsx | 35 +++++++++----- src/i18n/translations.ts | 32 ++----------- 5 files changed, 89 insertions(+), 162 deletions(-) delete mode 100644 src/app/[locale]/agenda/page.tsx diff --git a/src/app/[locale]/agenda/page.tsx b/src/app/[locale]/agenda/page.tsx deleted file mode 100644 index 78ba041..0000000 --- a/src/app/[locale]/agenda/page.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import Script from 'next/script'; -import { getLocale, Lang, locales } from '@/i18n/locales'; -import { translations } from '@/i18n/translations'; -import { Metadata } from 'next'; -import Link from 'next/link'; -import { LanguageSelector } from '@/components/ui/language-selector'; - -export async function generateStaticParams() { - return locales.map((locale) => ({ locale })); -} - -export async function generateMetadata({ params }: { params: Promise<{ locale: Lang }> }): Promise { - const { locale } = await params; - const currentLocale = getLocale(locale); - const t = translations[currentLocale]; - return { - title: `${t.contribute.agenda.title} - ${t.hero.title}`, - description: t.about.description, - }; -} - -export default async function AgendaPage({ params }: { params: Promise<{ locale: Lang }> }) { - const { locale } = await params; - const currentLocale = getLocale(locale); - const t = translations[currentLocale]; - - return ( - <> -