From 24eae462b92178801ad8f777456991bbefb8bb9e Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 15 May 2022 18:38:31 +0430 Subject: [PATCH] update src/components/SingleProduct/ProductDesign1/index.js and src/components/SingleProduct/VodDesign1/index.js --- .../SingleProduct/VodDesign1/index.js | 362 ++++++++---------- 1 file changed, 170 insertions(+), 192 deletions(-) diff --git a/src/components/SingleProduct/VodDesign1/index.js b/src/components/SingleProduct/VodDesign1/index.js index 374943e..50df360 100644 --- a/src/components/SingleProduct/VodDesign1/index.js +++ b/src/components/SingleProduct/VodDesign1/index.js @@ -1,19 +1,23 @@ import React, { useEffect, useState } from "react"; -import StarRating from "../StarRating"; -import ReactTooltip from "react-tooltip"; +import TagDesign1 from "../../Tag/TagDesign1"; +import ButtonDivTag from "../../ButtonDesign/ButtonDivTag"; +import Button from "../../ButtonDesign/Button"; +import StarRating from "../../Rating/StarRating1"; +import Tooptip1 from "../../Tooltip/Tooltip1"; +import AnimatedProgressbar1 from "../../ProgressBar/AnimatedProgressbar1"; -import watermelon from "./watermelon.png"; -import video from "./danovin.mp4"; +import watermelon from "images/VodDesign1watermelon.png"; +import video from "images/VodDesign1danovin.mp4"; -import discountImg from "./discount.png"; +import discountImg from "images/VodDesign1discount.png"; -import heart from "./vuesax-linear-heart.svg"; -import YellowDotIcon from "./yellowDotIcon.svg"; -import RedDotIcon from "./redDotIcon.svg"; -import PurpleDotIcon from "./purpleDotIcon.svg"; -import LightBlueDotIcon from "./lightBlueDotIcon.svg"; -import whitePlayIcon from "./white-play-button-icon.svg"; +import heart from "images/VodDesign1vuesax-linear-heart.svg"; +import YellowDotIcon from "images/VodDesign1yellowDotIcon.svg"; +import RedDotIcon from "images/VodDesign1redDotIcon.svg"; +import PurpleDotIcon from "images/VodDesign1purpleDotIcon.svg"; +import LightBlueDotIcon from "images/VodDesign1ightBlueDotIcon.svg"; +import whitePlayIcon from "images/VodDesign1white-play-button-icon.svg"; const VodDesign1 = ({ productColor, @@ -38,188 +42,176 @@ const VodDesign1 = ({ priceStarAlignment, rangeWidth, }) => { - const [progressFlag, setProgressFlag] = useState(false); - // const [openModal, setOpenModal] = useState(false); - useEffect(() => { - setTimeout(() => { - setProgressFlag(true); - }, 1000); - }); return ( -
- رویه باتن پلی / عکس کلیک کنید - {/* product UI Design */} -
-
+
+
+ {/* product image */} +
+ {/* icons on image */} +
+ {discountPricePercent && ( + + )} + {likeBtn && ( +
+ {/* play button */}
setOpenModal(true)} > - {/* product image */} + setOpenModal(true)} + /> +
+ {/* select Color */} + {tooltip && ( +
+ +
+ )} +
+ {/* product content */} +
+ {/* content */} +
- {/* icons on image */} -
- {discountPricePercent && ( -
-

- 23% -

-
- )} - {likeBtn && ( -
- -
- )} - {discount && ( -
- -
- )} -
- {/* play button */} -
setOpenModal(true)} - > - setOpenModal(true)} +

{productTitle}

{" "} + {productCat && ( + -
- {/* select Color */} - {productColor && ( -
- {/* {colors.map((color,index))} */} - - -
)}
- {/* product content */} -
- {/* content */} -
-
-

- نسخه چاپی علموم تجربه هفتم -

- {productCat && ( - - پایه سوم - - )} -
- {productContent && ( -

- این کتاب شامل گلدان و گیاه و خاک می باشد و همچنین آپشن های - خوب دیگری نیز دارد. -

- )} -
- {/* price */} + {/* productContent */} + {productContent && ( +

{productContent}

+ )} +
+ {/* price */} +
+ {priceHolder && (
- {priceHolder && ( + {/* price */} +
- {/* price */} -
-
- {priceTitle && ( - - قیمت - - )} - {discountPrice && ( -

- قیمت 140تومان -

- )} -
-

- 111.000تومان + {priceTitle && ( + + قیمت + + )} + {discountPrice && ( +

+ قیمت 140تومان

-
- {/* add to cart */} - {addToCartHolder && ( - )}
- )} - {star && ( -
- - - 39 - -
+

+ 111.000تومان +

+
+ {/* add to cart */} + {addToCartHolder && ( + )}
- {productTags && ( -
- - - -
- )} - {rangeHolder && ( -
-
-
- )} -
+ )} + {star && ( +
+ + + 39 + +
+ )}
+ {productTags && ( +
+ {productTags.map((item, index) => ( + + ))} +
+ )} + {progressBar && ( + + )}
@@ -260,25 +252,11 @@ const VodDesign1 = ({
-
+ ); }; -// hover:-translate-y-2 -export default VodDesign1; - -// text colors i used for product title: -// text-darkCrimsonTextColor -// text-productTitle -// text color i used for product excerpt: -// text-productContent - -// text color i used for product cat: -// text-darkCrimsonTextColor - -// bg color i used for play button icon: -// bg-playButtonIcon -// bg-playButtonIcon2 +export default VodDesign1; VodDesign1.defaultProps = { colors: [