"use client"; import Link from "next/link"; import { useState, useEffect } from "react"; const HomeBanner = () => { const [currentTextIndex, setCurrentTextIndex] = useState(0); const [isTransitioning, setIsTransitioning] = useState(false); // Fix viewport height for mobile browsers (especially iOS Safari) useEffect(() => { const setVH = () => { const vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', `${vh}px`); }; setVH(); window.addEventListener('resize', setVH); window.addEventListener('orientationchange', setVH); return () => { window.removeEventListener('resize', setVH); window.removeEventListener('orientationchange', setVH); }; }, []); // Static banner slides data based on actual services const carouselTexts = [ { id: 1, badge: "Custom Development", icon: "fa-solid fa-code", heading: "Tailored Enterprise Software ", highlight: "Development", subheading: "Aligned with Your Business Goals", description: "We design and build custom digital solutions that deliver reliable, scalable, and future-ready applications, driving measurable value and competitive advantage for your enterprise.", button_text: "Explore Solutions", button_url: "/services/custom-software-development", is_active: true, display_order: 1, created_at: new Date().toISOString(), updated_at: new Date().toISOString() }, { id: 2, badge: "Business Intelligence", icon: "fa-solid fa-brain", heading: "AI-Powered ", highlight: "Analytics", subheading: "Transform Data into Insights", description: "Turn enterprise data into actionable intelligence with advanced AI and machine learning, enabling smarter decisions, performance optimization, and data-driven innovation.", button_text: "Discover AI Solutions", button_url: "/services/ai-powered-business-intelligence", is_active: true, display_order: 2, created_at: new Date().toISOString(), updated_at: new Date().toISOString() }, { id: 3, badge: "System Integration", icon: "fa-solid fa-plug", heading: "Enterprise Systems ", highlight: "Integration", subheading: "Seamless Connectivity", description: "Connect everything — from payment systems and ERP platforms to cloud services, enabling your enterprise to operate seamlessly across physical and digital environments.", button_text: "View Integrations", button_url: "/services/external-systems-integrations", is_active: true, display_order: 3, created_at: new Date().toISOString(), updated_at: new Date().toISOString() }, { id: 4, badge: "Incident Management", icon: "fa-solid fa-bell", heading: "Intelligent Incident ", highlight: "Management", subheading: "Minimize Downtime & Protect Trust", description: "Cloud-based incident management that empowers teams to detect, respond, and resolve issues faster, reducing downtime and maintaining customer confidence.", button_text: "Learn More", button_url: "/services/incident-management-saas", is_active: true, display_order: 4, created_at: new Date().toISOString(), updated_at: new Date().toISOString() } ]; // Carousel rotation effect useEffect(() => { if (carouselTexts.length <= 1) return; const interval = setInterval(() => { setIsTransitioning(true); setTimeout(() => { setCurrentTextIndex((prevIndex) => prevIndex === carouselTexts.length - 1 ? 0 : prevIndex + 1 ); setIsTransitioning(false); }, 1000); // Slightly longer for smoother transition }, 6000); // Increased interval for slower changes return () => clearInterval(interval); }, [carouselTexts.length]); const currentText = carouselTexts[currentTextIndex]; if (!currentText) { return null; } return ( <>
{/* Industrial Enterprise Background Elements */}
{/* Flying Code Elements */}
const enterprise = {'{'} security: 'enterprise-grade', scalability: 'unlimited' {'}'};
if (security === 'max') {'{'} deploy.enterprise(); {'}'}
class EnterpriseSoftware {'{'} constructor() {'{'} this.secure = true; {'}'} {'}'}
API.authenticate({'{'} level: 'enterprise', encryption: 'AES-256' {'}'});
{/* Industrial Grid */}
{/* Security Elements */}
{/* Circuit Patterns */}
{/* Data Streams */}
{/* Request/Response Data */}
POST /api/enterprise
200 OK
GET /api/analytics
201 Created
{/* Space Data Generation */}
{/* Database Connections */}
{/* Real-time Metrics */}
API Calls/sec
2,847
Data Processed
15.2TB
Active Users
45,892
{currentText.badge}

{currentText.heading} {currentText.highlight}
{currentText.subheading}

{currentText.description}

{/* Carousel Indicators */}
{carouselTexts.map((_, index) => (
{currentText.button_text || "Learn More"} Contact Sales
30+
Enterprise Clients
99.9%
Uptime SLA
24/7
Enterprise Support
window.scrollTo({ top: window.innerHeight, behavior: 'smooth' })}>
Scroll to explore
); }; export default HomeBanner;