feat: add product catalog with URL-based category filtering
Build & Deploy (develop) / build-and-deploy (push) Successful in 1m48s

This commit is contained in:
2026-09-15 11:14:40 +03:30
parent 421760dc62
commit f49ef11c9c
16 changed files with 198 additions and 26 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import {notFound} from 'next/navigation';
import {content} from '@/data/content';
import ProductDetails from '@/components/ProductDetails';
type Props = {params: {id: string}};
type Props = { params: { id: string } };
export function generateStaticParams() {
return content.fa.machines.map(machine => ({id: machine.id}));
+13
View File
@@ -0,0 +1,13 @@
import {Suspense} from 'react';
import type {Metadata} from 'next';
import ProductsPage from '@/components/ProductsPage';
export const metadata: Metadata = {title: 'همه محصولات | روبات مارکت'};
export default function Page() {
return (
<Suspense fallback={<div className="min-h-screen pt-28 px-6" aria-busy="true"><div className="h-60 rounded-3xl bg-surface animate-pulse"/></div>}>
<ProductsPage/>
</Suspense>
);
}