Files
gastro-bot/src/app/[locale]/page.tsx
Samandar Turgunboyev c2a4064951 seo uodate
2025-12-23 12:18:53 +05:00

61 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Welcome from '@/widgets/welcome/ui';
import { Metadata } from 'next';
interface Props {
params: { locale: 'uz' | 'ru' };
}
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { locale } = await params;
const titles = {
uz: 'Bosh sahifa | GASTRO',
ru: 'Главная | Магазин товаров',
};
const descriptions = {
uz: 'Bizning onlayn dokonimizda sifatli mahsulotlarni toping. Tez yetkazib berish va qulay tolov imkoniyatlari mavjud.',
ru: 'В нашем онлайн-магазине вы найдете качественные товары. Быстрая доставка и удобная оплата.',
};
const keywords = {
uz: 'mahsulot, onlayn dokon, xarid, yetkazib berish',
ru: 'товары, онлайн-магазин, покупка, доставка',
};
return {
title: titles[locale],
description: descriptions[locale],
keywords: keywords[locale],
openGraph: {
title: titles[locale],
description: descriptions[locale],
siteName: 'GASTRO',
images: [
{
url: '/logos/logo.png',
width: 1200,
height: 1200,
alt: titles[locale],
},
],
locale: locale === 'uz' ? 'uz_UZ' : 'ru_RU',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: titles[locale],
description: descriptions[locale],
images: ['/logos/logo.png'],
},
};
}
export default async function Home() {
return (
<main>
<Welcome />
</main>
);
}