mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-25 00:21:28 +02:00
Update pricing section
This commit is contained in:
@@ -133,7 +133,7 @@ export function BuyButton(props: BuyButtonProps) {
|
|||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<span className="relative flex items-center gap-2">
|
<span className="relative flex items-center gap-2">
|
||||||
{coursePricing?.isEligibleForDiscount && coursePricing?.flag} Buy
|
Buy
|
||||||
now for{' '}
|
now for{' '}
|
||||||
{coursePricing?.isEligibleForDiscount ? (
|
{coursePricing?.isEligibleForDiscount ? (
|
||||||
<span className="flex items-center gap-2">
|
<span className="flex items-center gap-2">
|
||||||
@@ -151,14 +151,6 @@ export function BuyButton(props: BuyButtonProps) {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
{!isLoadingPricing &&
|
|
||||||
!isAlreadyEnrolled &&
|
|
||||||
coursePricing?.isEligibleForDiscount && (
|
|
||||||
<span className="absolute top-full translate-y-2.5 text-sm text-yellow-400">
|
|
||||||
{coursePricing.regionalDiscountPercentage}% regional discount
|
|
||||||
applied
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -195,19 +187,11 @@ export function BuyButton(props: BuyButtonProps) {
|
|||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<span className="relative flex items-center gap-2">
|
<span className="relative flex items-center gap-2">
|
||||||
{coursePricing?.flag && coursePricing.isEligibleForDiscount
|
|
||||||
? coursePricing.flag
|
|
||||||
: null}{' '}
|
|
||||||
Buy Now ${coursePricing?.regionalPrice}
|
Buy Now ${coursePricing?.regionalPrice}
|
||||||
<ArrowRightIcon className="h-5 w-5 transition-transform duration-300 ease-out group-hover:translate-x-1" />
|
<ArrowRightIcon className="h-5 w-5 transition-transform duration-300 ease-out group-hover:translate-x-1" />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
{!isAlreadyEnrolled && coursePricing?.isEligibleForDiscount && (
|
|
||||||
<span className="top-full text-sm text-yellow-400">
|
|
||||||
{coursePricing.regionalDiscountPercentage}% regional discount applied
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user