36
apps/web/src/app/catalog/page.tsx
Normal file
36
apps/web/src/app/catalog/page.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import { Suspense } from 'react';
|
||||
import { products } from '@/data/products';
|
||||
import { Breadcrumb } from '@/components/Breadcrumb/Breadcrumb';
|
||||
import { CatalogSidebar } from '@/components/CatalogSidebar/CatalogSidebar';
|
||||
import { ProductCard } from '@/components/ProductCard/ProductCard';
|
||||
import styles from './page.module.scss';
|
||||
|
||||
export const metadata = {
|
||||
title: 'Каталог | PAN-PROM',
|
||||
};
|
||||
|
||||
export default function CatalogPage() {
|
||||
return (
|
||||
<div className={styles.layout}>
|
||||
<Suspense fallback={null}>
|
||||
<CatalogSidebar />
|
||||
</Suspense>
|
||||
<div className={styles.main}>
|
||||
<div className={styles.header}>
|
||||
<Breadcrumb
|
||||
items={[
|
||||
{ label: 'Главная', href: '/' },
|
||||
{ label: 'Каталог' },
|
||||
]}
|
||||
/>
|
||||
<span className={styles.count}>{products.length} позиций</span>
|
||||
</div>
|
||||
<div className={styles.grid}>
|
||||
{products.map((p) => (
|
||||
<ProductCard key={p.id} product={p} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user