统一网站页面标题横幅并完成相关页面的设计适配

This commit is contained in:
2026-09-24 18:56:38 +08:00
parent 19efd87d0b
commit 8968251b94
20 changed files with 309 additions and 110 deletions
+15
View File
@@ -0,0 +1,15 @@
import { notFound } from "next/navigation";
import { SimpleTitlePage } from "@/components/pages/simple-title-page";
import { getLocaleMessages, isLocale } from "@/lib/i18n";
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
if (!isLocale(locale)) notFound();
return { title: getLocaleMessages(locale).header.nav[3] };
}
export default async function CityPage({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
if (!isLocale(locale)) notFound();
return <SimpleTitlePage locale={locale} title={getLocaleMessages(locale).header.nav[3]} image="/city/city-hero.png" imagePosition="47% 24%" />;
}