master
mahdi 3 years ago
parent 72111f6451
commit 3c5eb90690
  1. 8
      src/assets/icons/dark-blue-cancle-icon.svg
  2. 8
      src/assets/icons/light-blue-cancle-icon.svg
  3. 15
      src/assets/icons/light-blue-delivery-icon.svg
  4. 8
      src/assets/icons/light-green-cancle-icon.svg
  5. 8
      src/assets/icons/light-orange-cancle-icon.svg
  6. 8
      src/assets/icons/light-purple-cancle-icon.svg
  7. 8
      src/assets/icons/light-yellow-cancle-icon.svg
  8. 250
      src/components/productTags/ProductTags.js

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10.471" height="10.471" viewBox="0 0 10.471 10.471">
<g id="vuesax_linear_card-remove" data-name="vuesax/linear/card-remove" transform="translate(-252.46 -511.461)">
<g id="card-remove" transform="translate(253.309 512.31)">
<path id="Vector" d="M0,8.774,8.774,0" fill="none" stroke="#0615ce" stroke-linecap="round" stroke-width="1.2"/>
<path id="Vector-2" data-name="Vector" d="M8.774,8.774,0,0" fill="none" stroke="#0615ce" stroke-linecap="round" stroke-width="1.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 558 B

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10.471" height="10.471" viewBox="0 0 10.471 10.471">
<g id="vuesax_linear_card-remove" data-name="vuesax/linear/card-remove" transform="translate(-252.46 -511.461)">
<g id="card-remove" transform="translate(253.309 512.31)">
<path id="Vector" d="M0,8.774,8.774,0" fill="none" stroke="#06bace" stroke-linecap="round" stroke-width="1.2"/>
<path id="Vector-2" data-name="Vector" d="M8.774,8.774,0,0" fill="none" stroke="#06bace" stroke-linecap="round" stroke-width="1.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 558 B

@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" width="15.887" height="15.887" viewBox="0 0 15.887 15.887">
<g id="vuesax_linear_group" data-name="vuesax/linear/group" transform="translate(-748 -188)">
<g id="group" transform="translate(748 188)">
<path id="Vector" d="M6.282,7.943h.662A1.328,1.328,0,0,0,8.268,6.619V0H2.31A2.645,2.645,0,0,0,0,1.357" transform="translate(1.661 1.324)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-2" data-name="Vector" d="M0,7.943A1.983,1.983,0,0,0,1.986,9.929h.662a1.324,1.324,0,1,1,2.648,0H7.943a1.324,1.324,0,1,1,2.648,0h.662a1.983,1.983,0,0,0,1.986-1.986V5.958H11.253a.664.664,0,0,1-.662-.662V3.31a.664.664,0,0,1,.662-.662h.854L10.975.669A1.335,1.335,0,0,0,9.823,0H8.605V4.634A1.328,1.328,0,0,1,7.281,5.958H6.619" transform="translate(1.324 3.31)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-3" data-name="Vector" d="M2.648,1.324A1.324,1.324,0,1,1,1.324,0,1.324,1.324,0,0,1,2.648,1.324Z" transform="translate(3.972 11.915)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-4" data-name="Vector" d="M2.648,1.324A1.324,1.324,0,1,1,1.324,0,1.324,1.324,0,0,1,2.648,1.324Z" transform="translate(9.267 11.915)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-5" data-name="Vector" d="M2.648,1.986V3.31H.662A.664.664,0,0,1,0,2.648V.662A.664.664,0,0,1,.662,0h.854Z" transform="translate(11.915 5.958)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-6" data-name="Vector" d="M0,0H3.972" transform="translate(1.324 5.296)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-7" data-name="Vector" d="M0,0H2.648" transform="translate(1.324 7.281)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-8" data-name="Vector" d="M0,0H1.324" transform="translate(1.324 9.267)" fill="none" stroke="#06bace" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="Vector-9" data-name="Vector" d="M0,0H15.887V15.887H0Z" fill="none" opacity="0"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10.471" height="10.471" viewBox="0 0 10.471 10.471">
<g id="vuesax_linear_card-remove" data-name="vuesax/linear/card-remove" transform="translate(-252.46 -511.461)">
<g id="card-remove" transform="translate(253.309 512.31)">
<path id="Vector" d="M0,8.774,8.774,0" fill="none" stroke="#5dce06" stroke-linecap="round" stroke-width="1.2"/>
<path id="Vector-2" data-name="Vector" d="M8.774,8.774,0,0" fill="none" stroke="#5dce06" stroke-linecap="round" stroke-width="1.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 558 B

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10.471" height="10.471" viewBox="0 0 10.471 10.471">
<g id="vuesax_linear_card-remove" data-name="vuesax/linear/card-remove" transform="translate(-252.46 -511.461)">
<g id="card-remove" transform="translate(253.309 512.31)">
<path id="Vector" d="M0,8.774,8.774,0" fill="none" stroke="#f7b605" stroke-linecap="round" stroke-width="1.2"/>
<path id="Vector-2" data-name="Vector" d="M8.774,8.774,0,0" fill="none" stroke="#f7b605" stroke-linecap="round" stroke-width="1.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 558 B

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10.471" height="10.471" viewBox="0 0 10.471 10.471">
<g id="vuesax_linear_card-remove" data-name="vuesax/linear/card-remove" transform="translate(-252.46 -511.461)">
<g id="card-remove" transform="translate(253.309 512.31)">
<path id="Vector" d="M0,8.774,8.774,0" fill="none" stroke="#a680ff" stroke-linecap="round" stroke-width="1.2"/>
<path id="Vector-2" data-name="Vector" d="M8.774,8.774,0,0" fill="none" stroke="#a680ff" stroke-linecap="round" stroke-width="1.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 558 B

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10.471" height="10.471" viewBox="0 0 10.471 10.471">
<g id="vuesax_linear_card-remove" data-name="vuesax/linear/card-remove" transform="translate(-252.46 -511.461)">
<g id="card-remove" transform="translate(253.309 512.31)">
<path id="Vector" d="M0,8.774,8.774,0" fill="none" stroke="#c8ee49" stroke-linecap="round" stroke-width="1.2"/>
<path id="Vector-2" data-name="Vector" d="M8.774,8.774,0,0" fill="none" stroke="#c8ee49" stroke-linecap="round" stroke-width="1.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 558 B

