From 7582157df9c8ad292052fc2fc4f0c1d2b16aa08d Mon Sep 17 00:00:00 2001 From: jagruti Date: Fri, 27 Oct 2023 11:44:58 +0530 Subject: [PATCH] Deploy android app development page --- .../services/WhatWeOfferDesktop.vue | 16 ++++- .../components/services/WhatWeOfferMobile.vue | 15 ++++- vue-frontend/src/config.js | 1 - vue-frontend/src/config.prod.js | 1 - .../src/pages/android-app-development.vue | 65 +++++++------------ 5 files changed, 50 insertions(+), 48 deletions(-) diff --git a/vue-frontend/src/components/services/WhatWeOfferDesktop.vue b/vue-frontend/src/components/services/WhatWeOfferDesktop.vue index 243114527..8039f0e09 100644 --- a/vue-frontend/src/components/services/WhatWeOfferDesktop.vue +++ b/vue-frontend/src/components/services/WhatWeOfferDesktop.vue @@ -18,8 +18,16 @@
); export default { - data() { - return { - event: "", - events: { - landing: "view_android_development_landing_section", - footer: "view_android_development_footer", - development: "view_android_development_section", - casestudy: "view_android_development_casestudy_section", - faq: "view_android_development_faq_section", - successstory: "view_android_development_success_story_section", - cta1: "view_android_development_cta_section", - cta2: "view_android_development_cta2_section", - cta3: "view_android_development_cta3_section", - }, - }; - }, setup() { var seoData = config.ANDRIOD_APP_DEVELOPMENT_SEO_META_DATA; useMeta({ - meta: [ - { - name: "robots", - content: "noindex, nofollow", - vmid: "robots", - }, - ], title: seoData.title, description: seoData.description, og: { @@ -105,24 +82,21 @@ export default { CtaSection, NewFooter, }, - methods: { - sendEvent() { - const event = this.events[elementInViewPort(this.$refs)]; - if (event && this.event !== event) { - this.event = event; - this.mixpanel.track(event); - } - }, - }, - beforeRouteEnter(to, from, next) { - if (!config.SHOW_ANDROID_APP_DEVELOPMENT_PAGE) { - next({ - name: "Error404Page", - params: { pathMatch: "/android-app-development" }, - }); - } else { - next(); - } + data() { + return { + event: "", + events: { + landing: "view_android_development_landing_section", + footer: "view_android_development_footer", + development: "view_android_development_section", + casestudy: "view_android_development_casestudy_section", + faq: "view_android_development_faq_section", + successstory: "view_android_development_success_story_section", + cta1: "view_android_development_cta_section", + cta2: "view_android_development_cta2_section", + cta3: "view_android_development_cta3_section", + }, + }; }, inject: ["mixpanel"], mounted() { @@ -132,5 +106,14 @@ export default { unmounted() { window.removeEventListener("scroll", this.sendEvent); }, + methods: { + sendEvent() { + const event = this.events[elementInViewPort(this.$refs)]; + if (event && this.event !== event) { + this.event = event; + this.mixpanel.track(event); + } + }, + }, };