diff --git a/pages/_app.js b/pages/_app.js index bcb391f..03b3873 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -11,8 +11,18 @@ const App = ({ Component, pageProps }) => { return () => clearTimeout(timer); }, []); - // ✅ Add accessiBe script useEffect(() => { + if (typeof window === "undefined") return; + + const host = window.location.hostname; + const isLocal = + host === "localhost" || + host === "127.0.0.1" || + host.endsWith(".vercel.app") || + host.endsWith(".netlify.app"); + + if (process.env.NODE_ENV !== "production" || isLocal) return; + const script = document.createElement("script"); script.src = "https://acsbapp.com/apps/app/dist/js/app.js"; script.async = true; @@ -21,9 +31,11 @@ const App = ({ Component, pageProps }) => { window.acsbJS.init(); } }; + document.head.appendChild(script); - const h = document.querySelector("head") || document.body; - h.appendChild(script); + return () => { + script.remove(); + }; }, []); return ( @@ -35,4 +47,4 @@ const App = ({ Component, pageProps }) => { ); }; -export default App; +export default App; \ No newline at end of file diff --git a/pages/_document.js b/pages/_document.js index 812c685..49dae51 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -1,10 +1,26 @@ -import { Html, Head, Main, NextScript } from 'next/document'; +// pages/_document.js +import { Html, Head, Main, NextScript } from "next/document"; export default function Document() { return (
- {/* ✅ Google Tag Manager (script) */} + {/* ✅ CSS Styles */} + + + + + + + + + + + + + + + {/* ✅ Google Tag Manager */} - {/* ✅ Google Analytics (gtag.js) */} - + {/* ✅ Google Analytics */} + - - - {/* ✅ Google Tag Manager (noscript) */} - {/* */} +
+
+
+
+
{" "} We process your personal data in accordance with the law, such as:
@@ -268,7 +268,7 @@ const Policy = ({ pageName }) => {
+
{/* about-shape */}
+
+
+
Mon - Sat: 8 AM to 6 PM
diff --git a/src/components/BrandSlider.js b/src/components/BrandSlider.js index 22657c5..1c52983 100644 --- a/src/components/BrandSlider.js +++ b/src/components/BrandSlider.js @@ -91,7 +91,7 @@ const BrandSlider = () => { //{" "} At Metatron Cube India, we are more than a web development company - we are a complete digital partner. Our services span website development, mobile application development, SEO services, digital marketing, UI/UX design, and graphic design solutions. With a focus on custom website development and professional mobile app solutions, we help businesses achieve long-term digital success. -
- {" "} - Our technical expertise covers AngularJS, ReactJS, HTML5, Node.js, PHP, and frameworks for native Android app development, iOS app development, and cross-platform app development using Flutter. Backed by strong SEO strategies, content writing, and online marketing campaigns, we ensure your brand not only looks exceptional but also ranks high and delivers -
+ + ++ {" "} + Our technical expertise covers AngularJS, ReactJS, HTML5, Node.js, PHP, and frameworks for native Android app development, iOS app development, and cross-platform app development using Flutter. Backed by strong SEO strategies, content writing, and online marketing campaigns, we ensure your brand not only looks exceptional but also ranks high and delivers
+
+
+
+
+
diff --git a/src/components/Home/TestimonialSection.js b/src/components/Home/TestimonialSection.js
index 5c48b3a..53111bc 100644
--- a/src/components/Home/TestimonialSection.js
+++ b/src/components/Home/TestimonialSection.js
@@ -98,7 +98,7 @@ const TestimonialSection = () => {
+
+
+
+
+
+
+
+
+