|
|
@ -62,78 +62,124 @@ useEffect(() => { |
|
|
|
} |
|
|
|
} |
|
|
|
const mobileOptions = [ |
|
|
|
const mobileOptions = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'صفحه اصلی', |
|
|
|
title: "صفحه اصلی", |
|
|
|
icon: <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
icon: ( |
|
|
|
<path d="M9.02 2.84004L3.63 7.04004C2.73 7.74004 2 9.23004 2 10.36V17.77C2 20.09 3.89 21.99 6.21 21.99H17.79C20.11 21.99 22 20.09 22 17.78V10.5C22 9.29004 21.19 7.74004 20.2 7.05004L14.02 2.72004C12.62 1.74004 10.37 1.79004 9.02 2.84004Z" stroke="" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /> |
|
|
|
<svg |
|
|
|
<path d="M12 17.99V14.99" stroke="" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /> |
|
|
|
width="24" |
|
|
|
</svg> |
|
|
|
height="24" |
|
|
|
, |
|
|
|
viewBox="0 0 24 24" |
|
|
|
link: '/', |
|
|
|
fill="none" |
|
|
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
d="M9.02 2.84004L3.63 7.04004C2.73 7.74004 2 9.23004 2 10.36V17.77C2 20.09 3.89 21.99 6.21 21.99H17.79C20.11 21.99 22 20.09 22 17.78V10.5C22 9.29004 21.19 7.74004 20.2 7.05004L14.02 2.72004C12.62 1.74004 10.37 1.79004 9.02 2.84004Z" |
|
|
|
|
|
|
|
stroke="" |
|
|
|
|
|
|
|
strokeWidth="1.5" |
|
|
|
|
|
|
|
strokeLinecap="round" |
|
|
|
|
|
|
|
strokeLinejoin="round" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
d="M12 17.99V14.99" |
|
|
|
|
|
|
|
stroke="" |
|
|
|
|
|
|
|
strokeWidth="1.5" |
|
|
|
|
|
|
|
strokeLinecap="round" |
|
|
|
|
|
|
|
strokeLinejoin="round" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
link: "/myServices", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'فروشگاه', |
|
|
|
title: "فروشگاه", |
|
|
|
icon: <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|
|
|
icon: ( |
|
|
|
<path d="M2 2H3.74001C4.82001 2 5.67 2.93 5.58 4L4.75 13.96C4.61 15.59 5.89999 16.99 7.53999 16.99H18.19C19.63 16.99 20.89 15.81 21 14.38L21.54 6.88C21.66 5.22 20.4 3.87 18.73 3.87H5.82001" stroke="" strokeWidth="1.5" strokeMiterlimit="10" strokeLinecap="round" strokeLinejoin="round" /> |
|
|
|
<svg |
|
|
|
<path d="M16.25 22C16.9404 22 17.5 21.4404 17.5 20.75C17.5 20.0596 16.9404 19.5 16.25 19.5C15.5596 19.5 15 20.0596 15 20.75C15 21.4404 15.5596 22 16.25 22Z" stroke="" strokeWidth="1.5" strokeMiterlimit="10" strokeLinecap="round" strokeLinejoin="round" /> |
|
|
|
width="24" |
|
|
|
<path d="M8.25 22C8.94036 22 9.5 21.4404 9.5 20.75C9.5 20.0596 8.94036 19.5 8.25 19.5C7.55964 19.5 7 20.0596 7 20.75C7 21.4404 7.55964 22 8.25 22Z" stroke="" strokeWidth="1.5" strokeMiterlimit="10" strokeLinecap="round" strokeLinejoin="round" /> |
|
|
|
height="24" |
|
|
|
<path d="M9 8H21" stroke="inherit" strokeWidth="1.5" strokeMiterlimit="10" strokeLinecap="round" strokeLinejoin="round" /> |
|
|
|
viewBox="0 0 24 24" |
|
|
|
</svg>, |
|
|
|
fill="none" |
|
|
|
link: '/services', |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
d="M2 2H3.74001C4.82001 2 5.67 2.93 5.58 4L4.75 13.96C4.61 15.59 5.89999 16.99 7.53999 16.99H18.19C19.63 16.99 20.89 15.81 21 14.38L21.54 6.88C21.66 5.22 20.4 3.87 18.73 3.87H5.82001" |
|
|
|
|
|
|
|
stroke="" |
|
|
|
|
|
|
|
strokeWidth="1.5" |
|
|
|
|
|
|
|
strokeMiterlimit="10" |
|
|
|
|
|
|
|
strokeLinecap="round" |
|
|
|
|
|
|
|
strokeLinejoin="round" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
d="M16.25 22C16.9404 22 17.5 21.4404 17.5 20.75C17.5 20.0596 16.9404 19.5 16.25 19.5C15.5596 19.5 15 20.0596 15 20.75C15 21.4404 15.5596 22 16.25 22Z" |
|
|
|
|
|
|
|
stroke="" |
|
|
|
|
|
|
|
strokeWidth="1.5" |
|
|
|
|
|
|
|
strokeMiterlimit="10" |
|
|
|
|
|
|
|
strokeLinecap="round" |
|
|
|
|
|
|
|
strokeLinejoin="round" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
d="M8.25 22C8.94036 22 9.5 21.4404 9.5 20.75C9.5 20.0596 8.94036 19.5 8.25 19.5C7.55964 19.5 7 20.0596 7 20.75C7 21.4404 7.55964 22 8.25 22Z" |
|
|
|
|
|
|
|
stroke="" |
|
|
|
|
|
|
|
strokeWidth="1.5" |
|
|
|
|
|
|
|
strokeMiterlimit="10" |
|
|
|
|
|
|
|
strokeLinecap="round" |
|
|
|
|
|
|
|
strokeLinejoin="round" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
d="M9 8H21" |
|
|
|
|
|
|
|
stroke="inherit" |
|
|
|
|
|
|
|
strokeWidth="1.5" |
|
|
|
|
|
|
|
strokeMiterlimit="10" |
|
|
|
|
|
|
|
strokeLinecap="round" |
|
|
|
|
|
|
|
strokeLinejoin="round" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
link: "/services", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'پشتیبانی', |
|
|
|
title: "پشتیبانی", |
|
|
|
icon: <svg |
|
|
|
icon: ( |
|
|
|
id="vuesax_linear_sms" |
|
|
|
<svg |
|
|
|
data-name="vuesax/linear/sms" |
|
|
|
id="vuesax_linear_sms" |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
data-name="vuesax/linear/sms" |
|
|
|
width="24" |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
height="24" |
|
|
|
width="24" |
|
|
|
viewBox="0 0 46.091 46.091" |
|
|
|
height="24" |
|
|
|
|
|
|
|
viewBox="0 0 46.091 46.091" |
|
|
|
> |
|
|
|
> |
|
|
|
<g id="sms"> |
|
|
|
<g id="sms"> |
|
|
|
<path |
|
|
|
<path |
|
|
|
id="Vector" |
|
|
|
id="Vector" |
|
|
|
d="M28.807,32.648H9.6c-5.761,0-9.6-2.881-9.6-9.6V9.6C0,2.881,3.841,0,9.6,0h19.2c5.761,0,9.6,2.881,9.6,9.6V23.046C38.409,29.767,34.568,32.648,28.807,32.648Z" |
|
|
|
d="M28.807,32.648H9.6c-5.761,0-9.6-2.881-9.6-9.6V9.6C0,2.881,3.841,0,9.6,0h19.2c5.761,0,9.6,2.881,9.6,9.6V23.046C38.409,29.767,34.568,32.648,28.807,32.648Z" |
|
|
|
transform="translate(3.841 6.722)" |
|
|
|
transform="translate(3.841 6.722)" |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
stroke="" |
|
|
|
stroke="" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth="3" |
|
|
|
strokeWidth="3" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<path |
|
|
|
<path |
|
|
|
id="Vector-2" |
|
|
|
id="Vector-2" |
|
|
|
data-name="Vector" |
|
|
|
data-name="Vector" |
|
|
|
d="M19.2,0,13.194,4.8a6.08,6.08,0,0,1-7.2,0L0,0" |
|
|
|
d="M19.2,0,13.194,4.8a6.08,6.08,0,0,1-7.2,0L0,0" |
|
|
|
transform="translate(13.443 17.284)" |
|
|
|
transform="translate(13.443 17.284)" |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
stroke="" |
|
|
|
stroke="" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinecap="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeLinejoin="round" |
|
|
|
strokeWidth="3" |
|
|
|
strokeWidth="3" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<path |
|
|
|
<path |
|
|
|
id="Vector-3" |
|
|
|
id="Vector-3" |
|
|
|
data-name="Vector" |
|
|
|
data-name="Vector" |
|
|
|
d="M0,0H46.091V46.091H0Z" |
|
|
|
d="M0,0H46.091V46.091H0Z" |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
opacity="0" |
|
|
|
opacity="0" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</g> |
|
|
|
</g> |
|
|
|
</svg> |
|
|
|
</svg> |
|
|
|
, |
|
|
|
), |
|
|
|
link: '/messages', |
|
|
|
link: "/messages", |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
|
|
|
|
// title: 'حساب کاربری',
|
|
|
|
|
|
|
|
// icon: <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
|
|
|
// <path d="M12.1601 10.87C12.0601 10.86 11.9401 10.86 11.8301 10.87C9.45006 10.79 7.56006 8.84 7.56006 6.44C7.56006 3.99 9.54006 2 12.0001 2C14.4501 2 16.4401 3.99 16.4401 6.44C16.4301 8.84 14.5401 10.79 12.1601 10.87Z" stroke="" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
|
|
|
|
|
|
// <path d="M7.15997 14.56C4.73997 16.18 4.73997 18.82 7.15997 20.43C9.90997 22.27 14.42 22.27 17.17 20.43C19.59 18.81 19.59 16.17 17.17 14.56C14.43 12.73 9.91997 12.73 7.15997 14.56Z" stroke="" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
|
|
|
|
|
|
// </svg>
|
|
|
|
|
|
|
|
// ,
|
|
|
|
|
|
|
|
// link: '/dashboard',
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
const [navId, setNavId] = useState(initai_navId); |
|
|
|
const [navId, setNavId] = useState(initai_navId); |
|
|
@ -149,8 +195,8 @@ useEffect(() => { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
location2.pathname.includes('azmoon_list') || location2.pathname.includes('messages') || location2.pathname.includes('shoppingCart') || location2.pathname.includes('register') ? null : |
|
|
|
location2.pathname.includes('azmoon_list') || location2.pathname.includes('messages') || location2.pathname.includes('shoppingCart') || location2.pathname.includes('register') ? null : |
|
|
|
<div className="w-full flex fixed bg-white justify-center z-20 py-4 bottom-0"> |
|
|
|
<div className="w-full flex fixed bg-white justify-center z-20 h-20 bottom-0"> |
|
|
|
<div className="flex w-11/12 bg-white justify-between rtl border border-red82OP rounded-xl"> |
|
|
|
<div className="flex w-11/12 h-full bg-white justify-between rtl border border-red82OP rounded-xl"> |
|
|
|
{ |
|
|
|
{ |
|
|
|
mobileOptions.map( |
|
|
|
mobileOptions.map( |
|
|
|
(item, index) => ( |
|
|
|
(item, index) => ( |
|
|
@ -180,84 +226,10 @@ useEffect(() => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="back-item-img w-full h-[12.5%] bg-red52 absolute right-0 z-20 transition-all duration-300" |
|
|
|
className="back-item-img w-full h-[12.5%] bg-red52 absolute right-0 z-20 transition-all duration-300" |
|
|
|
// style={
|
|
|
|
|
|
|
|
// initai_navId === 2
|
|
|
|
|
|
|
|
// ? { top: `${(3 / 12) * 100}%` }
|
|
|
|
|
|
|
|
// : initai_navId === 5
|
|
|
|
|
|
|
|
// ? { top: `${(6 / 12) * 100}%` }
|
|
|
|
|
|
|
|
// :
|
|
|
|
|
|
|
|
// null
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
></div> |
|
|
|
></div> |
|
|
|
|
|
|
|
|
|
|
|
{/* ------------ */} |
|
|
|
{/* ------------ */} |
|
|
|
<div className="nav-menu-container w-full h-3/4 flex-col items-center absolute z-30 right-0"> |
|
|
|
<div className="nav-menu-container w-full h-3/4 flex-col items-center absolute z-30 right-0"> |
|
|
|
{/* <Link |
|
|
|
|
|
|
|
to="/" |
|
|
|
|
|
|
|
className="nav-menu-container-item w-full h-1/6 flex flex-col items-center justify-center hover:bg-color2_5 cursor-pointer" |
|
|
|
|
|
|
|
onClick={() => chaneNav(1)} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div className="w-full flex items-center justify-center" style={{width: '7vw'}}> |
|
|
|
|
|
|
|
<svg |
|
|
|
|
|
|
|
id="vuesax_bold_element-4" |
|
|
|
|
|
|
|
data-name="vuesax/bold/element-4" |
|
|
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
|
|
|
|
width="46.091" |
|
|
|
|
|
|
|
height="46.091" |
|
|
|
|
|
|
|
viewBox="0 0 46.091 46.091" |
|
|
|
|
|
|
|
className="nav-menu-container-item-img w-2/6" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<g id="element-4"> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
id="Vector" |
|
|
|
|
|
|
|
d="M16.324,17.092V4.033C16.324,1.152,15.095,0,12.041,0H4.283C1.229,0,0,1.152,0,4.033V17.092c0,2.881,1.229,4.033,4.283,4.033h7.759C15.095,21.125,16.324,19.973,16.324,17.092Z" |
|
|
|
|
|
|
|
transform="translate(24.966 3.841)" |
|
|
|
|
|
|
|
fill={navId === 1 ? "#fff" : "transparent"} |
|
|
|
|
|
|
|
stroke={navId === 1 ? "none" : "#A5A8AB"} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
id="Vector-2" |
|
|
|
|
|
|
|
data-name="Vector" |
|
|
|
|
|
|
|
d="M16.324,4.033V17.092c0,2.881-1.229,4.033-4.283,4.033H4.283C1.229,21.125,0,19.973,0,17.092V4.033C0,1.152,1.229,0,4.283,0h7.759C15.095,0,16.324,1.152,16.324,4.033Z" |
|
|
|
|
|
|
|
transform="translate(4.801 21.125)" |
|
|
|
|
|
|
|
fill={navId === 1 ? "#fff" : "transparent"} |
|
|
|
|
|
|
|
stroke={navId === 1 ? "none" : "#A5A8AB"} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
id="Vector-3" |
|
|
|
|
|
|
|
data-name="Vector" |
|
|
|
|
|
|
|
d="M0,0H46.091V46.091H0Z" |
|
|
|
|
|
|
|
transform="translate(46.091 46.091) rotate(180)" |
|
|
|
|
|
|
|
fill="none" |
|
|
|
|
|
|
|
opacity="0" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
id="Vector-4" |
|
|
|
|
|
|
|
data-name="Vector" |
|
|
|
|
|
|
|
d="M16.324,9.41V4.033C16.324,1.152,15.095,0,12.041,0H4.283C1.229,0,0,1.152,0,4.033V9.41c0,2.881,1.229,4.033,4.283,4.033h7.759C15.095,13.443,16.324,12.291,16.324,9.41Z" |
|
|
|
|
|
|
|
transform="translate(24.966 28.807)" |
|
|
|
|
|
|
|
fill={navId === 1 ? "#fff" : "transparent"} |
|
|
|
|
|
|
|
stroke={navId === 1 ? "none" : "#A5A8AB"} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<path |
|
|
|
|
|
|
|
id="Vector-5" |
|
|
|
|
|
|
|
data-name="Vector" |
|
|
|
|
|
|
|
d="M16.324,9.41V4.033C16.324,1.152,15.095,0,12.041,0H4.283C1.229,0,0,1.152,0,4.033V9.41c0,2.881,1.229,4.033,4.283,4.033h7.759C15.095,13.443,16.324,12.291,16.324,9.41Z" |
|
|
|
|
|
|
|
transform="translate(4.801 3.841)" |
|
|
|
|
|
|
|
fill={navId === 1 ? "#fff" : "transparent"} |
|
|
|
|
|
|
|
stroke={navId === 1 ? "none" : "#A5A8AB"} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</g> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="nav-menu-container-item-title px-2" |
|
|
|
|
|
|
|
style={1 === navId ? { color: "#fff", fontSize: '0.7vw' } : { color: "#A5A8AB", fontSize: '0.7vw' }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
پیشخوان |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</Link> */} |
|
|
|
|
|
|
|
{/* ---------- */} |
|
|
|
|
|
|
|
<Link |
|
|
|
<Link |
|
|
|
to="/services" |
|
|
|
to="/services" |
|
|
|
className="nav-menu-container-item w-full h-1/6 flex flex-col items-center justify-center hover:bg-color2_5 cursor-pointer" |
|
|
|
className="nav-menu-container-item w-full h-1/6 flex flex-col items-center justify-center hover:bg-color2_5 cursor-pointer" |
|
|
|