@crm-market/template-shared 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/custom.css +70 -0
- package/assets/css/remixicon.css +2782 -0
- package/assets/css/satoshi-font.css +31 -0
- package/assets/fonts/flaticon.css +463 -0
- package/assets/fonts/flaticon.eot +0 -0
- package/assets/fonts/flaticon.html +2153 -0
- package/assets/fonts/flaticon.svg +441 -0
- package/assets/fonts/flaticon.ttf +0 -0
- package/assets/fonts/flaticon.woff +0 -0
- package/assets/fonts/flaticon.woff2 +0 -0
- package/assets/fonts/remixicon.eot +0 -0
- package/assets/fonts/remixicon.svg +8230 -0
- package/assets/fonts/remixicon.ttf +0 -0
- package/assets/fonts/remixicon.woff +0 -0
- package/assets/fonts/remixicon.woff2 +0 -0
- package/assets/scss/_variables.scss +31 -0
- package/assets/scss/components/_about.scss +58 -0
- package/assets/scss/components/_authentication.scss +124 -0
- package/assets/scss/components/_backtoptop.scss +27 -0
- package/assets/scss/components/_banner.scss +396 -0
- package/assets/scss/components/_best-deals.scss +74 -0
- package/assets/scss/components/_blank.scss +40 -0
- package/assets/scss/components/_blog.scss +193 -0
- package/assets/scss/components/_cart.scss +108 -0
- package/assets/scss/components/_categories.scss +82 -0
- package/assets/scss/components/_checkout.scss +110 -0
- package/assets/scss/components/_dashboard.scss +388 -0
- package/assets/scss/components/_faq.scss +22 -0
- package/assets/scss/components/_filter-rang.scss +109 -0
- package/assets/scss/components/_footer.scss +270 -0
- package/assets/scss/components/_global.scss +550 -0
- package/assets/scss/components/_header.scss +587 -0
- package/assets/scss/components/_hurry.scss +52 -0
- package/assets/scss/components/_navbar.scss +1008 -0
- package/assets/scss/components/_offers.scss +689 -0
- package/assets/scss/components/_pagination.scss +71 -0
- package/assets/scss/components/_popup.scss +172 -0
- package/assets/scss/components/_preloader.scss +108 -0
- package/assets/scss/components/_products.scss +1147 -0
- package/assets/scss/components/_rtl.scss +806 -0
- package/assets/scss/components/_services.scss +16 -0
- package/assets/scss/components/_sidebar.scss +259 -0
- package/assets/scss/style.css +6676 -0
- package/assets/scss/style.css.map +1 -0
- package/assets/scss/style.scss +40 -0
- package/assets/webfonts/Satoshi-Bold.eot +0 -0
- package/assets/webfonts/Satoshi-Bold.woff +0 -0
- package/assets/webfonts/Satoshi-Bold.woff2 +0 -0
- package/assets/webfonts/Satoshi-Medium.eot +0 -0
- package/assets/webfonts/Satoshi-Medium.woff +0 -0
- package/assets/webfonts/Satoshi-Medium.woff2 +0 -0
- package/assets/webfonts/Satoshi-Regular.eot +0 -0
- package/assets/webfonts/Satoshi-Regular.woff +0 -0
- package/assets/webfonts/Satoshi-Regular.woff2 +0 -0
- package/components/AboutUs/AboutUsTuan.vue +25 -0
- package/components/AboutUs/Statistics.vue +42 -0
- package/components/AboutUs/SubscribeToTheNewsletter.vue +57 -0
- package/components/AddAddress/index.vue +70 -0
- package/components/BestSellers/Products.vue +1562 -0
- package/components/BestSellers/RecentlyViewed.vue +304 -0
- package/components/Cart/ProductQuantity.vue +29 -0
- package/components/Cart/index.vue +167 -0
- package/components/Categories/index.vue +305 -0
- package/components/ChangePassword/index.vue +71 -0
- package/components/Checkout/index.vue +192 -0
- package/components/Common/DashboardNavigation.vue +37 -0
- package/components/Common/PageBanner.vue +28 -0
- package/components/Common/ProductCard.vue +152 -0
- package/components/Common/Services.vue +58 -0
- package/components/Contact/ContactForm.vue +91 -0
- package/components/Contact/ContactInfo.vue +74 -0
- package/components/Dashboard/RecentOrder.vue +173 -0
- package/components/Dashboard/index.vue +79 -0
- package/components/EditAddress/index.vue +119 -0
- package/components/EditProfile/index.vue +97 -0
- package/components/FAQ/index.vue +121 -0
- package/components/FeaturedProduct/FeaturedProducts.vue +304 -0
- package/components/FeaturedProduct/Products.vue +1562 -0
- package/components/ForgotPassword/index.vue +51 -0
- package/components/Layout/BackToUp.vue +38 -0
- package/components/Layout/Copyright.vue +25 -0
- package/components/Layout/Footer.vue +183 -0
- package/components/Layout/FooterTwo.vue +165 -0
- package/components/Layout/LocationOption.vue +178 -0
- package/components/Layout/MiddleHeader.vue +229 -0
- package/components/Layout/MiddleHeaderThree.vue +204 -0
- package/components/Layout/MiddleHeaderTwo.vue +240 -0
- package/components/Layout/Navbar.vue +185 -0
- package/components/Layout/NavbarStyleFour.vue +334 -0
- package/components/Layout/NavbarStyleThree.vue +188 -0
- package/components/Layout/NavbarStyleTwo.vue +108 -0
- package/components/Layout/Preloader.vue +18 -0
- package/components/Layout/RTLSwitchBtn.vue +40 -0
- package/components/Layout/ResponsiveNavbar.vue +431 -0
- package/components/Layout/TopHeader.vue +130 -0
- package/components/Login/index.vue +94 -0
- package/components/MyAccount/index.vue +154 -0
- package/components/NewArrivals/Products.vue +1969 -0
- package/components/NewArrivals/RecentlyViewed.vue +304 -0
- package/components/OrderDetails/index.vue +77 -0
- package/components/OrderHistory/index.vue +197 -0
- package/components/PrivacyPolicy/index.vue +112 -0
- package/components/ProductDetails/ProductDetailsTab.vue +343 -0
- package/components/ProductDetails/ProductQuantity.vue +29 -0
- package/components/ProductDetails/RecentlyViewed.vue +304 -0
- package/components/ProductDetails/index.vue +268 -0
- package/components/Products/RecentlyViewed.vue +304 -0
- package/components/Products/index.vue +292 -0
- package/components/Register/index.vue +88 -0
- package/components/TermsConditions/index.vue +112 -0
- package/components/TrendingProducts/FeaturedProducts.vue +304 -0
- package/components/TrendingProducts/Products.vue +1564 -0
- package/components/Wishlist/ProductQuantity.vue +29 -0
- package/components/Wishlist/index.vue +128 -0
- package/composables/useCart.ts +149 -0
- package/composables/useCategories.ts +87 -0
- package/composables/useCheckout.ts +131 -0
- package/composables/useProducts.ts +162 -0
- package/composables/useSiteConfig.ts +236 -0
- package/composables/useTemplateSections.ts +74 -0
- package/e2e/cart.spec.ts +71 -0
- package/e2e/fixtures/mock-api.ts +166 -0
- package/e2e/homepage.spec.ts +65 -0
- package/e2e/layout.spec.ts +73 -0
- package/e2e/navigation.spec.ts +61 -0
- package/e2e/pages/cart.page.ts +44 -0
- package/e2e/pages/homepage.page.ts +46 -0
- package/e2e/playwright.config.ts +32 -0
- package/e2e/products.spec.ts +33 -0
- package/layouts/default.vue +94 -0
- package/layouts/inner.vue +70 -0
- package/nuxt.config.ts +86 -0
- package/package.json +38 -0
- package/pages/about-us.vue +12 -0
- package/pages/address.vue +10 -0
- package/pages/cart.vue +10 -0
- package/pages/categories.vue +10 -0
- package/pages/change-password.vue +10 -0
- package/pages/checkout.vue +10 -0
- package/pages/contact.vue +11 -0
- package/pages/dashboard.vue +10 -0
- package/pages/edit-address.vue +10 -0
- package/pages/edit-profile.vue +10 -0
- package/pages/faq.vue +10 -0
- package/pages/forgot-password.vue +10 -0
- package/pages/login.vue +10 -0
- package/pages/my-account.vue +10 -0
- package/pages/order-details.vue +10 -0
- package/pages/order-history.vue +10 -0
- package/pages/privacy-policy.vue +10 -0
- package/pages/product-details.vue +10 -0
- package/pages/products.vue +10 -0
- package/pages/register.vue +10 -0
- package/pages/terms-conditions.vue +10 -0
- package/pages/wishlist.vue +10 -0
- package/plugins/site-init.client.ts +24 -0
- package/plugins/vuetify.ts +18 -0
- package/types/index.ts +121 -0
- package/utils/image.ts +13 -0
- package/utils/store.ts +21 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['navbar navbar-expand-lg bg-white', { sticky: isSticky }]">
|
|
3
|
+
<div class="container mw-1610">
|
|
4
|
+
<NuxtLink class="navbar-brand d-lg-none" to="/">
|
|
5
|
+
<img
|
|
6
|
+
:src="logoUrl || defaultLogo"
|
|
7
|
+
class="main-logo"
|
|
8
|
+
alt="logo"
|
|
9
|
+
/>
|
|
10
|
+
</NuxtLink>
|
|
11
|
+
<a
|
|
12
|
+
class="navbar-toggler"
|
|
13
|
+
href="javascript:void(0);"
|
|
14
|
+
@click="stateStoreInstance.onChangeShow"
|
|
15
|
+
>
|
|
16
|
+
<span class="burger-menu">
|
|
17
|
+
<span class="top-bar"></span>
|
|
18
|
+
<span class="middle-bar"></span>
|
|
19
|
+
<span class="bottom-bar"></span>
|
|
20
|
+
</span>
|
|
21
|
+
</a>
|
|
22
|
+
|
|
23
|
+
<ul class="categories-nav d-none d-lg-block">
|
|
24
|
+
<li class="categories-item dropdown">
|
|
25
|
+
<div
|
|
26
|
+
class="categories-link dropdown-toggle"
|
|
27
|
+
@click="toggleCategories"
|
|
28
|
+
:aria-pressed="show ? 'true' : 'false'"
|
|
29
|
+
:class="{ show: buttonShowState }"
|
|
30
|
+
>
|
|
31
|
+
<i class="ri-menu-2-line"></i>
|
|
32
|
+
<span>Browse Categories</span>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<ul class="dropdown-menu" :class="{ show: show }">
|
|
36
|
+
<li v-for="category in topLevelCategories" :key="category.id">
|
|
37
|
+
<template v-if="getSubcategories(category.id).length > 0">
|
|
38
|
+
<a
|
|
39
|
+
class="dropdown-item sub-dropdown dropdown-toggle"
|
|
40
|
+
href="javascript:void(0)"
|
|
41
|
+
@click="toggleSubDropdown(category.id)"
|
|
42
|
+
>
|
|
43
|
+
<i class="ri-folder-line"></i>
|
|
44
|
+
<span>{{ category.name }}</span>
|
|
45
|
+
</a>
|
|
46
|
+
|
|
47
|
+
<ul
|
|
48
|
+
class="dropdown-menu dropdown-menu-sub"
|
|
49
|
+
:class="{ show: activeSubDropdown === category.id }"
|
|
50
|
+
>
|
|
51
|
+
<li v-for="sub in getSubcategories(category.id)" :key="sub.id">
|
|
52
|
+
<NuxtLink
|
|
53
|
+
class="dropdown-item"
|
|
54
|
+
:to="`/products?categoryId=${sub.id}`"
|
|
55
|
+
>
|
|
56
|
+
{{ sub.name }}
|
|
57
|
+
</NuxtLink>
|
|
58
|
+
</li>
|
|
59
|
+
</ul>
|
|
60
|
+
</template>
|
|
61
|
+
<template v-else>
|
|
62
|
+
<NuxtLink
|
|
63
|
+
class="dropdown-item single-style"
|
|
64
|
+
:to="`/products?categoryId=${category.id}`"
|
|
65
|
+
>
|
|
66
|
+
{{ category.name }}
|
|
67
|
+
</NuxtLink>
|
|
68
|
+
</template>
|
|
69
|
+
</li>
|
|
70
|
+
<li v-if="topLevelCategories.length === 0">
|
|
71
|
+
<span class="dropdown-item text-muted">No categories</span>
|
|
72
|
+
</li>
|
|
73
|
+
</ul>
|
|
74
|
+
</li>
|
|
75
|
+
</ul>
|
|
76
|
+
|
|
77
|
+
<div class="collapse navbar-collapse">
|
|
78
|
+
<ul class="navbar-nav me-auto ms-68">
|
|
79
|
+
<li class="nav-item">
|
|
80
|
+
<NuxtLink class="nav-link" to="/"> Home </NuxtLink>
|
|
81
|
+
</li>
|
|
82
|
+
|
|
83
|
+
<li class="nav-item">
|
|
84
|
+
<NuxtLink class="nav-link" to="/products"> Products </NuxtLink>
|
|
85
|
+
</li>
|
|
86
|
+
|
|
87
|
+
<li class="nav-item">
|
|
88
|
+
<NuxtLink class="nav-link" to="/categories"> Categories </NuxtLink>
|
|
89
|
+
</li>
|
|
90
|
+
|
|
91
|
+
<li class="nav-item">
|
|
92
|
+
<NuxtLink class="nav-link" to="/about-us"> About </NuxtLink>
|
|
93
|
+
</li>
|
|
94
|
+
|
|
95
|
+
<li class="nav-item">
|
|
96
|
+
<NuxtLink class="nav-link" to="/contact"> Contact </NuxtLink>
|
|
97
|
+
</li>
|
|
98
|
+
</ul>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<ul
|
|
102
|
+
class="d-none d-lg-flex others-options ps-0 mb-0 list-unstyled justify-content-end"
|
|
103
|
+
>
|
|
104
|
+
<li class="info" v-if="phone">
|
|
105
|
+
<a :href="`tel:${phone}`" class="text-decoration-none">
|
|
106
|
+
<div class="d-flex align-items-center">
|
|
107
|
+
<div class="flex-shrink-0">
|
|
108
|
+
<i class="ri-phone-line bg-danger-10"></i>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="flex-grow-1 ms-10">
|
|
111
|
+
<span>Hotline</span>
|
|
112
|
+
<h3>{{ phone }}</h3>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</a>
|
|
116
|
+
</li>
|
|
117
|
+
</ul>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<script lang="ts">
|
|
123
|
+
import { defineComponent, ref, watch, onMounted, computed } from "vue";
|
|
124
|
+
import stateStore from "~/utils/store";
|
|
125
|
+
|
|
126
|
+
import defaultLogoImg from "~/assets/images/logo.png";
|
|
127
|
+
|
|
128
|
+
export default defineComponent({
|
|
129
|
+
name: "Navbar",
|
|
130
|
+
setup() {
|
|
131
|
+
const isSticky = ref(false);
|
|
132
|
+
const show = ref(false);
|
|
133
|
+
const buttonShowState = ref(false);
|
|
134
|
+
const activeSubDropdown = ref<string | null>(null);
|
|
135
|
+
const stateStoreInstance = stateStore;
|
|
136
|
+
const defaultLogo = defaultLogoImg;
|
|
137
|
+
|
|
138
|
+
const { topLevelCategories, getSubcategories } = useCategories();
|
|
139
|
+
const { logoUrl, contactInfo } = useSiteConfig();
|
|
140
|
+
|
|
141
|
+
const phone = computed(() => contactInfo.value?.phone);
|
|
142
|
+
|
|
143
|
+
const toggleCategories = () => {
|
|
144
|
+
show.value = !show.value;
|
|
145
|
+
buttonShowState.value = !buttonShowState.value;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const toggleSubDropdown = (subDropdown: string) => {
|
|
149
|
+
activeSubDropdown.value =
|
|
150
|
+
activeSubDropdown.value === subDropdown ? null : subDropdown;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const handleScroll = () => {
|
|
154
|
+
const scrollPos = window.scrollY;
|
|
155
|
+
isSticky.value = scrollPos >= 100;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
onMounted(() => {
|
|
159
|
+
window.addEventListener("scroll", handleScroll);
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
watch(isSticky, (newValue: any) => {
|
|
163
|
+
if (newValue) {
|
|
164
|
+
show.value = false;
|
|
165
|
+
buttonShowState.value = false;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
isSticky,
|
|
171
|
+
show,
|
|
172
|
+
buttonShowState,
|
|
173
|
+
toggleCategories,
|
|
174
|
+
toggleSubDropdown,
|
|
175
|
+
activeSubDropdown,
|
|
176
|
+
stateStoreInstance,
|
|
177
|
+
defaultLogo,
|
|
178
|
+
topLevelCategories,
|
|
179
|
+
getSubcategories,
|
|
180
|
+
logoUrl,
|
|
181
|
+
phone,
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
</script>
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="[
|
|
4
|
+
'navbar navbar-expand-lg bg-warningdiv1 ptb-6',
|
|
5
|
+
{ sticky: isSticky },
|
|
6
|
+
]"
|
|
7
|
+
>
|
|
8
|
+
<div class="container mw-1610">
|
|
9
|
+
<NuxtLink class="navbar-brand d-lg-none" to="/">
|
|
10
|
+
<img
|
|
11
|
+
src="~/assets/images/grocery-shop-logo.png"
|
|
12
|
+
class="main-logo"
|
|
13
|
+
alt="white-logo"
|
|
14
|
+
/>
|
|
15
|
+
</NuxtLink>
|
|
16
|
+
<a
|
|
17
|
+
class="navbar-toggler"
|
|
18
|
+
href="javascript:void(0);"
|
|
19
|
+
@click="stateStoreInstance.onChangeShow"
|
|
20
|
+
>
|
|
21
|
+
<span class="burger-menu">
|
|
22
|
+
<span class="top-bar"></span>
|
|
23
|
+
<span class="middle-bar"></span>
|
|
24
|
+
<span class="bottom-bar"></span>
|
|
25
|
+
</span>
|
|
26
|
+
</a>
|
|
27
|
+
|
|
28
|
+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
29
|
+
<ul class="navbar-nav me-auto">
|
|
30
|
+
<li class="nav-item dropdown">
|
|
31
|
+
<a class="nav-link dropdown-toggle" href="#"> Home </a>
|
|
32
|
+
|
|
33
|
+
<ul class="dropdown-menu">
|
|
34
|
+
<li>
|
|
35
|
+
<NuxtLink class="dropdown-item" to="/">
|
|
36
|
+
Electronics & Telemobile Online Shop
|
|
37
|
+
</NuxtLink>
|
|
38
|
+
</li>
|
|
39
|
+
<li>
|
|
40
|
+
<NuxtLink class="dropdown-item" to="/grocery-shop">
|
|
41
|
+
Grocery Shop
|
|
42
|
+
</NuxtLink>
|
|
43
|
+
</li>
|
|
44
|
+
<li>
|
|
45
|
+
<NuxtLink class="dropdown-item" to="/healthy-diet-foods-shop">
|
|
46
|
+
Healthy Diet Foods Shop
|
|
47
|
+
</NuxtLink>
|
|
48
|
+
</li>
|
|
49
|
+
</ul>
|
|
50
|
+
</li>
|
|
51
|
+
|
|
52
|
+
<li class="nav-item dropdown">
|
|
53
|
+
<a class="nav-link dropdown-toggle" href="#"> Pages </a>
|
|
54
|
+
|
|
55
|
+
<ul class="dropdown-menu">
|
|
56
|
+
<li>
|
|
57
|
+
<NuxtLink class="dropdown-item" to="/about-us">
|
|
58
|
+
About Us
|
|
59
|
+
</NuxtLink>
|
|
60
|
+
</li>
|
|
61
|
+
|
|
62
|
+
<li>
|
|
63
|
+
<a class="dropdown-item sub-dropdown dropdown-toggle" href="#">
|
|
64
|
+
Authentication
|
|
65
|
+
</a>
|
|
66
|
+
|
|
67
|
+
<ul class="dropdown-menu">
|
|
68
|
+
<li>
|
|
69
|
+
<NuxtLink class="dropdown-item" to="/login">
|
|
70
|
+
Login
|
|
71
|
+
</NuxtLink>
|
|
72
|
+
</li>
|
|
73
|
+
<li>
|
|
74
|
+
<NuxtLink class="dropdown-item" to="/register">
|
|
75
|
+
Register
|
|
76
|
+
</NuxtLink>
|
|
77
|
+
</li>
|
|
78
|
+
<li>
|
|
79
|
+
<NuxtLink class="dropdown-item" to="/my-account">
|
|
80
|
+
My Account
|
|
81
|
+
</NuxtLink>
|
|
82
|
+
</li>
|
|
83
|
+
<li>
|
|
84
|
+
<NuxtLink class="dropdown-item" to="/change-password">
|
|
85
|
+
Change Password
|
|
86
|
+
</NuxtLink>
|
|
87
|
+
</li>
|
|
88
|
+
<li>
|
|
89
|
+
<NuxtLink class="dropdown-item" to="/forgot-password">
|
|
90
|
+
Forgot Password
|
|
91
|
+
</NuxtLink>
|
|
92
|
+
</li>
|
|
93
|
+
</ul>
|
|
94
|
+
</li>
|
|
95
|
+
<li>
|
|
96
|
+
<NuxtLink class="dropdown-item" to="/faq"> FAQ </NuxtLink>
|
|
97
|
+
</li>
|
|
98
|
+
<li>
|
|
99
|
+
<NuxtLink class="dropdown-item" to="/privacy-policy">
|
|
100
|
+
Privacy Policy
|
|
101
|
+
</NuxtLink>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
<NuxtLink class="dropdown-item" to="/terms-conditions">
|
|
105
|
+
Terms & Conditions
|
|
106
|
+
</NuxtLink>
|
|
107
|
+
</li>
|
|
108
|
+
</ul>
|
|
109
|
+
</li>
|
|
110
|
+
|
|
111
|
+
<li class="nav-item mega-menu">
|
|
112
|
+
<a href="#" class="nav-link dropdown-toggle"> Shop </a>
|
|
113
|
+
|
|
114
|
+
<ul class="dropdown-menu">
|
|
115
|
+
<li class="nav-item">
|
|
116
|
+
<div class="row">
|
|
117
|
+
<div class="col">
|
|
118
|
+
<h6 class="sub-menu-title">Product Layouts</h6>
|
|
119
|
+
|
|
120
|
+
<ul class="sub-menu">
|
|
121
|
+
<li>
|
|
122
|
+
<NuxtLink class="dropdown-item" to="/best-sellers">
|
|
123
|
+
Best Sellers
|
|
124
|
+
</NuxtLink>
|
|
125
|
+
</li>
|
|
126
|
+
<li>
|
|
127
|
+
<NuxtLink class="dropdown-item" to="/featured-products">
|
|
128
|
+
Featured Products
|
|
129
|
+
</NuxtLink>
|
|
130
|
+
</li>
|
|
131
|
+
<li>
|
|
132
|
+
<NuxtLink class="dropdown-item" to="/trending-products">
|
|
133
|
+
Trending Products
|
|
134
|
+
</NuxtLink>
|
|
135
|
+
</li>
|
|
136
|
+
<li>
|
|
137
|
+
<NuxtLink class="dropdown-item" to="/new-arrivals">
|
|
138
|
+
New Arrivals
|
|
139
|
+
</NuxtLink>
|
|
140
|
+
</li>
|
|
141
|
+
<li>
|
|
142
|
+
<NuxtLink class="dropdown-item" to="/categories">
|
|
143
|
+
Categories
|
|
144
|
+
</NuxtLink>
|
|
145
|
+
</li>
|
|
146
|
+
</ul>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<div class="col">
|
|
150
|
+
<h6 class="sub-menu-title">Products Step</h6>
|
|
151
|
+
|
|
152
|
+
<ul class="sub-menu">
|
|
153
|
+
<li>
|
|
154
|
+
<NuxtLink class="dropdown-item" to="/products">
|
|
155
|
+
Products
|
|
156
|
+
</NuxtLink>
|
|
157
|
+
</li>
|
|
158
|
+
<li>
|
|
159
|
+
<NuxtLink class="dropdown-item" to="/cart">
|
|
160
|
+
Cart
|
|
161
|
+
</NuxtLink>
|
|
162
|
+
</li>
|
|
163
|
+
<li>
|
|
164
|
+
<NuxtLink class="dropdown-item" to="/wishlist">
|
|
165
|
+
Wishlist
|
|
166
|
+
</NuxtLink>
|
|
167
|
+
</li>
|
|
168
|
+
<li>
|
|
169
|
+
<NuxtLink class="dropdown-item" to="/checkout">
|
|
170
|
+
Checkout
|
|
171
|
+
</NuxtLink>
|
|
172
|
+
</li>
|
|
173
|
+
<li>
|
|
174
|
+
<NuxtLink class="dropdown-item" to="/product-details">
|
|
175
|
+
Product Details
|
|
176
|
+
</NuxtLink>
|
|
177
|
+
</li>
|
|
178
|
+
</ul>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<div class="col">
|
|
182
|
+
<h6 class="sub-menu-title">Admin Page</h6>
|
|
183
|
+
|
|
184
|
+
<ul class="sub-menu">
|
|
185
|
+
<li>
|
|
186
|
+
<NuxtLink class="dropdown-item" to="/dashboard">
|
|
187
|
+
Dashboard
|
|
188
|
+
</NuxtLink>
|
|
189
|
+
</li>
|
|
190
|
+
<li>
|
|
191
|
+
<NuxtLink class="dropdown-item" to="/edit-profile">
|
|
192
|
+
Edit Profile
|
|
193
|
+
</NuxtLink>
|
|
194
|
+
</li>
|
|
195
|
+
<li>
|
|
196
|
+
<NuxtLink class="dropdown-item" to="/order-history">
|
|
197
|
+
Order History
|
|
198
|
+
</NuxtLink>
|
|
199
|
+
</li>
|
|
200
|
+
<li>
|
|
201
|
+
<NuxtLink class="dropdown-item" to="/order-details">
|
|
202
|
+
Order Details
|
|
203
|
+
</NuxtLink>
|
|
204
|
+
</li>
|
|
205
|
+
<li>
|
|
206
|
+
<NuxtLink class="dropdown-item" to="/password">
|
|
207
|
+
Change Password
|
|
208
|
+
</NuxtLink>
|
|
209
|
+
</li>
|
|
210
|
+
</ul>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<div class="col">
|
|
214
|
+
<NuxtLink
|
|
215
|
+
to="/products"
|
|
216
|
+
class="bg-img menu-img"
|
|
217
|
+
:style="{
|
|
218
|
+
'background-image': `url(${image})`,
|
|
219
|
+
}"
|
|
220
|
+
>
|
|
221
|
+
</NuxtLink>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</li>
|
|
225
|
+
</ul>
|
|
226
|
+
</li>
|
|
227
|
+
|
|
228
|
+
<li class="nav-item dropdown">
|
|
229
|
+
<a class="nav-link dropdown-toggle" href="#"> Blog </a>
|
|
230
|
+
|
|
231
|
+
<ul class="dropdown-menu">
|
|
232
|
+
<li>
|
|
233
|
+
<NuxtLink class="dropdown-item" to="/our-blog">
|
|
234
|
+
Our Blog
|
|
235
|
+
</NuxtLink>
|
|
236
|
+
</li>
|
|
237
|
+
<li>
|
|
238
|
+
<NuxtLink class="dropdown-item" to="/blog-details">
|
|
239
|
+
Blog Details
|
|
240
|
+
</NuxtLink>
|
|
241
|
+
</li>
|
|
242
|
+
<li>
|
|
243
|
+
<NuxtLink class="dropdown-item" to="/tags"> Tags </NuxtLink>
|
|
244
|
+
</li>
|
|
245
|
+
<li>
|
|
246
|
+
<NuxtLink class="dropdown-item" to="/categories">
|
|
247
|
+
Categories
|
|
248
|
+
</NuxtLink>
|
|
249
|
+
</li>
|
|
250
|
+
<li>
|
|
251
|
+
<NuxtLink class="dropdown-item" to="/author"> Author </NuxtLink>
|
|
252
|
+
</li>
|
|
253
|
+
</ul>
|
|
254
|
+
</li>
|
|
255
|
+
|
|
256
|
+
<li class="nav-item dropdown">
|
|
257
|
+
<NuxtLink class="nav-link" to="/contact"> Contact </NuxtLink>
|
|
258
|
+
</li>
|
|
259
|
+
</ul>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<ul
|
|
263
|
+
class="d-none d-lg-flex others-options grocery-options ps-0 mb-0 list-unstyled justify-content-end"
|
|
264
|
+
>
|
|
265
|
+
<li class="info">
|
|
266
|
+
<a href="tel:808-555-0111" class="text-decoration-none">
|
|
267
|
+
<div class="d-flex align-items-center">
|
|
268
|
+
<div class="flex-shrink-0">
|
|
269
|
+
<i class="ri-phone-line bg-danger-10"></i>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="flex-grow-1 ms-10">
|
|
272
|
+
<span>Hotline</span>
|
|
273
|
+
<h3>(808) 555-0111</h3>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
</a>
|
|
277
|
+
</li>
|
|
278
|
+
<li class="info">
|
|
279
|
+
<a
|
|
280
|
+
href="#"
|
|
281
|
+
class="text-decoration-none success-hover-bg"
|
|
282
|
+
@click="stateStoreInstance.onChange"
|
|
283
|
+
>
|
|
284
|
+
<div class="d-flex align-items-center">
|
|
285
|
+
<div class="flex-shrink-0">
|
|
286
|
+
<i class="ri-map-pin-2-line"></i>
|
|
287
|
+
</div>
|
|
288
|
+
<div class="flex-grow-1 ms-10">
|
|
289
|
+
<span>Deliver to</span>
|
|
290
|
+
<h3>Find Location</h3>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</a>
|
|
294
|
+
</li>
|
|
295
|
+
</ul>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</template>
|
|
299
|
+
|
|
300
|
+
<script lang="ts">
|
|
301
|
+
import { defineComponent, ref, onMounted } from "vue";
|
|
302
|
+
import stateStore from "~/utils/store";
|
|
303
|
+
|
|
304
|
+
import image from "~/assets/images/menu-product.jpg";
|
|
305
|
+
|
|
306
|
+
export default defineComponent({
|
|
307
|
+
name: "NavbarStyleFour",
|
|
308
|
+
setup() {
|
|
309
|
+
const isSticky = ref(false);
|
|
310
|
+
const show = ref(false);
|
|
311
|
+
const stateStoreInstance = stateStore;
|
|
312
|
+
|
|
313
|
+
const toggleCategories = () => {
|
|
314
|
+
show.value = !show.value;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
const handleScroll = () => {
|
|
318
|
+
const scrollPos = window.scrollY;
|
|
319
|
+
isSticky.value = scrollPos >= 100;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
onMounted(() => {
|
|
323
|
+
window.addEventListener("scroll", handleScroll);
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
return {
|
|
327
|
+
isSticky,
|
|
328
|
+
toggleCategories,
|
|
329
|
+
stateStoreInstance,
|
|
330
|
+
image,
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
});
|
|
334
|
+
</script>
|