import React from "react"; import { clsx } from "clsx"; interface Service { id: string; title: string; description: string; icon?: string; features?: string[]; link?: string; } interface StandardServicesProps { title?: string; description?: string; services?: Service[]; layout?: "grid-2" | "grid-3" | "grid-4"; showFeatures?: boolean; showIcons?: boolean; className?: string; theme?: { primaryColor?: string; secondaryColor?: string; accentColor?: string; fontFamily?: string; }; } const defaultServices: Service[] = [ { id: "web-development", title: "웹 개발", description: "현대적이고 반응형 웹사이트를 구축하여 온라인 비즈니스의 성공을 도모합니다.", icon: "🌐", features: ["반응형 디자인", "SEO 최적화", "성능 향상"], link: "#web-dev", }, { id: "mobile-app", title: "모바일 앱", description: "iOS와 Android를 위한 네이티브 및 크로스 플랫폼 모바일 애플리케이션을 개발합니다.", icon: "📱", features: ["크로스 플랫폼", "네이티브 성능", "UI/UX 디자인"], link: "#mobile-app", }, { id: "consulting", title: "IT 컨설팅", description: "기업의 디지털 전환과 기술 전략 수립을 위한 전문적인 컨설팅 서비스를 제공합니다.", icon: "💡", features: ["전략 수립", "기술 분석", "디지털 전환"], link: "#consulting", }, { id: "support", title: "기술 지원", description: "24/7 기술 지원을 통해 시스템의 안정적인 운영과 문제 해결을 도와드립니다.", icon: "🛠️", features: ["24/7 지원", "빠른 응답", "전문 기술팀"], link: "#support", }, ]; export function StandardServices({ title = "서비스", description = "고품질의 전문 서비스로 고객의 성공을 지원합니다.", services = defaultServices, layout = "grid-2", showFeatures = true, showIcons = true, className, theme = {}, }: StandardServicesProps) { const gridClasses = { "grid-2": "grid-cols-1 md:grid-cols-2", "grid-3": "grid-cols-1 md:grid-cols-2 lg:grid-cols-3", "grid-4": "grid-cols-1 md:grid-cols-2 lg:grid-cols-4", }; return (
{/* 헤더 */}

{title}

{description}

{/* 서비스 그리드 */}
{services.map((service) => (
{/* 아이콘 */} {showIcons && service.icon && (
{service.icon}
)} {/* 제목 */}

{service.title}

{/* 설명 */}

{service.description}

{/* 기능 목록 */} {showFeatures && service.features && service.features.length > 0 && (
    {service.features.map((feature, index) => (
  • {feature}
  • ))}
)} {/* 링크 */} {service.link && (
자세히 보기
)}
))}
{/* CTA 버튼 */}
); }