import React, { useEffect, useRef, useLayoutEffect } from 'react'; import { motion, useMotionTemplate, useMotionValue } from 'framer-motion'; import { Link } from 'react-router-dom'; import gsap from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import SEO from '../../components/SEO'; import Services from '../../components/Services'; import CTA from '../../components/CTA'; import FAQ from '../../components/FAQ'; import AreasWeServe from '../../components/AreasWeServe'; import { ServiceData } from '../data/seoData'; gsap.registerPlugin(ScrollTrigger); interface ServicePageProps { data: ServiceData; } const ServicePage: React.FC = ({ data }) => { const containerRef = useRef(null); const parallaxWrapperRef = useRef(null); const mouseX = useMotionValue(0); const mouseY = useMotionValue(0); const handleMouseMove = ({ currentTarget, clientX, clientY }: React.MouseEvent) => { const { left, top } = currentTarget.getBoundingClientRect(); mouseX.set(clientX - left); mouseY.set(clientY - top + 75); }; useLayoutEffect(() => { const ctx = gsap.context(() => { // Parallax Background if (parallaxWrapperRef.current) { gsap.to(parallaxWrapperRef.current, { yPercent: 30, ease: "none", scrollTrigger: { trigger: containerRef.current, start: "top top", end: "bottom top", scrub: true } }); } // Text Stagger Animation gsap.fromTo(".hero-stagger", { y: 50, opacity: 0 }, { y: 0, opacity: 1, duration: 1, stagger: 0.2, ease: "power3.out", delay: 0.2 } ); }, containerRef); return () => ctx.revert(); }, []); useEffect(() => { window.scrollTo(0, 0); }, []); return ( <>
{/* Hero Section */}
{/* Parallax Background */}
{/* Base Layer */} Abstract dark technology background {/* Highlight Layer */}
{/* Hero Content */}
Professional IT Services

{data.h1.split(' ').slice(0, -2).join(' ')}
{data.h1.split(' ').slice(-2).join(' ')}

{data.description}

Get Started View All Services
{/* Main Content Section */}
{/* Feature Highlight Section */}
speed

Fast Response

Quick resolution of IT issues to minimize downtime and keep your business running smoothly.

verified_user

Proactive Security

Advanced security measures and monitoring to protect your business from cyber threats.

support_agent

Expert Team

Experienced IT professionals dedicated to providing exceptional service and support.

{/* Services Section */} {/* Areas We Serve & CTA */}
); }; export default ServicePage;