From 9760f45483129c4510a50c7ad59f990971c489cc Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 3 Jun 2026 15:41:52 +0000 Subject: [PATCH] Switch to version 1: remove src/app/products/page.tsx --- src/app/products/page.tsx | 108 -------------------------------------- 1 file changed, 108 deletions(-) delete mode 100644 src/app/products/page.tsx diff --git a/src/app/products/page.tsx b/src/app/products/page.tsx deleted file mode 100644 index c81426a..0000000 --- a/src/app/products/page.tsx +++ /dev/null @@ -1,108 +0,0 @@ -"use client"; - -import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -import ReactLenis from "lenis/react"; -import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; -import FooterBase from '@/components/sections/footer/FooterBase'; -import ProductCardTwo from '@/components/sections/product/ProductCardTwo'; - -const generateProducts = (count: number) => { - const products = []; - for (let i = 1; i <= count; i++) { - products.push({ - id: `product-${i}`, - brand: `Brand ${Math.ceil(i / 10)}`, - name: `Ajoyib Mahsulot ${i}`, - price: `${(Math.random() * 500 + 50).toFixed(0)},000 so'm`, - rating: Math.floor(Math.random() * 3) + 3, // Ratings between 3 and 5 - reviewCount: `${Math.floor(Math.random() * 200) + 10} ta sharh`, - imageSrc: `http://img.b2bpic.net/free-photo/product-${(i % 10) + 1}.jpg`, // Cycle through 10 generic product images - imageAlt: `Ajoyib Mahsulot ${i} tasviri`, - }); - } - return products; -}; - -const allProducts = generateProducts(55); // 50+ products - -export default function ProductsPage() { - const navItems = [ - { name: "Bosh sahifa", id: "/" }, - { name: "Biz haqimizda", id: "/about" }, - { name: "Katalog", id: "/catalog" }, - { name: "Mahsulotlar", id: "/products" }, // Link to this page - { name: "Bog'lanish", id: "/contact" }, - ]; - - const footerColumns = [ - { - title: "Kompaniya", items: [ - { label: "Biz haqimizda", href: "/about" }, - { label: "Bog'lanish", href: "/contact" }, - { label: "Katalog", href: "/catalog" }, - { label: "Mahsulotlar", href: "/products" }, - ], - }, - { - title: "Yordam", items: [ - { label: "FAQ", href: "/faq" }, - { label: "Yetkazib berish", href: "#" }, - { label: "To'lov usullari", href: "#" }, - ], - }, - { - title: "Qonuniy", items: [ - { label: "Maxfiylik siyosati", href: "#" }, - { label: "Xizmat ko'rsatish shartlari", href: "#" }, - ], - }, - ]; - - return ( - - - - -
- -
- - -
-
- ); -}