diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml index d48285a90..d32ea7784 100644 --- a/.github/workflows/deploy-frontend-dev.yml +++ b/.github/workflows/deploy-frontend-dev.yml @@ -29,6 +29,7 @@ jobs: sed -i "s|VITE_IFRAMELY_KEY_VALUE|${{ secrets.IFRAMELY_KEY }}|g" config.js sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.js sh ./../deploy/generate-sitemap.sh https://dev-stack.canopas.com https://dev-stack-api.canopas.com - yarn install --frozen-lockfile && yarn build && yarn generate + yarn install --frozen-lockfile && yarn generate aws s3 sync ./.output/public s3://dev-stack.canopas.com --exclude "*.js" - aws s3 sync ./.output/public s3://dev-stack.canopas.com --include "*.js" --content-type "application/javascript" \ No newline at end of file + aws s3 sync ./.output/public s3://dev-stack.canopas.com --include "*.js" --content-type "application/javascript" + aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" \ No newline at end of file diff --git a/.github/workflows/deploy-frontend-prod.yml b/.github/workflows/deploy-frontend-prod.yml index 7b69727d9..44f5c6d6d 100644 --- a/.github/workflows/deploy-frontend-prod.yml +++ b/.github/workflows/deploy-frontend-prod.yml @@ -32,5 +32,6 @@ jobs: sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.prod.js mv src/config.prod.js src/config.js sh ./../deploy/generate-sitemap.sh https://canopas.com https://prod-stack-api.canopas.com - yarn install --frozen-lockfile && yarn build && yarn generate - aws s3 sync ./.output/public s3://nuxt.canopas.com \ No newline at end of file + yarn install --frozen-lockfile && yarn generate + aws s3 sync ./.output/public s3://canopas.com --exclude "*.js" + aws s3 sync ./.output/public s3://canopas.com --include "*.js" --content-type "application/javascript" \ No newline at end of file diff --git a/nuxt-frontend/components/android-app-development/BlackCtaSection.vue b/nuxt-frontend/components/android-app-development/BlackCtaSection.vue index 6763579d5..f137d8f1c 100644 --- a/nuxt-frontend/components/android-app-development/BlackCtaSection.vue +++ b/nuxt-frontend/components/android-app-development/BlackCtaSection.vue @@ -23,7 +23,7 @@ Let's Chat diff --git a/nuxt-frontend/components/android-app-development/CtaSection.vue b/nuxt-frontend/components/android-app-development/CtaSection.vue index de18a816e..4e77264fb 100644 --- a/nuxt-frontend/components/android-app-development/CtaSection.vue +++ b/nuxt-frontend/components/android-app-development/CtaSection.vue @@ -17,7 +17,7 @@ Contact Us @@ -50,7 +50,7 @@ Contact Us diff --git a/nuxt-frontend/components/android-app-development/FaqSection.vue b/nuxt-frontend/components/android-app-development/FaqSection.vue index 7abde82cc..81bfcef10 100644 --- a/nuxt-frontend/components/android-app-development/FaqSection.vue +++ b/nuxt-frontend/components/android-app-development/FaqSection.vue @@ -42,7 +42,7 @@
Let's Chat 767) { + window.removeEventListener("scroll", this.handleScroll); + } + }, methods: { scrollToCard(index) { this.activeIndex = index; diff --git a/nuxt-frontend/components/flutter-app-development/LandingSection.vue b/nuxt-frontend/components/flutter-app-development/LandingSection.vue index 1a6baf245..84d98b971 100644 --- a/nuxt-frontend/components/flutter-app-development/LandingSection.vue +++ b/nuxt-frontend/components/flutter-app-development/LandingSection.vue @@ -13,7 +13,7 @@ @@ -24,31 +36,31 @@ import { elementInViewPort } from "@/utils.js"; import { defineAsyncComponent } from "vue"; const CaseStudy = defineAsyncComponent(() => - import("@/components/home-new/CaseStudy.vue"), + import("@/components/home-new/CaseStudy.vue") ); const ServiceSection = defineAsyncComponent(() => - import("@/components/home-new/ServiceSection.vue"), + import("@/components/home-new/ServiceSection.vue") ); const ServiceSectionMobile = defineAsyncComponent(() => - import("@/components/home-new/ServiceSectionMobile.vue"), + import("@/components/home-new/ServiceSectionMobile.vue") ); const ContributionSection = defineAsyncComponent(() => - import("@/components/home-new/ContributionSection.vue"), + import("@/components/home-new/ContributionSection.vue") ); const ContributionSectionMobile = defineAsyncComponent(() => - import("@/components/home-new/ContributionSectionMobile.vue"), + import("@/components/home-new/ContributionSectionMobile.vue") ); const ClientReview = defineAsyncComponent(() => - import("@/components/home-new/ClientReviewSection.vue"), + import("@/components/home-new/ClientReviewSection.vue") ); const CTASection = defineAsyncComponent(() => - import("@/components/mobile-app-development/CTASection2.vue"), + import("@/components/mobile-app-development/CTASection2.vue") ); const BlogSection = defineAsyncComponent(() => - import("@/components/home-new/BlogSection.vue"), + import("@/components/home-new/BlogSection.vue") ); const NewFooter = defineAsyncComponent(() => - import("@/components/partials/NewFooter.vue"), + import("@/components/partials/NewFooter.vue") ); export default { @@ -67,6 +79,7 @@ export default { }, data() { return { + width: 0, event: "", events: { landing: "view_landing_section", @@ -76,12 +89,12 @@ export default { blogs: "view_blog_post_section", contributions: "view_open_source_contribution", cta: "view_home_cta", - footer: "view_home_footer", }, }; }, inject: ["mixpanel"], mounted() { + this.width = window.innerWidth; window.addEventListener("scroll", this.sendEvent); this.$mixpanel.track("view_landing_section"); }, diff --git a/nuxt-frontend/components/ios-app-development/CtaSection.vue b/nuxt-frontend/components/ios-app-development/CtaSection.vue index b6f9c7910..e7ea3afbf 100644 --- a/nuxt-frontend/components/ios-app-development/CtaSection.vue +++ b/nuxt-frontend/components/ios-app-development/CtaSection.vue @@ -24,7 +24,7 @@ import AspectRatio from "@/components/utils/AspectRatio.vue"; import LottieAnimation from "@/components/utils/LottieAnimation.vue"; -import { elementInViewPort } from "@/utils.js"; + export default { props: ["json"], data() { diff --git a/nuxt-frontend/components/portfolio/LandingSection.vue b/nuxt-frontend/components/portfolio/LandingSection.vue index 2e79eb6e3..c26732b88 100644 --- a/nuxt-frontend/components/portfolio/LandingSection.vue +++ b/nuxt-frontend/components/portfolio/LandingSection.vue @@ -24,7 +24,6 @@