|
|
|
@ -3,6 +3,7 @@ import React from "react"; |
|
|
|
|
import cartIcon from "../../../assets/icons/dark-crimson-cart-icon.svg"; |
|
|
|
|
import profileIcon from "../../../assets/icons/dark-crimson-profile-icon.svg"; |
|
|
|
|
import searchIcon from "../../../assets/icons/dark-crimson-search-box.svg"; |
|
|
|
|
import lightGraySearchIcon from "../../../assets/icons/light-gray-search-box.svg"; |
|
|
|
|
import verticalLineIcon from "../../../assets/icons/dark-crimson-vertical-line.svg"; |
|
|
|
|
|
|
|
|
|
const HeaderDesign1 = ({ |
|
|
|
@ -11,14 +12,29 @@ const HeaderDesign1 = ({ |
|
|
|
|
iconProfile, |
|
|
|
|
iconCart, |
|
|
|
|
iconSearch, |
|
|
|
|
border, |
|
|
|
|
btnRounded, |
|
|
|
|
btnPY, |
|
|
|
|
btnPX, |
|
|
|
|
loginBtnBgColor, |
|
|
|
|
loginBorderColor, |
|
|
|
|
registerBtnBgColor, |
|
|
|
|
loginTextColor, |
|
|
|
|
registerTextColor, |
|
|
|
|
menuItems, |
|
|
|
|
category, |
|
|
|
|
}) => { |
|
|
|
|
return ( |
|
|
|
|
<header className="p-4"> |
|
|
|
|
<div class="container flex justify-between items-center mx-auto py-2 px-8 md:px-14 lg:px-24 w-full bg-white rounded shadow-sm"> |
|
|
|
|
<div class="text-lg font-bold text-productPrice w-1/5 "> |
|
|
|
|
<div className="container flex justify-evenly items-center mx-auto py-2 px-8 md:px-14 lg:px-24 w-full bg-white rounded shadow-sm"> |
|
|
|
|
<div className="text-lg font-bold text-productPrice w-1/5 "> |
|
|
|
|
Design System |
|
|
|
|
</div> |
|
|
|
|
<div class="hidden lg:flex items-center justify-around w-3/5"> |
|
|
|
|
{category && ( |
|
|
|
|
<div className="text-md text-productPrice">دسته بندی ها</div> |
|
|
|
|
)} |
|
|
|
|
{menuItems && ( |
|
|
|
|
<div className="hidden lg:flex items-center justify-around w-3/5"> |
|
|
|
|
<a href="#" className="text-productPrice"> |
|
|
|
|
محصولات |
|
|
|
|
</a> |
|
|
|
@ -38,13 +54,26 @@ const HeaderDesign1 = ({ |
|
|
|
|
وبلاگ |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
<div className="bg-yellow-400"> |
|
|
|
|
<img src={lightGraySearchIcon} alt="" className="w-4 h-4" /> |
|
|
|
|
<input |
|
|
|
|
type="text" |
|
|
|
|
placeholder="نام کالا را جستجو کنید..." |
|
|
|
|
className="bg-red-100 text-xs rounded px-8 py-2" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
{loginBtn && ( |
|
|
|
|
<div className="w-1/5 flex justify-end"> |
|
|
|
|
<button className="ml-2 py-2 px-8 text-productPrice text-sm font-light rounded border border-darkCrimsonBorderColor"> |
|
|
|
|
<button |
|
|
|
|
className={`ml-2 text-sm font-light ${border} ${btnRounded} ${btnPY} ${btnPX} ${loginBtnBgColor} ${loginBorderColor} ${loginTextColor}`} |
|
|
|
|
> |
|
|
|
|
ورود |
|
|
|
|
</button> |
|
|
|
|
{/* <img src={verticalLineIcon} alt="" className="" /> */} |
|
|
|
|
<button className="py-2 px-8 text-white text-sm font-light rounded bg-darkCrimsonBgColor"> |
|
|
|
|
<button |
|
|
|
|
className={`ml-2 text-sm font-light ${border} ${btnRounded} ${btnPY} ${btnPX} ${registerBtnBgColor} ${registerTextColor}`} |
|
|
|
|
> |
|
|
|
|
ثبت نام |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
@ -72,6 +101,19 @@ export default HeaderDesign1; |
|
|
|
|
// یک تگ دیو در نظر گرفتم برای 3 تا ایکن سرچ/پروفایل/اضافه کردن به سبد خرید که اینارو انداختم داخل دیو ایکن هولدر
|
|
|
|
|
|
|
|
|
|
HeaderDesign1.defaultProps = { |
|
|
|
|
border: "border", |
|
|
|
|
loginBorderColor: "border-darkCrimsonBorderColor", |
|
|
|
|
btnRounded: "rounded-sm", |
|
|
|
|
loginBtnBgColor: "bg-white", |
|
|
|
|
loginTextColor: "text-productPrice", |
|
|
|
|
registerBtnBgColor: "bg-darkCrimsonBgColor", |
|
|
|
|
registerTextColor: "text-white", |
|
|
|
|
btnPY: "py-2", |
|
|
|
|
btnPX: "px-8", |
|
|
|
|
|
|
|
|
|
menuItems: false, |
|
|
|
|
category: true, |
|
|
|
|
// icons
|
|
|
|
|
loginBtn: true, |
|
|
|
|
|
|
|
|
|
iconHolder: false, |
|
|
|
|