CTABAnner.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 && buttonHref && (
  19. <div className="col-auto">
  20. <a href={buttonHref} className="btn btn-lg btn-white lemonsqueezy-button">
  21. {buttonText}
  22. </a>
  23. </div>
  24. )}
  25. {buttonSecondaryText && buttonSecondaryHref && (
  26. <div className="col-auto">
  27. <a href={buttonSecondaryHref} className="btn btn-lg btn-white btn-outline" target="_blank" rel="noopener noreferrer">
  28. {buttonSecondaryText}
  29. </a>
  30. </div>
  31. )}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. );
  37. }