|
|
|
@ -38,93 +38,91 @@ const ButtonDesign = ({ |
|
|
|
|
circleArrow, |
|
|
|
|
}) => { |
|
|
|
|
return ( |
|
|
|
|
<div> |
|
|
|
|
<section className="w-11/12 mx-auto p-4 bg-white rounded-md shadow-md my-8"> |
|
|
|
|
<div className="flex items-center justify-between"> |
|
|
|
|
<h2 className="text-lg text-black">طراحی دکمه های سایت</h2> |
|
|
|
|
<section className="w-11/12 mx-auto p-4 bg-white rounded-md shadow-md my-8"> |
|
|
|
|
<div className="flex items-center justify-between"> |
|
|
|
|
<h2 className="text-lg text-black">طراحی دکمه های سایت</h2> |
|
|
|
|
</div> |
|
|
|
|
<div className="my-4"> |
|
|
|
|
<p className="leading-10"> |
|
|
|
|
نام این کامپوننت |
|
|
|
|
<span className="bg-blue-400 text-white rounded shadow-sm px-2 py-1 mx-2"> |
|
|
|
|
buttonDesign |
|
|
|
|
</span> |
|
|
|
|
است. |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{/* Button UI Design */} |
|
|
|
|
<div className="flex flex-wrap justify-around items-center"> |
|
|
|
|
<div> |
|
|
|
|
<button |
|
|
|
|
className={`flex items-center text-sm md:text-base ${buttonBgColor} ${buttonTextColor} ${buttonBorder} ${buttonBorderColor} ${buttonBorderRadius} ${buttonPaddingX} ${buttonPaddingY}`} |
|
|
|
|
> |
|
|
|
|
اطلاعات بیشتر |
|
|
|
|
{leftArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteLeftArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{rightArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteRightArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{upwardArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteUpwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{downwardArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteDownwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{leftArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackLeftArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{rightArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackRightArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{upwardArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackUpwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{downwardArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackDownwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{circleArrow && ( |
|
|
|
|
<span className={`rounded-full p-2 mr-2 ${circleArrowBgClr} `}> |
|
|
|
|
<img src={whiteLeftArrow} alt="" className="w-4" /> |
|
|
|
|
</span> |
|
|
|
|
)} |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
<div className="my-4"> |
|
|
|
|
<p className="leading-10"> |
|
|
|
|
نام این کامپوننت |
|
|
|
|
<span className="bg-blue-400 text-white rounded shadow-sm px-2 py-1 mx-2"> |
|
|
|
|
buttonDesign |
|
|
|
|
</span> |
|
|
|
|
است. |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{/* Button UI Design */} |
|
|
|
|
<div className="flex flex-wrap justify-around items-center"> |
|
|
|
|
<div> |
|
|
|
|
<button |
|
|
|
|
className={`flex items-center text-sm md:text-base ${buttonBgColor} ${buttonTextColor} ${buttonBorder} ${buttonBorderColor} ${buttonBorderRadius} ${buttonPaddingX} ${buttonPaddingY}`} |
|
|
|
|
> |
|
|
|
|
اطلاعات بیشتر |
|
|
|
|
{leftArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteLeftArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{rightArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteRightArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{upwardArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteUpwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{downwardArrowWhite && ( |
|
|
|
|
<img |
|
|
|
|
src={whiteDownwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{leftArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackLeftArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{rightArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackRightArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{upwardArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackUpwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{downwardArrowBlack && ( |
|
|
|
|
<img |
|
|
|
|
src={blackDownwardArrow} |
|
|
|
|
alt="" |
|
|
|
|
className={`${imageMarginRight} ${imageWidth} ${imageHeight} `} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{circleArrow && ( |
|
|
|
|
<span className={`rounded-full p-2 mr-2 ${circleArrowBgClr} `}> |
|
|
|
|
<img src={whiteLeftArrow} alt="" className="w-4" /> |
|
|
|
|
</span> |
|
|
|
|
)} |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</section> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</section> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|