Skip to content
Merged
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"memory-cache": "^0.2.0",
"moment": "^2.29.1",
"music-metadata": "^11.2.3",
"next": "16.2.3",
"next": "16.2.6",
"next-csrf": "^0.2.1",
"next-share": "^0.18.1",
"pdf-lib": "^1.17.1",
Expand Down
26 changes: 10 additions & 16 deletions src/components/partnersTemplate/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function HeroSection({
image = 'internxt-private-cloud',
isClubic = false,
isUltimatePlan = false,
isPcMag = false
isPcMag = false,
}: Readonly<HeroSectionForPartnerProps>): JSX.Element {
const [currency, setCurrency] = useState<string>('€');

Expand All @@ -63,7 +63,9 @@ export default function HeroSection({
return typeof text === 'string' ? text.replace(/{{discount}}/g, percentOff) : text;
};

const redirection= isUltimatePlan ? 'https://drive.internxt.com/checkout?planId=price_1T1xRhFAOdcgaBMQEjJKKoRN&couponCode=CLOUDOFF&planType=individual&currency=eur&mode=payment' : '#billingButtons';
const redirection = isUltimatePlan
? 'https://drive.internxt.com/checkout?planId=price_1TRoAJFAOdcgaBMQveT6cebN&planType=individual&currency=eur&mode=payment'
: '#billingButtons';

return (
<section
Expand Down Expand Up @@ -99,12 +101,7 @@ export default function HeroSection({

{isClubic && (
<div className="flex flex-row items-center justify-center space-x-3.5 lg:justify-start ">
<Image
src={getImage('/images/partnerships/Clubic.webp')}
width={90}
height={17}
alt="Clubic logo"
/>
<Image src={getImage('/images/partnerships/Clubic.webp')} width={90} height={17} alt="Clubic logo" />
<X size={16} />
<Image
loading="lazy"
Expand All @@ -117,13 +114,9 @@ export default function HeroSection({
</div>
)}

{isPcMag &&( <div className="flex flex-row items-center justify-center space-x-3.5 lg:justify-start ">
<Image
src={getImage('/images/partnerships/pcmag.webp')}
width={110}
height={35}
alt="pcmag logo"
/>
{isPcMag && (
<div className="flex flex-row items-center justify-center space-x-3.5 lg:justify-start ">
<Image src={getImage('/images/partnerships/pcmag.webp')} width={110} height={35} alt="pcmag logo" />
<X size={16} />
<Image
loading="lazy"
Expand All @@ -133,7 +126,8 @@ export default function HeroSection({
width={130}
height={16}
/>
</div>)}
</div>
)}

<div className="flex w-full flex-wrap items-start justify-start gap-2 lg:flex-nowrap lg:justify-between">
{products.map((feature, index) => (
Expand Down
10 changes: 3 additions & 7 deletions src/components/shared/pricing/PriceCard/HorizontalPriceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
Shield,
Sparkle,
VideoCamera,

} from '@phosphor-icons/react';
import { checkout } from '@/lib/auth';
import { PromoCodeProps } from '@/lib/types';
Expand Down Expand Up @@ -45,15 +44,13 @@ export const HorizontalPriceCard = ({
if (!storage) {
return null;
}

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

const priceNow = decimalDiscountValue
? ((price * decimalDiscountValue) / 100).toFixed(2).replace('.00', '')
: Number(price).toFixed(2).replace('.00', '');

const percentOff = decimalDiscountValue ? 100 - decimalDiscountValue : 0;

const cardLabel =
{
'5TB': contentText.productFeatures.planTypes.ultimate,
Expand Down Expand Up @@ -84,7 +81,6 @@ export const HorizontalPriceCard = ({
mode: 'payment',
planType: 'individual',
currency: currencyValue ?? 'eur',
promoCodeId: coupon?.name ?? undefined,
});
}
return (
Expand All @@ -98,13 +94,13 @@ export const HorizontalPriceCard = ({
<p className="text-3xl font-semibold text-gray-100 lg:text-5xl">{cardLabel}</p>
</div>
</div>

<div className={`flex flex-col items-center justify-center ${priceBefore ? 'space-y-1' : 'space-y-4'}`}>
<div className="flex flex-row items-end space-x-px text-neutral-700">
<p className="flex flex-row items-end whitespace-nowrap font-medium text-gray-100">
<span className="text-4xl font-bold">{price}</span>
<span>{currency}</span>
<span className="text-sm">{contentText.perYear}</span>
<span className="text-sm">{contentText.perMonth}</span>
</p>
</div>
</div>
Expand Down
112 changes: 56 additions & 56 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2231,10 +2231,10 @@
"@napi-rs/canvas-win32-arm64-msvc" "0.1.91"
"@napi-rs/canvas-win32-x64-msvc" "0.1.91"

"@next/env@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/env/-/env-16.2.3.tgz#eda120ae25aa43b3ff9c0621f5fa6e10e46ef749"
integrity sha512-ZWXyj4uNu4GCWQw9cjRxWlbD+33mcDszIo9iQxFnBX3Wmgq9ulaSJcl6VhuWx5pCWqqD+9W6Wfz7N0lM5lYPMA==
"@next/env@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/env/-/env-16.2.6.tgz#93a173801cb088463070cc6a113c68e26c1838ea"
integrity sha512-gd8HoHN4ufj73WmR3JmVolrpJR47ILK6LouP5xElPglaVxir6e1a7VzvTvDWkOoPXT9rkkTzyCxBu4yeZfZwcw==

"@next/eslint-plugin-next@13.5.6":
version "13.5.6"
Expand All @@ -2243,45 +2243,45 @@
dependencies:
glob "7.1.7"

"@next/swc-darwin-arm64@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.3.tgz#ec4fea25a921dce0847a2b8d7df419ea49615172"
integrity sha512-u37KDKTKQ+OQLvY+z7SNXixwo4Q2/IAJFDzU1fYe66IbCE51aDSAzkNDkWmLN0yjTUh4BKBd+hb69jYn6qqqSg==

"@next/swc-darwin-x64@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.3.tgz#de3d5281f8ca81ef23527d93e81229e6f85c4ec7"
integrity sha512-gHjL/qy6Q6CG3176FWbAKyKh9IfntKZTB3RY/YOJdDFpHGsUDXVH38U4mMNpHVGXmeYW4wj22dMp1lTfmu/bTQ==

"@next/swc-linux-arm64-gnu@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.3.tgz#dbd85b17dd94e23a676084089b5b383bbf9d346c"
integrity sha512-U6vtblPtU/P14Y/b/n9ZY0GOxbbIhTFuaFR7F4/uMBidCi2nSdaOFhA0Go81L61Zd6527+yvuX44T4ksnf8T+Q==

"@next/swc-linux-arm64-musl@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.3.tgz#a2361a6e741c64c8e6cac347631e4001150f1711"
integrity sha512-/YV0LgjHUmfhQpn9bVoGc4x4nan64pkhWR5wyEV8yCOfwwrH630KpvRg86olQHTwHIn1z59uh6JwKvHq1h4QEw==

"@next/swc-linux-x64-gnu@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.3.tgz#d356deb1ae924d1e3a5071d64f5be0e3f1e916ac"
integrity sha512-/HiWEcp+WMZ7VajuiMEFGZ6cg0+aYZPqCJD3YJEfpVWQsKYSjXQG06vJP6F1rdA03COD9Fef4aODs3YxKx+RDQ==

"@next/swc-linux-x64-musl@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.3.tgz#3b307a0691995a8fa323d32a83eb100e3ac03358"
integrity sha512-Kt44hGJfZSefebhk/7nIdivoDr3Ugp5+oNz9VvF3GUtfxutucUIHfIO0ZYO8QlOPDQloUVQn4NVC/9JvHRk9hw==

"@next/swc-win32-arm64-msvc@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.3.tgz#eae5f6f105d0c855911821be74931f755761dc6d"
integrity sha512-O2NZ9ie3Tq6xj5Z5CSwBT3+aWAMW2PIZ4egUi9MaWLkwaehgtB7YZjPm+UpcNpKOme0IQuqDcor7BsW6QBiQBw==

"@next/swc-win32-x64-msvc@16.2.3":
version "16.2.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.3.tgz#aff6de2107cb29c9e8f3242e43f432d00dbea0e0"
integrity sha512-Ibm29/GgB/ab5n7XKqlStkm54qqZE8v2FnijUPBgrd67FWrac45o/RsNlaOWjme/B5UqeWt/8KM4aWBwA1D2Kw==
"@next/swc-darwin-arm64@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.6.tgz#0e19055594fbd2d198ce95cf5842bdbe57235d4e"
integrity sha512-ZJGkkcNfYgrrMkqOdZ7zoLa1TOy0qpcMfk/z4Mh/FKUz40gVO+HNQWqmLxf67Z5WB64DRp0dhEbyHfel+6sJUg==

"@next/swc-darwin-x64@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.6.tgz#487086280b56017bb547f5975ef1a3d6235a070f"
integrity sha512-v/YLBHIY132Ced3puBJ7YJKw1lqsCrgcNo2aRJlCEyQrrCeRJlvGlnmxhPxNQI3KE3N1DN5r9TPNPvka3nq5RQ==

"@next/swc-linux-arm64-gnu@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.6.tgz#b28ffbc31ee527a3ad48f29c2fd7b7f75bbdf180"
integrity sha512-RPOvqlYBbcQjkz9VQQDZ2T2bARIjXZV1KFlt+V2Mr6SW/e4I9fcKsaA0hdyf2FHoTlsV2xnBd5Y912rP/1Ce6w==

"@next/swc-linux-arm64-musl@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.6.tgz#d2eac5600e7083527669fa8cb8758efbbf9c8210"
integrity sha512-URUTu1+dMkxJsPFgm+OeEvq9wf5sujw0EvgYy80TDGHTSLTnIHeqb0Eu8A3sC95IRgjejQL+kC4mw+4yPxiAXA==

"@next/swc-linux-x64-gnu@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.6.tgz#e70dc3469bf9bfef16da2ba240c07ef6cfe8ad55"
integrity sha512-DOj182mPV8G3UkrayLoREM5YEYI+Dk5wv7Ox9xl1fFibAELEsFD0lDPfHIeILlutMMfdyhlzYPELG3peuKaurw==

"@next/swc-linux-x64-musl@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.6.tgz#49ecd2f622d0f3741654c59411f604dbbe1a38de"
integrity sha512-HKQ5SP/V/ub73UvF7n/zeJlxk2kLmtL7Wzrg4WfmkjmNos5onJ2tKu7yZOPdL18A6Svfn3max29ym+ry7NkK4g==

"@next/swc-win32-arm64-msvc@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.6.tgz#8a6dfec005364e1cf4fa1724c3d7fa0093660406"
integrity sha512-LZXpTlPyS5v7HhSmnvsLGP3iIYgYOBnc8r8ArlT55sGHV89bR2HlDdBjWQ+PY6SJMmk8TuVGFuxalnP3k/0Dwg==

"@next/swc-win32-x64-msvc@16.2.6":
version "16.2.6"
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.6.tgz#4fb656ccfcf60cbf8ffedb40fc1b625987c82742"
integrity sha512-F0+4i0h9J6C4eE3EAPWsoCk7UW/dbzOjyzxY0qnDUOYFu6FFmdZ6l97/XdV3/Nz3VYyO7UWjyEJUXkGqcoXfMA==

"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
Expand Down Expand Up @@ -6783,26 +6783,26 @@ next-unused@^0.0.6:
ts-loader "^7.0.0"
typescript "^4.2.3"

next@16.2.3:
version "16.2.3"
resolved "https://registry.yarnpkg.com/next/-/next-16.2.3.tgz#091b6565d46b3fb494fbb5c73d201171890787a5"
integrity sha512-9V3zV4oZFza3PVev5/poB9g0dEafVcgNyQ8eTRop8GvxZjV2G15FC5ARuG1eFD42QgeYkzJBJzHghNP8Ad9xtA==
next@16.2.6:
version "16.2.6"
resolved "https://registry.yarnpkg.com/next/-/next-16.2.6.tgz#4564833d2865efc598b7c63541b5771792d3d811"
integrity sha512-qOVgKJg1+At15NpeUP+eJgCHvTCgXsogweq87Ri/Ix7PkqQHg4sdaXmSFqKlgaIXE4kW0g25LE68W87UANlHtw==
dependencies:
"@next/env" "16.2.3"
"@next/env" "16.2.6"
"@swc/helpers" "0.5.15"
baseline-browser-mapping "^2.9.19"
caniuse-lite "^1.0.30001579"
postcss "8.4.31"
styled-jsx "5.1.6"
optionalDependencies:
"@next/swc-darwin-arm64" "16.2.3"
"@next/swc-darwin-x64" "16.2.3"
"@next/swc-linux-arm64-gnu" "16.2.3"
"@next/swc-linux-arm64-musl" "16.2.3"
"@next/swc-linux-x64-gnu" "16.2.3"
"@next/swc-linux-x64-musl" "16.2.3"
"@next/swc-win32-arm64-msvc" "16.2.3"
"@next/swc-win32-x64-msvc" "16.2.3"
"@next/swc-darwin-arm64" "16.2.6"
"@next/swc-darwin-x64" "16.2.6"
"@next/swc-linux-arm64-gnu" "16.2.6"
"@next/swc-linux-arm64-musl" "16.2.6"
"@next/swc-linux-x64-gnu" "16.2.6"
"@next/swc-linux-x64-musl" "16.2.6"
"@next/swc-win32-arm64-msvc" "16.2.6"
"@next/swc-win32-x64-msvc" "16.2.6"
sharp "^0.34.5"

node-abi@^3.3.0:
Expand Down
Loading