@ -7,7 +7,15 @@ import blackRightIcon from "../../assets/icons/black-right-icon.svg";
import blackSettingIcon from "../../assets/icons/black-settings-icon.svg";
import lightGreenGiftIcon from "../../assets/icons/light-green-gift-icon.svg";
import lightPurpleDoubleRightIcon from "../../assets/icons/light-purple-double-right-icon.svg";
import darkblueNewspaperIcon from "../../assets/icons/dark-blue-newspaper-icon.svg";
import darkBlueNewspaperIcon from "../../assets/icons/dark-blue-newspaper-icon.svg";
import darkBlueCancleIcon from "../../assets/icons/dark-blue-cancle-icon.svg";
import lightBlueCancleIcon from "../../assets/icons/light-blue-cancle-icon.svg";
import lightBlueDeliveryIcon from "../../assets/icons/light-blue-delivery-icon.svg";
import lightGreenCancleIcon from "../../assets/icons/light-green-cancle-icon.svg";
import lightOrangeCancleIcon from "../../assets/icons/light-orange-cancle-icon.svg";
import lightPurpleCancleIcon from "../../assets/icons/light-purple-cancle-icon.svg";
import lightYelloCancleIcon from "../../assets/icons/light-yellow-cancle-icon.svg";
const ProductTags = ({
tagtitlecolor,
@ -20,6 +28,13 @@ const ProductTags = ({
purpleCheckboxIcon,
blueNewspaperIcon,
cancleIcon,
darkBlueIconCancle,
lightBlueIconCancle,
lightBlueIconDelivery,
lightGreenIconCancle,
lightOrangeIconCancle,
lightPurpleIconCancle,
lightYelloIconCancle,
}) => {
return (
<section className="w-11/12 mx-auto p-4 bg-white rounded-md shadow-md my-8">
@ -30,7 +45,6 @@ const ProductTags = ({
</div>
{/* product UI Design */}
<div className="flex flex-wrap items-center justify-around ">
{/* 1 */}
<div className="mt-2 flex flex-wrap w-1/5 ">
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
@ -38,185 +52,8 @@ const ProductTags = ({
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
ارسال رایگان
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
بچسب های دیگر
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
امتحان سخت
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
بسته بندی به صورت کادو
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
امتحان کادو
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
امتحان آسان
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
{lightBlueIconCancle && (
<img src={lightBlueDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
@ -235,41 +72,29 @@ const ProductTags = ({
/>
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
<img src={darkBlueNewspaperIcon} alt="" className="ml-1 w-3" />
)}
بسته بندی به صورت کادو
ارسال رایگان
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
<button
className={`product-tag-button ${tagtitlecolor} ${tagBorderColor} ${tagBgColor} `}
>
{deliveryIcon && (
<img src={blackDeliveryIcon} alt="" className="ml-1 w-3" />
)}
{rightIcon && (
<img src={blackRightIcon} alt="" className="ml-1 w-3" />
{darkBlueIconCancle && (
<img src={darkBlueCancleIcon} alt="" className="mr-2 w-2" />
)}
{darkSettingsIcon && (
<img src={blackSettingIcon} alt="" className="ml-1 w-3" />
{lightBlueIconDelivery && (
<img src={lightBlueCancleIcon} alt="" className="mr-2 w-2" />
)}
{greenGiftIcon && (
<img src={lightGreenGiftIcon} alt="" className="ml-1 w-3" />
{lightGreenIconCancle && (
<img src={lightGreenCancleIcon} alt="" className="mr-2 w-2" />
)}
{purpleCheckboxIcon && (
<img
src={lightPurpleDoubleRightIcon}
alt=""
className="ml-1 w-3"
/>
{lightOrangeIconCancle && (
<img src={lightOrangeCancleIcon} alt="" className="mr-2 w-2" />
)}
{blueNewspaperIcon && (
<img src={darkblueNewspaperIcon} alt="" className="ml-1 w-3" />
{lightPurpleIconCancle && (
<img src={lightPurpleCancleIcon} alt="" className="mr-2 w-2" />
)}
آزمون
{cancleIcon && (
<img src={blackCancleIcon} alt="" className="mr-2 w-2" />
{lightYelloIconCancle && (
<img src={lightYelloCancleIcon} alt="" className="mr-2 w-2" />
)}
</button>
</div>
@ -311,11 +136,18 @@ ProductTags.defaultProps = {
tagBgColor: "bg-lightOrangeBgColor",
tagBorderColor: "border-lightOrangeBorderColor",
// for icons
deliveryIcon: true,
deliveryIcon: false,
rightIcon: false,
darkSettingsIcon: false,
greenGiftIcon: false,
purpleCheckboxIcon: false,
blueNewspaperIcon: false,
cancleIcon: true,
cancleIcon: false,
darkBlueIconCancle: false,
lightBlueIconCancle: false,
lightBlueIconDelivery: false,
lightGreenIconCancle: false,
lightOrangeIconCancle: true,
lightPurpleIconCancle: false,
lightYelloIconCancle: false,
};

Loading…
Cancel
Save