diff --git a/src/components/CatalogInfoHeader.tsx b/src/components/CatalogInfoHeader.tsx index b336100..96ea824 100644 --- a/src/components/CatalogInfoHeader.tsx +++ b/src/components/CatalogInfoHeader.tsx @@ -26,17 +26,35 @@ const CatalogInfoHeader: React.FC = ({
{breadcrumbs && breadcrumbs.length > 0 && ( -
+
{breadcrumbs.map((bc, idx) => ( {idx > 0 &&
} {bc.href ? ( - -
{bc.label}
+
+
{bc.label}
+ +
) : ( - -
{bc.label}
+ +
{bc.label}
+
)}
diff --git a/src/components/CatalogProductCard.tsx b/src/components/CatalogProductCard.tsx index 5d2f99e..9c69bbb 100644 --- a/src/components/CatalogProductCard.tsx +++ b/src/components/CatalogProductCard.tsx @@ -95,7 +95,12 @@ const CatalogProductCard: React.FC = ({ }; return ( -
+
= ({ {/* Делаем картинку и контент кликабельными для перехода на card */} - + {title}
{discount}
@@ -122,12 +135,18 @@ const CatalogProductCard: React.FC = ({ {priceElement ? (
{priceElement}
) : ( -
{price}
+
+ {price} + +
)}
{oldPrice}
-
{title}
-
{brand}
+
{title}
+
+ {brand} +
+ {/* Обновляем кнопку купить */} diff --git a/src/components/JsonLdScript.tsx b/src/components/JsonLdScript.tsx new file mode 100644 index 0000000..1ab715a --- /dev/null +++ b/src/components/JsonLdScript.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import { generateJsonLdScript } from '@/lib/schema'; + +interface JsonLdScriptProps { + schema: object; +} + +// Компонент для вставки JSON-LD разметки +const JsonLdScript: React.FC = ({ schema }) => { + return ( +