diff --git a/src/App.js b/src/App.js index c8af198..5adddaa 100644 --- a/src/App.js +++ b/src/App.js @@ -11,11 +11,13 @@ import BlogDesign4 from "./components/Blogs/design4/BlogDesign4"; import BlogDesign5 from "./components/Blogs/design5/BlogDesign5"; import BlogDesign6 from "./components/Blogs/design6/BlogDesign6"; import HeaderDesign1 from "./components/Header/desgin1/HeaderDesign1"; +import VodProductDesign from "./components/vodProductDesign/VodProductDesign"; function App() { return (
+ {/* */} {/* */} {/* */} diff --git a/src/assets/icons/dark-play-button-icon.svg b/src/assets/icons/dark-play-button-icon.svg new file mode 100644 index 0000000..dc47814 --- /dev/null +++ b/src/assets/icons/dark-play-button-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/icons/white-play-button-icon.svg b/src/assets/icons/white-play-button-icon.svg new file mode 100644 index 0000000..fbbe9f7 --- /dev/null +++ b/src/assets/icons/white-play-button-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/productDesign/ProductDesign.js b/src/components/productDesign/ProductDesign.js index 90bf8fd..f9d29a0 100644 --- a/src/components/productDesign/ProductDesign.js +++ b/src/components/productDesign/ProductDesign.js @@ -5,13 +5,15 @@ import StarRating from "../starRating/StarRating"; import book from "../../assets/images/goldon.png"; import watermelon from "../../assets/images/watermelon.png"; -import heart from "../../assets/icons/vuesax-linear-heart.svg"; import discountImg from "../../assets/icons/discount.png"; +import heart from "../../assets/icons/vuesax-linear-heart.svg"; import YellowDotIcon from "../../assets/icons/yellowDotIcon.svg"; import RedDotIcon from "../../assets/icons/redDotIcon.svg"; import PurpleDotIcon from "../../assets/icons/purpleDotIcon.svg"; import LightBlueDotIcon from "../../assets/icons/lightBlueDotIcon.svg"; +import whitePlayIcon from "../../assets/icons/white-play-button-icon.svg"; +import darkPlayIcon from "../../assets/icons/dark-play-button-icon.svg"; const ProductDesign = ({ colors, @@ -106,6 +108,11 @@ const ProductDesign = ({ )}
+ {/* play button */} +
+ + {/* transform -translate-x-1/2 -translate-y-1/2 */} +
{/* select Color */} {colors && (
diff --git a/src/components/vodProductDesign/VodProductDesign.js b/src/components/vodProductDesign/VodProductDesign.js new file mode 100644 index 0000000..8c91c33 --- /dev/null +++ b/src/components/vodProductDesign/VodProductDesign.js @@ -0,0 +1,179 @@ +import React from "react"; + +import StarRating from "../starRating/StarRating"; + +import book from "../../assets/images/goldon.png"; +import watermelon from "../../assets/images/watermelon.png"; + +import discountImg from "../../assets/icons/discount.png"; + +import heart from "../../assets/icons/vuesax-linear-heart.svg"; +import YellowDotIcon from "../../assets/icons/yellowDotIcon.svg"; +import RedDotIcon from "../../assets/icons/redDotIcon.svg"; +import PurpleDotIcon from "../../assets/icons/purpleDotIcon.svg"; +import LightBlueDotIcon from "../../assets/icons/lightBlueDotIcon.svg"; +import whitePlayIcon from "../../assets/icons/white-play-button-icon.svg"; +import darkPlayIcon from "../../assets/icons/dark-play-button-icon.svg"; + +const VodProductDesign = ({ + colors, + likeBtn, + discount, + discountPricePercent, + discountPrice, + productContent, + star, + productTags, + priceDirection, + productTitleAlignment, + priceHolder, + productHolderBorder, + productHolderBorderColor, + productTitleColor, + productCat, + rangeHolder, + verticalImg, + horizontalImg, +}) => { + return ( +
+ {/* product UI Design */} +
+
+
+
+ {/* play button */} +
+ + {/* transform -translate-x-1/2 -translate-y-1/2 */} +
+ {/* select Color */} + {colors && ( +
+ + + + +
+ )} +
+
+
+

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

+ {productContent && ( +

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

+ )} + {productCat && ( + + پایه سوم + + )} +
+ {star && ( +
+ + + 39 + +
+ )} + {priceHolder && ( +
+ {/* price */} +
+
+ + قیمت + + {discountPrice && ( +

+ 145تومان +

+ )} +
+

+ 145.000تومان +

+
+ {/* add to cart */} + +
+ )} + {productTags && ( +
+ + + +
+ )} + {rangeHolder && ( +
+
+
+ )} +
+
+
+
+
+ ); +}; + +export default VodProductDesign; + +VodProductDesign.defaultProps = { + colors: true, + likeBtn: false, + discount: false, + discountPricePercent: false, + discountPrice: false, + productContent: false, + star: false, + productTags: false, + priceHolder: false, + productCat: true, + rangeHolder: true, + verticalImg: false, + horizontalImg: true, + productTitleColor: "text-darkCrimsonTextColor", + productHolderBorder: "border-0", + productHolderBorderColor: "border-grayBorderColor", + productTitleAlignment: "text-justify", + + priceDirection: "flex-row", +}; diff --git a/tailwind.config.js b/tailwind.config.js index 61494ab..a5c0f55 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -51,6 +51,7 @@ module.exports = { darkCrimsonBgColor: "#132F52", rangeBgColor: "#D3E9FF", rangeFillBgColor: "#68A8E6", + playButtonIcon: "#0D0D0D99", }), borderColor: (theme) => ({ ...theme("colors"),