ServiceCard.tsx 1003 B

123456789101112131415161718192021222324252627282930313233343536
  1. import React from 'react';
  2. interface ServiceCardProps {
  3. icon: React.ReactNode;
  4. title: string;
  5. description: string;
  6. buttonText: string;
  7. buttonColor: string;
  8. hoverColor: string;
  9. }
  10. const ServiceCard: React.FC<ServiceCardProps> = ({
  11. icon,
  12. title,
  13. description,
  14. buttonText,
  15. buttonColor,
  16. hoverColor
  17. }) => {
  18. return (
  19. <div className="bg-white rounded-xl p-8 shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 text-center">
  20. <div className="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6">
  21. {icon}
  22. </div>
  23. <h4 className="text-xl font-semibold text-gray-900 mb-4">{title}</h4>
  24. <p className="text-gray-600 mb-6">{description}</p>
  25. <button
  26. 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`}
  27. >
  28. {buttonText}
  29. </button>
  30. </div>
  31. );
  32. };
  33. export default ServiceCard;