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
4 changes: 2 additions & 2 deletions src/assets/lang/de/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
},
"ctaSection": {
"title": "Fordern Sie Ihren exklusiven Internxt-Gutschein an",
"description": "Erhalten Sie maximale Privatsphäre für {{discount}}% weniger",
"description": "Erhalten Sie maximale Privatsphäre für {{percentage}}% weniger",
"cta": "Angebot einlösen"
},
"ctaSectionV2": {
"title": "Vollständige Privatsphäre für {{discount}}% weniger",
"title": "Vollständige Privatsphäre für {{percentage}}% weniger",
"description": "Holen Sie sich das Angebot Ihres Lebens mit Ihrem Internxt-Gutscheincode",
"cta": "Angebot einlösen"
},
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/en/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
},
"ctaSection": {
"title": "Claim your exclusive Internxt coupon",
"description": "Get maximum privacy for {{discount}}% off",
"description": "Get maximum privacy for 87% off",
"cta": "Claim deal"
},
"ctaSectionV2": {
"title": "Full privacy for {{discount}}% off",
"title": "Full privacy for 87% off",
"description": "Get the deal of a lifetime with your Internxt coupon code",
"cta": "Claim deal"
},
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/es/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
},
"ctaSection": {
"title": "Reclama tu cupón exclusivo de Internxt",
"description": "Obtén máxima privacidad con {{discount}}% de descuento",
"description": "Obtén máxima privacidad con 87% de descuento",
"cta": "Reclamar oferta"
},
"ctaSectionV2": {
"title": "Privacidad completa con {{discount}}% de descuento",
"title": "Privacidad completa con 87% de descuento",
"description": "Obtén la oferta de tu vida con tu código de cupón de Internxt",
"cta": "Reclamar oferta"
},
Expand Down
2 changes: 1 addition & 1 deletion src/assets/lang/es/drive.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"HeroSection": {
"eyebrow": " Drive",
"title": "**Almacenamiento en la nube seguro** para todos tus archivos",
"title": "**Almacenamiento seguro** en nube para tus archivos",
"subtitle": "Almacenamiento en la nube con cifrado post-cuántico galardonado para proteger tu privacidad.",
"features": [
"Cifrado post-cuántico",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/fr/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
},
"ctaSection": {
"title": "Réclamez votre code promo Internxt exclusif",
"description": "Obtenez une confidentialité maximale pour {{discount}}% de moins",
"description": "Obtenez une confidentialité maximale pour 87% de moins",
"cta": "Réclamer l'offre"
},
"ctaSectionV2": {
"title": "Confidentialité complète pour {{discount}}% de moins",
"title": "Confidentialité complète pour 87% de moins",
"description": "Obtenez l'offre de votre vie avec votre code promo Internxt",
"cta": "Réclamer l'offre"
},
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/it/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
},
"ctaSection": {
"title": "Rivendica il tuo coupon Internxt esclusivo",
"description": "Ottieni la massima privacy con l'{{discount}}% di sconto",
"description": "Ottieni la massima privacy con l'87% di sconto",
"cta": "Rivendica l'offerta"
},
"ctaSectionV2": {
"title": "Privacy completa con l'{{discount}}% di sconto",
"title": "Privacy completa con l'87% di sconto",
"description": "Ottieni l'affare della tua vita con il tuo codice coupon Internxt",
"cta": "Rivendica l'offerta"
},
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/ru/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
},
"ctaSection": {
"title": "Получите свой эксклюзивный промокод Internxt",
"description": "Получите максимальную конфиденциальность со скидкой {{discount}}%",
"description": "Получите максимальную конфиденциальность со скидкой 87%",
"cta": "Получить предложение"
},
"ctaSectionV2": {
"title": "Полная конфиденциальность со скидкой {{discount}}%",
"title": "Полная конфиденциальность со скидкой 87%",
"description": "Получите предложение своей жизни с вашим промокодом Internxt",
"cta": "Получить предложение"
},
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/zh-tw/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@
},
"ctaSection": {
"title": "领取您的专属Internxt优惠券",
"description": "{{discount}}%折扣获得最大隐私保护",
"description": "87%折扣获得最大隐私保护",
"cta": "领取优惠"
},
"ctaSectionV2": {
"title": "{{discount}}%折扣获得完整隐私保护",
"title": "87%折扣获得完整隐私保护",
"description": "使用您的Internxt优惠券代码获得一生难得的优惠",
"cta": "领取优惠"
},
Expand Down
4 changes: 2 additions & 2 deletions src/assets/lang/zh/coupons.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@
},
"ctaSection": {
"title": "领取您的专属Internxt优惠券",
"description": "{{discount}}%折扣获得最大隐私保护",
"description": "87%折扣获得最大隐私保护",
"cta": "领取优惠"
},
"ctaSectionV2": {
"title": "{{discount}}%折扣获得完整隐私保护",
"title": "87%折扣获得完整隐私保护",
"description": "使用您的Internxt优惠券代码获得一生难得的优惠",
"cta": "领取优惠"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/coupons/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function HeroSection({

return (
<section
className={`mt-20 flex h-min w-full flex-row items-center justify-center overflow-hidden py-10 lg:mt-16 lg:h-[705px] lg:justify-between lg:pl-10 xl:pl-32 3xl:pl-80`}
className={`flex h-min w-full flex-row items-center justify-center overflow-hidden py-10 pt-28 lg:h-[705px] lg:justify-between lg:pl-10 lg:pt-36 xl:pl-32 3xl:pl-80`}
style={{ background: 'linear-gradient(180deg, #E5EFFF 0%, #FFFFFF 100%)' }}
>
<div className="flex h-min w-[345px] flex-col justify-center gap-6 lg:h-[564px] lg:w-[566px] lg:justify-between">
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const EXCLUDED_PATHS_FOR_BANNER = [
'/google-drive-alternative',
'/filejump-alternative',
'/elephantdrive-alternative',
'/coupons',
];

export const SNIGEL_BANNERS = {
Expand Down
8 changes: 8 additions & 0 deletions src/hooks/useSpecialOfferConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export const ALLOWED_PATHS = [
'apfelcast',
'madroz',
'justin',
'qinhui',
'ct3003',
'benjamin',
'payette',
];
export const ALTERNATE_RECOMENDATED_PLAN_PATHS = new Set<string>([]);
export const DARK_MODE_PATHS = new Set<string>(['baity', 'xavier', 'oscar', 'rimembah', 'believemy', 'ghareeb']);
Expand All @@ -28,6 +32,10 @@ export const COUPON_CODES = {
apfelcast: PromoCodeName.APFELCAST,
madroz: PromoCodeName.MADROZ,
justin: PromoCodeName.JUSTIN,
qinhui: PromoCodeName.QINHUI,
CT3003: PromoCodeName.CT3003,
benjamin: PromoCodeName.benjamin,
payette: PromoCodeName.payette,
};

interface OfferConfig {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ export enum PromoCodeName {
Ice = 'ICEDRIVE87',
KOOFR = 'KOOFR87',
ONEDRIVE = 'ONEDRIVE87',
QINHUI = 'QINHUI',
CT3003 = 'CT3003',
benjamin = 'BEMJAMIN',
payette = 'PAYETTE',
}

export interface PromoCodeProps {
Expand Down
25 changes: 11 additions & 14 deletions src/pages/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ const renderCtaContent = (
</div>
);

const LANG_MAP = {
believemy: 'fr',
madroz: 'fr',
justin: 'fr',
benjamin: 'fr',
payette: 'en',
ghareeb: 'en',
apfelcast: 'de',
};

function CombinedSpecialOffer({
langJson,
lang,
Expand Down Expand Up @@ -123,8 +133,6 @@ function CombinedSpecialOffer({
);
};

const navbarCta = 'priceTable';

return (
<Layout title={metatags!.title} description={metatags!.description} segmentName="Partners" lang={lang}>
<Navbar lang={lang} textContent={navbarLang} cta={['payment']} isLinksHidden hideCTA />
Expand Down Expand Up @@ -209,19 +217,8 @@ function CombinedSpecialOffer({

export async function getServerSideProps(ctx) {
const pathname = ctx.params.filename;
let lang = 'es';

if (pathname === 'believemy' || pathname === 'madroz' || pathname === 'justin') {
lang = 'fr';
}
const lang = LANG_MAP[pathname] || 'es';

if (pathname === 'ghareeb') {
lang = 'en';
}

if (pathname === 'apfelcast') {
lang = 'de';
}
const metatagsDescriptions = require(`@/assets/lang/${lang}/metatags-descriptions.json`);
const navbarLang = require(`@/assets/lang/${lang}/navbar.json`);
const langJson = require(`@/assets/lang/${lang}/specialOfferTemplate.json`);
Expand Down
Loading