- Rewrote README.md to describe the Tibia Trade project, including features, setup instructions, technologies, and SEO keywords in Portuguese - Removed "Pagodera" from thank you page text for rebranding - Added role and aria-label to main element in home page for better accessibility - Added metadata generation with localized titles and descriptions to prices page for improved SEO and user experience
52 lines
1.3 KiB
TypeScript
52 lines
1.3 KiB
TypeScript
import Header from "@/components/Header";
|
|
import { UnderConstruction } from "@/components/under-construction";
|
|
import { getTranslations } from "next-intl/server";
|
|
import type { Metadata } from "next";
|
|
|
|
export async function generateMetadata({
|
|
params,
|
|
}: {
|
|
params: Promise<{ locale: string }>;
|
|
}): Promise<Metadata> {
|
|
const { locale } = await params;
|
|
const t = await getTranslations({ locale, namespace: "underConstruction" });
|
|
|
|
const titles = {
|
|
pt: "Preços - Estrutura de Custos",
|
|
en: "Prices - Cost Structure",
|
|
};
|
|
|
|
const descriptions = {
|
|
pt: "Veja nossa estrutura de preços transparente. Taxas de transação justas para manter o marketplace funcionando.",
|
|
en: "See our transparent price structure. Fair transaction fees to keep the marketplace running.",
|
|
};
|
|
|
|
return {
|
|
title: titles[locale as keyof typeof titles],
|
|
description: descriptions[locale as keyof typeof descriptions],
|
|
};
|
|
}
|
|
|
|
export default async function PricesPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ locale: string }>;
|
|
}) {
|
|
const { locale } = await params;
|
|
const t = await getTranslations({
|
|
locale,
|
|
namespace: "underConstruction.prices",
|
|
});
|
|
|
|
return (
|
|
<div className="min-h-screen">
|
|
<Header />
|
|
<UnderConstruction
|
|
title={t("title")}
|
|
description={t("description")}
|
|
locale={locale}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|