'use client'; import { useEffect, useState } from 'react'; import Link from 'next/link'; import Image from 'next/image'; const items = [ { title: 'Emergency Repair', desc: 'Outages, hot outlets, breakers tripping.', href: '/corpus-christi/emergency-electrician', icon: '🚨', image: '/images/emergency_repair.png', bgColor: 'bg-gradient-to-br from-red-500 to-red-600', textColor: 'text-red-600', hoverColor: 'hover:from-red-600 hover:to-red-700' }, { title: 'Panel Upgrades', desc: '100A→200A, AFCI/GFCI, permits & inspections.', href: '/corpus-christi/panel-upgrades', icon: '⚡', image: '/images/panel_upgrade.png', bgColor: 'bg-gradient-to-br from-blue-500 to-blue-600', textColor: 'text-blue-600', hoverColor: 'hover:from-blue-600 hover:to-blue-700' }, { title: 'Residential Services', desc: 'Complete home electrical solutions.', href: '/corpus-christi/residential', icon: '🏠', image: '/images/residential.png', bgColor: 'bg-gradient-to-br from-yellow-500 to-orange-500', textColor: 'text-orange-600', hoverColor: 'hover:from-yellow-600 hover:to-orange-600' }, { title: 'EV-Ready Circuits', desc: 'Dedicated 240V outlet, load calc.', href: '/corpus-christi/ev-charger-install', icon: '🔋', image: '/images/ev_ready.png', bgColor: 'bg-gradient-to-br from-green-500 to-green-600', textColor: 'text-green-600', hoverColor: 'hover:from-green-600 hover:to-green-700' }, { title: 'Commercial Build-Outs', desc: 'Data, emergency lighting, distribution.', href: '/commercial', icon: '🏢', image: '/images/comnercial_buildout.png', bgColor: 'bg-gradient-to-br from-purple-500 to-purple-600', textColor: 'text-purple-600', hoverColor: 'hover:from-purple-600 hover:to-purple-700' }, { title: 'Commercial Services', desc: 'Professional commercial electrical solutions.', href: '/commercial', icon: '🏢', image: '/images/commercial.png', bgColor: 'bg-gradient-to-br from-indigo-500 to-indigo-600', textColor: 'text-indigo-600', hoverColor: 'hover:from-indigo-600 hover:to-indigo-700' }, { title: 'Electrical Diagnostics', desc: 'Advanced troubleshooting and system analysis.', href: '/corpus-christi/diagnostics', icon: '🔍', image: '/images/diagnostics.png', bgColor: 'bg-gradient-to-br from-teal-500 to-teal-600', textColor: 'text-teal-600', hoverColor: 'hover:from-teal-600 hover:to-teal-700' } ]; export default function ServiceCards() { const [mounted, setMounted] = useState(false); useEffect(() => setMounted(true), []); return (

Services We Offer

Professional electrical solutions for residential and commercial properties in Corpus Christi

{!mounted ? Array.from({ length: 6 }).map((_, i) => (
)) : items.map((it, index) => ( {/* Service Image */}
{`${it.title}
{it.icon}
{/* Service Content */}

{it.title}

{it.desc}

Learn more
))}
); }