| 123456789101112131415161718192021222324252627282930313233343536 |
- import React from 'react';
- interface ServiceCardProps {
- icon: React.ReactNode;
- title: string;
- description: string;
- buttonText: string;
- buttonColor: string;
- hoverColor: string;
- }
- const ServiceCard: React.FC<ServiceCardProps> = ({
- icon,
- title,
- description,
- buttonText,
- buttonColor,
- hoverColor
- }) => {
- return (
- <div className="bg-white rounded-xl p-8 shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 text-center">
- <div className="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6">
- {icon}
- </div>
- <h4 className="text-xl font-semibold text-gray-900 mb-4">{title}</h4>
- <p className="text-gray-600 mb-6">{description}</p>
- <button
- className={`px-6 py-3 bg-gradient-to-r ${buttonColor} text-white rounded-lg font-medium hover:${hoverColor} transition-all shadow-sm hover:shadow-md`}
- >
- {buttonText}
- </button>
- </div>
- );
- };
- export default ServiceCard;
|