Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/antivirus/AlternativeHeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const AlternativeHeroSection = ({ textContent, currentPrice, currency }: Alterna
</div>
</div>

<div className="relative flex h-[65vh] items-center justify-center md:h-[450px] lg:flex">
<div className="relative flex items-center justify-center md:h-[450px] lg:flex lg:h-[65vh]">
<Image
src={getImage('/images/antivirus/Internxt_Antivirus_Header.png')}
width={490}
Expand Down
2 changes: 1 addition & 1 deletion src/components/antivirus/InfoSecction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface InfoSectionProps {

export const InfoSection: React.FC<InfoSectionProps> = ({ FirstComponent }) => {
return (
<section className={`overflow-hidden px-5 py-20`}>
<section className={`overflow-hidden px-5 lg:py-20`}>
<div className="flex flex-col items-center gap-16">{FirstComponent}</div>
</section>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export const HorizontalPriceCard = ({

const contentText = require(`@/assets/lang/en/priceCard.json`);

const MIN_DISCOUNT_PERCENT_TO_SHOW = 1;
const hasDiscount = decimalDiscountValue && decimalDiscountValue > 0;
const discountedPrice = hasDiscount ? (Number(price) * decimalDiscountValue) / 100 : Number(price);
const currentPrice = (Math.trunc(discountedPrice * 100) / 100).toFixed(2);
const showDiscount = Boolean(hasDiscount) && 100 - decimalDiscountValue! >= MIN_DISCOUNT_PERCENT_TO_SHOW;
const cardLabel =
{
'5TB': contentText.productFeatures.planTypes.ultimate,
Expand Down Expand Up @@ -102,7 +104,7 @@ export const HorizontalPriceCard = ({
<span>{currency}</span>
<span className="text-sm">{contentText.perMonth}</span>
</p>
{hasDiscount && (
{showDiscount && (
<p className="flex flex-row items-end whitespace-nowrap font-normal text-gray-50">
<span className="text-xl line-through">{price}</span>
<span className="text-sm">{currency}</span>
Expand Down
Loading