diff --git a/package.json b/package.json
index 9c9f6e4..ab12438 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.50.1",
+ "react-image": "^4.1.0",
"react-imask": "^7.5.0",
"valtio": "^1.13.0",
"zod": "^3.22.4"
diff --git a/src/components/reusable/wrapper.tsx b/src/components/reusable/wrapper.tsx
index 88d6bb9..823b30b 100644
--- a/src/components/reusable/wrapper.tsx
+++ b/src/components/reusable/wrapper.tsx
@@ -37,7 +37,7 @@ const Wrapper = (props: WrapperProps) => {
}
}
-
{props.title}
+ {props.title}
{props.children}
diff --git a/src/pages/catalog/[code].tsx b/src/pages/catalog/[code].tsx
index 60ee6ac..efd58af 100644
--- a/src/pages/catalog/[code].tsx
+++ b/src/pages/catalog/[code].tsx
@@ -1,4 +1,4 @@
-import {BreadcrumbItem, Breadcrumbs, Button} from "@nextui-org/react";
+import {BreadcrumbItem, Breadcrumbs, Button, Skeleton, Spinner} from "@nextui-org/react";
import HomeIcon from "../../../public/home_icon.svg";
import Link from "next/link";
import axios from "axios";
@@ -11,6 +11,7 @@ import {useSnapshot} from "valtio";
import useClient from "@/hooks/useClient";
import LocalAPI from "@/service/localAPI";
import {useQuery, useQueryClient, useMutation} from "@tanstack/react-query";
+import {Img} from 'react-image'
const OilCard = ({product}: InferGetStaticPropsType) => {
const {favourites} = useSnapshot(favouritesStore)
@@ -56,33 +57,32 @@ const OilCard = ({product}: InferGetStaticPropsType) => {
{product.name}
-
- {/*TODO image*/}
- {product.properties.main_image &&

}
-
+
+ {isClient && product.properties.main_image &&

}/>}
+
Артикул: {product.properties.vendor_code}
-
{product.name}
+ className={"text-sm md:text-xl text-[#E0E3E3] mb-7 block"}>Артикул: {product.properties.vendor_code}
+
{product.name}
Категория: {product.properties.category}
+ className={"text-base md:text-xl block mb-7 text-[#E0E3E3]"}>Категория: {product.properties.category}
Вязкость: {product.properties.viscosity}
+ className={"text-base md:text-xl block mb-7 text-[#E0E3E3]"}>Вязкость: {product.properties.viscosity}
Тип: {product.properties.oil_type}
+ className={"text-base md:text-xl block mb-7 text-[#E0E3E3]"}>Тип: {product.properties.oil_type}
-
-
+
-
- {product.price.BASE} ₽
+
+ {`${product.price.BASE}`.replace(/\B(?=(\d{3})+(?!\d))/g, ' ')} ₽
1 шт
{isClient &&
-