all -product

This commit is contained in:
Samandar Turgunboyev
2026-01-28 15:44:19 +05:00
parent c0cda492db
commit 5fc62f8bf8
6 changed files with 201 additions and 4 deletions

View File

@@ -0,0 +1,64 @@
import AllProducts from '@/features/category/ui/AllProduct';
import { Metadata } from 'next';
interface Props {
params: { locale: 'uz' | 'ru' };
}
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { locale } = params;
const titles = {
uz: 'Barcha mahsulotlar | GASTRO',
ru: 'Все товары | GASTRO',
};
const descriptions = {
uz: 'GASTRO onlayn dokonidagi barcha mahsulotlar royxati. Sifatli mahsulotlar, qulay narxlar va tez yetkazib berish.',
ru: 'Полный каталог товаров интернет-магазина GASTRO. Качественные товары, выгодные цены и быстрая доставка.',
};
const keywords = {
uz: 'barcha mahsulotlar, onlayn dokon, gastro, xarid, yetkazib berish',
ru: 'все товары, онлайн-магазин, gastro, покупка, доставка',
};
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'],
},
robots: {
index: true,
follow: true,
},
};
}
export default function AllProductPage() {
return (
<main>
<AllProducts />
</main>
);
}