From c2bf6125d5f4d87b33c60f60f33128f61a97ff79 Mon Sep 17 00:00:00 2001 From: selvi Date: Thu, 31 Jul 2025 21:47:17 +0530 Subject: [PATCH] product details imges updated --- app/(blogs)/news-details/[slug]/page.jsx | 2 +- components/footers/Footer1.jsx | 9 ++-- components/headers/Nav.jsx | 35 ++++++++++++-- components/homes/home-1/Blogs.jsx | 8 ++-- components/homes/home-1/Hero.jsx | 6 +-- .../homes/home-1/Products/product-details.jsx | 2 +- components/homes/home-1/Services.jsx | 5 +- data/menu.js | 13 +++++- data/services.js | 8 ++-- public/assets/img/about-page/left-bottom.webp | Bin 25312 -> 29568 bytes .../assets/img/product-details/grinder/1.webp | Bin 0 -> 28460 bytes .../assets/img/product-details/grinder/2.webp | Bin 0 -> 27206 bytes .../assets/img/product-details/grinder/3.webp | Bin 0 -> 26458 bytes .../assets/img/product-details/grinder/4.webp | Bin 0 -> 22966 bytes .../img/product-details/grinder/big-img.webp | Bin 0 -> 56194 bytes .../grinder/grinder-banner.webp | Bin 0 -> 28756 bytes public/assets/img/product-details/milk/1.webp | Bin 0 -> 22036 bytes public/assets/img/product-details/milk/2.webp | Bin 0 -> 22032 bytes public/assets/img/product-details/milk/3.webp | Bin 0 -> 13396 bytes public/assets/img/product-details/milk/4.webp | Bin 0 -> 28652 bytes .../img/product-details/milk/big-img.webp | Bin 0 -> 25258 bytes .../milk/milk-extractor-banner.webp | Bin 0 -> 16542 bytes public/assets/img/product-details/oil/1.webp | Bin 0 -> 44774 bytes public/assets/img/product-details/oil/2.webp | Bin 0 -> 44296 bytes public/assets/img/product-details/oil/3.webp | Bin 0 -> 38620 bytes public/assets/img/product-details/oil/4.webp | Bin 0 -> 43784 bytes .../img/product-details/oil/big-img.webp | Bin 0 -> 74686 bytes .../oil/oil-processing-banner.webp | Bin 0 -> 39474 bytes .../assets/img/product-details/water/1.webp | Bin 0 -> 41400 bytes .../assets/img/product-details/water/2.webp | Bin 0 -> 41172 bytes .../assets/img/product-details/water/3.webp | Bin 0 -> 44948 bytes .../assets/img/product-details/water/4.webp | Bin 0 -> 32276 bytes .../img/product-details/water/big-img.webp | Bin 0 -> 35584 bytes .../water/water-processing-banner.webp | Bin 0 -> 27970 bytes public/assets/scss/_service.scss | 7 ++- utlis/constant.utils.js | 44 ++++++++++-------- 36 files changed, 93 insertions(+), 46 deletions(-) create mode 100644 public/assets/img/product-details/grinder/1.webp create mode 100644 public/assets/img/product-details/grinder/2.webp create mode 100644 public/assets/img/product-details/grinder/3.webp create mode 100644 public/assets/img/product-details/grinder/4.webp create mode 100644 public/assets/img/product-details/grinder/big-img.webp create mode 100644 public/assets/img/product-details/grinder/grinder-banner.webp create mode 100644 public/assets/img/product-details/milk/1.webp create mode 100644 public/assets/img/product-details/milk/2.webp create mode 100644 public/assets/img/product-details/milk/3.webp create mode 100644 public/assets/img/product-details/milk/4.webp create mode 100644 public/assets/img/product-details/milk/big-img.webp create mode 100644 public/assets/img/product-details/milk/milk-extractor-banner.webp create mode 100644 public/assets/img/product-details/oil/1.webp create mode 100644 public/assets/img/product-details/oil/2.webp create mode 100644 public/assets/img/product-details/oil/3.webp create mode 100644 public/assets/img/product-details/oil/4.webp create mode 100644 public/assets/img/product-details/oil/big-img.webp create mode 100644 public/assets/img/product-details/oil/oil-processing-banner.webp create mode 100644 public/assets/img/product-details/water/1.webp create mode 100644 public/assets/img/product-details/water/2.webp create mode 100644 public/assets/img/product-details/water/3.webp create mode 100644 public/assets/img/product-details/water/4.webp create mode 100644 public/assets/img/product-details/water/big-img.webp create mode 100644 public/assets/img/product-details/water/water-processing-banner.webp diff --git a/app/(blogs)/news-details/[slug]/page.jsx b/app/(blogs)/news-details/[slug]/page.jsx index f66234a..cefca4f 100644 --- a/app/(blogs)/news-details/[slug]/page.jsx +++ b/app/(blogs)/news-details/[slug]/page.jsx @@ -49,7 +49,7 @@ export default function Page({ params }) {
  • -
  • Blog Details
  • +
  • {newsItem.title}
  • diff --git a/components/footers/Footer1.jsx b/components/footers/Footer1.jsx index 05a7dea..ec5e496 100644 --- a/components/footers/Footer1.jsx +++ b/components/footers/Footer1.jsx @@ -70,13 +70,14 @@ export default function Footer1() { >
    -
    About Company
    +
    About Cibus Industries

    - Nullam interdum libero vitae pretium aliquam
    - donec nibh purus laoreet in ullamcorper vel
    - malesuada sit amet enim. + Engineering high-performance coconut
    + processing machinery that drives efficiency,
    + scalability, and sustainability for businesses
    + across the globe.

    {socialLinks.map((elm, i) => ( diff --git a/components/headers/Nav.jsx b/components/headers/Nav.jsx index 2c7494c..4421772 100644 --- a/components/headers/Nav.jsx +++ b/components/headers/Nav.jsx @@ -4,10 +4,12 @@ import { menuData } from "@/data/menu"; import { useState } from "react"; import Image from "next/image"; import { usePathname } from "next/navigation"; + export default function Nav() { const [parentActive, setParentActive] = useState(-1); const [subparentActive, setsubParentActive] = useState(-1); const pathname = usePathname(); + const isMenuActive = (menuItem = menuData[0]) => { let active = false; if (menuItem.href?.includes("/")) { @@ -22,11 +24,21 @@ export default function Nav() { active = true; } } + if (elm2.slug) { + if (`/product-details/${elm2.slug}`.split("/")[2] === pathname.split("/")[2]) { + active = true; + } + } if (elm2.submenu) { elm2.submenu.forEach((elm3) => { - if (elm3.href.split("/")[1] == pathname.split("/")[1]) { + if (elm3.href?.split("/")[1] == pathname.split("/")[1]) { active = true; } + if (elm3.slug) { + if (`/product-details/${elm3.slug}`.split("/")[2] === pathname.split("/")[2]) { + active = true; + } + } }); } if (elm2.homeMenuItems) { @@ -57,8 +69,10 @@ export default function Nav() { setParentActive((pre) => (pre == index ? -1 : index)) } > - {item.label} {item.iconClass && }{" "} + {item.label}{" "} + {item.iconClass && }{" "} + {item.submenu && (
    -

    {homeItem.title}

    +

    + {homeItem.title} +

    ))} @@ -100,7 +116,11 @@ export default function Nav() { ) : (
  • setsubParentActive((pre) => @@ -113,6 +133,7 @@ export default function Nav() { )} + {subItem.submenu && (