PricingCards.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { pricingPlansPersonal as plans } from '@/config/pricing';
  2. import clsx from 'clsx';
  3. import Icon from '@/components/Icon';
  4. export default function PricingCards() {
  5. return (
  6. <div className="pricing">
  7. {plans.map(plan => (
  8. <div key={plan.name} className={clsx('pricing-card', { featured: plan.featured })}>
  9. {plan.featured && (
  10. <div className="pricing-label">
  11. <div className="label label-primary label-sm">Popular</div>
  12. </div>
  13. )}
  14. <h4 className="pricing-title">{plan.name}</h4>
  15. <div className="pricing-price">
  16. <span className="pricing-price-currency">$</span>
  17. {plan.price}
  18. <div className="pricing-price-description">
  19. <div>per user</div>
  20. <div>per year</div>
  21. </div>
  22. </div>
  23. <ul className="pricing-features">
  24. {plan.features.map(feature => (
  25. <li key={feature}>
  26. <Icon name="check" className="text-green mr-2" />
  27. {feature}
  28. </li>
  29. ))}
  30. </ul>
  31. <div className="pricing-btn">
  32. <a
  33. href="#"
  34. className={clsx('btn btn-block', {
  35. 'btn-primary': plan.featured
  36. })}
  37. >
  38. Get started
  39. </a>
  40. </div>
  41. </div>
  42. ))}
  43. </div>
  44. );
  45. }