Certifications.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React from 'react';
  2. import type { Certification } from '../types';
  3. interface CertificationsProps {
  4. certifications: Certification[];
  5. }
  6. const Certifications: React.FC<CertificationsProps> = ({ certifications }) => {
  7. if (!certifications || certifications.length === 0) {
  8. return null;
  9. }
  10. return (
  11. <div className="bg-white rounded-2xl border border-slate-200 p-6">
  12. <h2 className="text-xl font-bold text-slate-800 mb-4">Licenses & Certifications</h2>
  13. <ul className="space-y-4">
  14. {certifications.map((cert, index) => (
  15. <li key={index} className="flex items-start gap-4 pt-4 first:pt-0 border-t border-slate-100 first:border-t-0">
  16. <div className="flex-shrink-0 w-12 h-12 bg-slate-100 rounded-md flex items-center justify-center mt-1 p-1">
  17. <img
  18. src={cert.imageUrl}
  19. alt={`${cert.issuer} logo`}
  20. className="w-full h-full object-contain rounded-sm"
  21. />
  22. </div>
  23. <div>
  24. <h3 className="font-semibold text-slate-800">{cert.name}</h3>
  25. <p className="text-sm text-slate-600">{cert.issuer}</p>
  26. <p className="text-xs text-slate-400 mt-1">{cert.date}</p>
  27. </div>
  28. </li>
  29. ))}
  30. </ul>
  31. </div>
  32. );
  33. };
  34. export default Certifications;