diff --git a/src/component/product/ProductFactory.jsx b/src/component/product/ProductFactory.jsx
index eb831a0..744473d 100644
--- a/src/component/product/ProductFactory.jsx
+++ b/src/component/product/ProductFactory.jsx
@@ -1,10 +1,16 @@
import React from "react";
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
-import getImage from "../../utils/getImage";
+// import getImage from "../../utils/getImage";
import ProductStart from "./ProductStart";
-
+import { useLocation } from 'react-router-dom';
export default function ProductFactory(){
+ const location = useLocation();
+ const pathname = location.pathname;
+
+ // Split the pathname by '/' and get the last element
+ const lastPart = pathname.split('/').pop();
+ console.log(lastPart)
return(
<>
diff --git a/src/component/product/ProductStart.jsx b/src/component/product/ProductStart.jsx
index fe01473..7ddcdcc 100644
--- a/src/component/product/ProductStart.jsx
+++ b/src/component/product/ProductStart.jsx
@@ -19,7 +19,7 @@ export default function ProductStart(){
{/*
})
*/}
-
Information
+
Subscription
Start with your goals in mind and then work possible.ith yand Goals. If the plan doesn’t support the vision then change it!
-
diff --git a/src/css/style.scss b/src/css/style.scss
index 0cfa99b..88f8f01 100644
--- a/src/css/style.scss
+++ b/src/css/style.scss
@@ -88,6 +88,10 @@
border-radius: 5px;
margin: 2px;
}
-
+.subscribe-box{
+ width: 100%;
+ padding: 10px;
+ text-align: center;
+}
diff --git a/src/utils/productpath.js b/src/utils/productpath.js
new file mode 100644
index 0000000..8b6ff9b
--- /dev/null
+++ b/src/utils/productpath.js
@@ -0,0 +1,9 @@
+let productPath = (product_uid) => {
+ if (!product_uid) {
+ return "/product/"; // require(`../assets/img/logo.png`);
+ } else {
+ return "/product/"+ product_uid; // require(`../assets/img/${location}`);
+ }
+};
+
+export default productPath
\ No newline at end of file