CTABAnner.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. export default function CTABanner({
  2. title,
  3. description,
  4. buttonHref,
  5. buttonText,
  6. buttonSecondaryHref,
  7. buttonSecondaryText
  8. }) {
  9. return (
  10. <div className="bg-primary text-white rounded p-5 lg:p-6" data-aos="zoom-y-out">
  11. <div className="row items-center text-center md:text-left">
  12. <div className="lg:col">
  13. <h3 className="h1 text-reset font-black">{title}</h3>
  14. <p className="font-h4 m-0">{description}</p>
  15. </div>
  16. <div className="lg:col-auto">
  17. <div className="row g-2">
  18. {buttonText &&
  19. buttonHref && (
  20. <div className="col-auto">
  21. <a href={buttonHref} className="btn btn-lg btn-white" target="_blank" rel="noopener noreferrer">
  22. {buttonText}
  23. </a>
  24. </div>
  25. )}
  26. {buttonSecondaryText &&
  27. buttonSecondaryHref && (
  28. <div className="col-auto">
  29. <a
  30. href={buttonSecondaryHref}
  31. className="btn btn-lg btn-white btn-outline"
  32. target="_blank"
  33. rel="noopener noreferrer"
  34. >
  35. {buttonSecondaryText}
  36. </a>
  37. </div>
  38. )}
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. );
  44. }