From 55de79aff4cf957ba2d49e0d916471bfd365072b Mon Sep 17 00:00:00 2001 From: mpn <123456> Date: Sat, 8 Mar 2025 11:18:25 +0330 Subject: [PATCH] component page --- components/AppsComponent/BrandData/page.jsx | 12 +- .../AppsComponent/CategoriesData/page.jsx | 16 +- components/AppsComponent/ProductData/page.jsx | 16 +- components/ArticleContent/index.jsx | 15 + components/Blog/BlogData/page.jsx | 13 +- package-lock.json | 79 ++-- package.json | 1 + public/images/must delete/digi1.webp | Bin 0 -> 36582 bytes public/images/must delete/digi10.jpg | Bin 0 -> 5273 bytes public/images/must delete/digi11.jpg | Bin 0 -> 10477 bytes public/images/must delete/digi12.jpg | Bin 0 -> 7958 bytes public/images/must delete/digi13.jpg | Bin 0 -> 9916 bytes public/images/must delete/digi2.webp | Bin 0 -> 34820 bytes public/images/must delete/digi3.webp | Bin 0 -> 37948 bytes public/images/must delete/digi4.webp | Bin 0 -> 48400 bytes public/images/must delete/digi5.webp | Bin 0 -> 37400 bytes public/images/must delete/digi6.webp | Bin 0 -> 18992 bytes public/images/must delete/digi7.webp | Bin 0 -> 19814 bytes public/images/must delete/digi8.jpg | Bin 0 -> 12152 bytes public/images/must delete/digi9.jpg | Bin 0 -> 14284 bytes src/app/categories/[...id]/page.jsx | 22 +- src/app/component-test/page.jsx | 400 ++++++++++++++++++ src/app/layout.jsx | 9 + tailwind.config.js | 93 +++- 24 files changed, 609 insertions(+), 67 deletions(-) create mode 100644 components/ArticleContent/index.jsx create mode 100644 public/images/must delete/digi1.webp create mode 100644 public/images/must delete/digi10.jpg create mode 100644 public/images/must delete/digi11.jpg create mode 100644 public/images/must delete/digi12.jpg create mode 100644 public/images/must delete/digi13.jpg create mode 100644 public/images/must delete/digi2.webp create mode 100644 public/images/must delete/digi3.webp create mode 100644 public/images/must delete/digi4.webp create mode 100644 public/images/must delete/digi5.webp create mode 100644 public/images/must delete/digi6.webp create mode 100644 public/images/must delete/digi7.webp create mode 100644 public/images/must delete/digi8.jpg create mode 100644 public/images/must delete/digi9.jpg create mode 100644 src/app/component-test/page.jsx diff --git a/components/AppsComponent/BrandData/page.jsx b/components/AppsComponent/BrandData/page.jsx index 262ef6a..245c2ba 100644 --- a/components/AppsComponent/BrandData/page.jsx +++ b/components/AppsComponent/BrandData/page.jsx @@ -11,6 +11,7 @@ import logo from "../../../public/images/logo.png"; import AppContext from "@ctx/AppContext"; import CardNormal from "@comp/Cards/CardNormal/page"; import Link from "next/link"; +import ArticleContent from "@comp/ArticleContent"; const BrandData = ({ params, data, product }) => { const CTX = useContext(AppContext); @@ -64,12 +65,11 @@ const BrandData = ({ params, data, product }) => { )} -
-
-
+ {data.description ? ( + + ) : ( +

Loading...

+ )}
diff --git a/components/AppsComponent/CategoriesData/page.jsx b/components/AppsComponent/CategoriesData/page.jsx index d8f6eb1..75374ba 100644 --- a/components/AppsComponent/CategoriesData/page.jsx +++ b/components/AppsComponent/CategoriesData/page.jsx @@ -1,5 +1,6 @@ "use client"; +import ArticleContent from "@comp/ArticleContent"; import FilterCategory from "@comp/Category/FilterCategory/page"; import ListProdocts from "@comp/Category/ListProdocts/page"; import FilterCategoryMobile from "@comp/Category/Mobile/FilterCategoryMobile/page"; @@ -12,10 +13,12 @@ import { usePathname, useRouter, useSearchParams } from "next/navigation"; import { useContext, useEffect, useMemo, useState } from "react"; import InfiniteScroll from "react-infinite-scroll-component"; -export default function CategoriesData({ params, products }) { +export default function CategoriesData({ params, products, categoryData }) { const CTX = useContext(AppContext); const searchParams = useSearchParams(); + console.log("categoryData", categoryData); + useEffect(() => { if ( Number(searchParams.get("page")) === 0 || @@ -249,12 +252,11 @@ export default function CategoriesData({ params, products }) { /> )} - {/*
-
-
*/} + {categoryData?.description ? ( + + ) : ( +

+ )}