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
6 changes: 4 additions & 2 deletions src/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,18 @@ export default function Layout({
/>*/}

{/*Cookies Banner */}
<script src="/js/cookiebanner.script.js" />
<script
dangerouslySetInnerHTML={{
__html: `
$(document).ready(function() {
cookieBanner.init();
if (typeof cookieBanner !== 'undefined') {
cookieBanner.init();
}
});
`,
}}
/>
<script async src="/js/cookiebanner.script.js" />
</Head>

<Script type="application/ld+json" strategy="beforeInteractive">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PASSWORD_REGEX } from '@/components/cloud-object-storage/integrated-che

export const IFRAME_AUTH_ENABLED = false;
export const REDIRECT_AUTH_ENABLED = true;
const AUTH_FLOW_URL = 'https://drive.internxt.com';
const AUTH_FLOW_URL = 'https://subsidiary-diversity-footwear-crew.trycloudflare.com';
const OBJECT_STORAGE_USER_ACTIVATION_URL = process.env.NEXT_PUBLIC_OBJECT_STORAGE_USER_ACTIVATION_URL as string;

export const openAuthDialog = (view: 'login' | 'signup' | 'recover'): void => {
Expand Down
11 changes: 8 additions & 3 deletions src/pages/specialoffer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,19 @@ function SpecialOffer({
interval: string,
storage: string,
) => {
const overriddenPriceId = 'price_1RQYKvFAOdcgaBMQfAYnxyMN';
const couponCodeForCheckout = isCheckoutForLifetime ? lifetimeCoupon : individualCoupon;

const finalPrice = await stripeService.calculateFinalPrice(
priceId,
overriddenPriceId,
interval,
currencyValue,
'individuals',
couponCodeForCheckout,
);

stripeService.redirectToCheckout(
priceId,
overriddenPriceId,
finalPrice,
currencyValue,
'individual',
Expand All @@ -84,7 +85,11 @@ function SpecialOffer({

return (
<Layout title={metatags[0].title} description={metatags[0].description} segmentName="Partners" lang={lang}>
<Script src={process.env.NEXT_PUBLIC_CELLO_ATTRIBUTION_URL} type="module" strategy="afterInteractive" />
<Script
src={'https://assets.sandbox.cello.so/attribution/latest/cello-attribution.js'}
type="module"
strategy="afterInteractive"
/>
<Navbar lang={lang} textContent={navbarLang} cta={['payment']} isLinksHidden hideCTA />

<HeroSection textContent={langJson.HeroSection} percentOff={percentOff} image={'internxt-private-cloud'} />
Expand Down
13 changes: 9 additions & 4 deletions src/pages/specialoffer/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,19 @@ function CombinedSpecialOffer({
interval: string,
storage: string,
) => {
const overriddenPriceId = 'price_1RQYKvFAOdcgaBMQfAYnxyMN';
const couponCodeForCheckout = isCheckoutForLifetime ? lifetimeCoupon : individualCoupon;

const finalPrice = await stripeService.calculateFinalPrice(
priceId,
overriddenPriceId,
interval,
currencyValue,
'individuals',
couponCodeForCheckout,
);

stripeService.redirectToCheckout(
priceId,
overriddenPriceId,
finalPrice,
currencyValue,
'individual',
Expand All @@ -139,7 +140,7 @@ function CombinedSpecialOffer({
}

const HeroImage = isValentinesMode ? 'valentines' : 'internxt-private-cloud';

console.log(process.env.NEXT_PUBLIC_CELLO_ATTRIBUTION_URL);
return (
<Layout
title={metatags!.title}
Expand All @@ -148,7 +149,11 @@ function CombinedSpecialOffer({
lang={lang}
robots="noindex, follow"
>
<Script src={process.env.NEXT_PUBLIC_CELLO_ATTRIBUTION_URL} type="module" strategy="afterInteractive" />
<Script
src={'https://assets.sandbox.cello.so/attribution/latest/cello-attribution.js'}
type="module"
strategy="afterInteractive"
/>
<Navbar lang={lang} textContent={navbarLang} cta={['payment']} isLinksHidden hideLogoLink hideCTA />

<HeroSection
Expand Down
Loading