From 5343d5c5417f9016b8ab6d32b4ba2af9d7c16308 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Tue, 4 Feb 2025 23:40:35 +0330 Subject: [PATCH] Update navbar animation and style --- frontend/components/global/Header.vue | 36 +++++++++++++++++++-------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/frontend/components/global/Header.vue b/frontend/components/global/Header.vue index 231b578..4cdb76b 100644 --- a/frontend/components/global/Header.vue +++ b/frontend/components/global/Header.vue @@ -14,34 +14,50 @@ type NavLink = { // state const { data: account } = useGetAccount(); +const route = useRoute(); const { logout } = useAuth(); const nav_links = ref([ { title: "خانه", - path: "/", + path: "/" }, { title: "محصولات", - path: "/products", + path: "/products" }, { title: "دسته بندی ها", - path: "/category", + path: "/category" }, { title: "ارتباط با ما", - path: "/contact-us", + path: "/contact-us" }, { title: "امکانات", - path: "#", - }, + path: "#" + } ]); + +// computed + +const isHomePage = computed(() => route.path === "/"); + +// lifecycle + +onMounted(() => { + +}); +