all -product
This commit is contained in:
64
src/app/[locale]/all-product/page.tsx
Normal file
64
src/app/[locale]/all-product/page.tsx
Normal 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 do‘konidagi barcha mahsulotlar ro‘yxati. Sifatli mahsulotlar, qulay narxlar va tez yetkazib berish.',
|
||||
ru: 'Полный каталог товаров интернет-магазина GASTRO. Качественные товары, выгодные цены и быстрая доставка.',
|
||||
};
|
||||
|
||||
const keywords = {
|
||||
uz: 'barcha mahsulotlar, onlayn do‘kon, 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user