Add mobile drawer new icons
This commit is contained in:
@@ -38,7 +38,7 @@ watch(
|
|||||||
() => route.fullPath,
|
() => route.fullPath,
|
||||||
() => {
|
() => {
|
||||||
closeSideDrawer();
|
closeSideDrawer();
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -88,14 +88,17 @@ watch(
|
|||||||
v-else
|
v-else
|
||||||
to="/signin"
|
to="/signin"
|
||||||
class="w-full flex items-center justify-between gap-4 p-2 transition-all"
|
class="w-full flex items-center justify-between gap-4 p-2 transition-all"
|
||||||
active-class="bg-black rounded-md text-white **:stroke-white"
|
active-class="bg-black rounded-md text-white"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<div class="size-5 flex-center">
|
<div class="size-6 flex-center">
|
||||||
<Icon
|
<!-- <Icon
|
||||||
name="ci:profile"
|
name="ci:profile"
|
||||||
size="18"
|
size="18"
|
||||||
class="**:stroke-black"
|
class="**:stroke-black"
|
||||||
|
/> -->
|
||||||
|
<NuxtImg
|
||||||
|
src="/img/mobile-drawer/profile.gif"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -132,14 +135,12 @@ watch(
|
|||||||
<NuxtLink
|
<NuxtLink
|
||||||
to="/cart"
|
to="/cart"
|
||||||
class="w-full flex items-center justify-between gap-4 p-2 transition-all"
|
class="w-full flex items-center justify-between gap-4 p-2 transition-all"
|
||||||
active-class="bg-black rounded-md text-white **:stroke-white"
|
active-class="bg-black rounded-md text-white"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<div class="size-5 flex-center">
|
<div class="size-6 flex-center">
|
||||||
<Icon
|
<NuxtImg
|
||||||
name="ci:cart"
|
src="/img/mobile-drawer/cart.gif"
|
||||||
size="19"
|
|
||||||
class="**:stroke-black"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span class="text-xs"> سبد خرید </span>
|
<span class="text-xs"> سبد خرید </span>
|
||||||
@@ -158,14 +159,18 @@ watch(
|
|||||||
:key="index"
|
:key="index"
|
||||||
:to="link.path"
|
:to="link.path"
|
||||||
class="w-full flex items-center justify-between gap-3 p-2 transition-all"
|
class="w-full flex items-center justify-between gap-3 p-2 transition-all"
|
||||||
active-class="bg-black rounded-md text-white **:stroke-white"
|
active-class="bg-black rounded-md text-white [&_.drawer-item-icon]:invert"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<div class="size-5 flex-center">
|
<div class="size-6 flex-center">
|
||||||
<Icon
|
<!-- <Icon
|
||||||
:name="link.icon"
|
:name="link.icon"
|
||||||
size="18"
|
size="18"
|
||||||
class="**:stroke-black"
|
class="**:stroke-black"
|
||||||
|
/> -->
|
||||||
|
<NuxtImg
|
||||||
|
:src="link.icon"
|
||||||
|
class="drawer-item-icon"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span class="text-xs"> {{ link.title }}</span>
|
<span class="text-xs"> {{ link.title }}</span>
|
||||||
|
|||||||
@@ -109,22 +109,22 @@ export const NAV_LINKS = [
|
|||||||
{
|
{
|
||||||
title: "خانه",
|
title: "خانه",
|
||||||
path: "/",
|
path: "/",
|
||||||
icon: "ci:home",
|
icon: "/img/mobile-drawer/home.gif",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "محصولات",
|
title: "محصولات",
|
||||||
path: "/products",
|
path: "/products",
|
||||||
icon: "ci:airdrop",
|
icon: "/img/mobile-drawer/products.gif",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "دسته بندی ها",
|
title: "دسته بندی ها",
|
||||||
path: "/category",
|
path: "/category",
|
||||||
icon: "ci:delivery-boxes",
|
icon: "/img/mobile-drawer/category.gif",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "ارتباط با ما",
|
title: "ارتباط با ما",
|
||||||
path: "/contact-us",
|
path: "/contact-us",
|
||||||
icon: "ci:call",
|
icon: "/img/mobile-drawer/contact.gif",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 310 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 769 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 328 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 360 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user