"use client"; import React, { useEffect } from "react"; import Link from "next/link"; import { ourServices } from "@/utils/data"; const HomeServiceOne: React.FC = () => { useEffect(() => { // Swiper Initialization const initSwiper = () => { if (typeof window !== "undefined" && (window as any).Swiper) { new (window as any).Swiper('.service-one-home__carousel', { slidesPerView: 1, spaceBetween: 30, loop: true, autoplay: { delay: 5000, disableOnInteraction: false, }, speed: 800, pagination: { el: '.service-one-home__swiper-dot', clickable: true, }, breakpoints: { 576: { slidesPerView: 1 }, 768: { slidesPerView: 2 }, 992: { slidesPerView: 3 }, 1200: { slidesPerView: 3 }, }, }); } else if (typeof window !== "undefined") { setTimeout(initSwiper, 100); } }; initSwiper(); // Animation Initialization const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { const elements = entry.target.querySelectorAll(".wow"); elements.forEach((el) => { const htmlEl = el as HTMLElement; const delay = htmlEl.dataset.wowDelay || "0ms"; setTimeout(() => { htmlEl.classList.add("animated"); htmlEl.style.visibility = "visible"; }, parseInt(delay)); }); observer.unobserve(entry.target); } }); }, { threshold: 0.1 } ); const section = document.querySelector(".service-one-home"); if (section) observer.observe(section); return () => observer.disconnect(); }, []); return (
OUR SERVICES

We Shape the Perfect Solution.

At Metatroncube, we sculpt digital excellence, meticulously blending innovation with user-centric design to manifest your business vision. Partner with us to experience a seamless fusion of web & app development, SEO, digital marketing, and graphic design services. Our strategic solutions and unparalleled execution pave the way for your digital voyage. We are your navigators in the digital realm, steering your project from conception to completion with precision and creativity.

{ourServices.slice(0, 7).map((service, index) => { return (
icon

--

{service.title}

{service.description.substring(0, 100)}...

{service.title}
); })}
); }; export default HomeServiceOne;