"use client"; import Link from "next/link"; import { useState, useEffect } from "react"; const HomeBanner = () => { const [currentTextIndex, setCurrentTextIndex] = useState(0); const [isTransitioning, setIsTransitioning] = useState(false); // Static banner slides data const carouselTexts = [ { id: 1, badge: "Enterprise Solutions", icon: "fa-solid fa-shield-halved", heading: "Secure Enterprise Software", highlight: "Development", subheading: "for Modern Businesses", description: "We build enterprise-grade software solutions with advanced security, scalability, and 24/7 support. Transform your business with our custom development services.", button_text: "Explore Solutions", button_url: "/services", is_active: true, display_order: 1, created_at: new Date().toISOString(), updated_at: new Date().toISOString() }, { id: 2, badge: "API Integration", icon: "fa-solid fa-plug", heading: "Seamless API", highlight: "Integration", subheading: "& System Connectivity", description: "Connect all your systems with our robust API development and integration services. Enable smooth data flow and unified workflows across your organization.", button_text: "Learn More", button_url: "/services/api-development", is_active: true, display_order: 2, created_at: new Date().toISOString(), updated_at: new Date().toISOString() }, { id: 3, badge: "Cloud Migration", icon: "fa-solid fa-cloud", heading: "Cloud-First", highlight: "Solutions", subheading: "for Enterprise Scale", description: "Migrate to the cloud with confidence. Our cloud solutions provide improved scalability, security, and cost-effectiveness for your enterprise operations.", button_text: "Start Migration", button_url: "/services/cloud-solutions", is_active: true, display_order: 3, 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;