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
15 changes: 15 additions & 0 deletions src/assets/lang/de/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
"subtitle2": "auf alle Pläne",
"claimDeal": "Angebot beanspruchen"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "Sie stehen auf der Black Friday **Prioritätsliste**.",
"description": "Sichern Sie sich vor allen anderen den frühzeitigen Zugang zu unserem größten Black Friday Angebot des Jahres – post-quantenverschlüsselter Cloud-Speicher und unsere komplette Privatsphäre-Suite mit {{discount}}% Rabatt.",
"subtitle": "Erhalten Sie {{discount}}% Rabatt",
"claimDeal": "Angebot beanspruchen"
},
"ReviewSection": {
"forbes": "Internxt festigt seine Position als europäische Alternative zu den Tech-Giganten",
"deloitte": "Erhielt den Deloitte Fast 50 Award für die am schnellsten wachsenden Unternehmen",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/lang/en/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
"lifetimeSubtitle2": "on all lifetime plans",
"claimDeal": "Claim deal"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "You're on the Black Friday **priority list**.",
"description": "Unlock early access to our biggest Black Friday deal of the year before anyone else—post-quantum encrypted cloud storage and our full privacy suite at {{discount}}% off.",
"subtitle": "Get {{discount}}% off discount",
"claimDeal": "Claim deal"
},
"ReviewSection": {
"forbes": "Internxt consolidates its position as an European alternative to the tech giants",
"deloitte": "Received Deloitte Fast 50 Award, which recognizes fastest-growing companies",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/lang/es/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
"subtitle2": "en todos los planes",
"claimDeal": "Reclamar oferta"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "Estás en la **lista prioritaria** del Black Friday.",
"description": "Desbloquea el acceso anticipado a nuestra mayor oferta del Black Friday del año antes que nadie: almacenamiento en la nube encriptado post-cuántico y toda nuestra suite de privacidad con un {{discount}}% de descuento.",
"subtitle": "Obtén un {{discount}}% de descuento",
"claimDeal": "Reclamar oferta"
},
"ReviewSection": {
"forbes": "Internxt consolida su posición como alternativa europea a los gigantes tecnológicos",
"deloitte": "Recibió el premio Deloitte Fast 50, que reconoce a las empresas de más rápido crecimiento",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/lang/fr/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
"subtitle2": "sur tous les plans",
"claimDeal": "Réclamer l'offre"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "Vous êtes sur la **liste prioritaire** du Black Friday.",
"description": "Débloquez l'accès anticipé à notre plus grande offre Black Friday de l'année avant tout le monde : stockage cloud chiffré post-quantique et toute notre suite de confidentialité avec {{discount}} % de réduction.",
"subtitle": "Obtenez {{discount}} % de réduction",
"claimDeal": "Réclamer l'offre"
},
"ReviewSection": {
"forbes": "Internxt consolide sa position en tant qu'alternative européenne aux géants technologiques",
"deloitte": "A reçu le prix Deloitte Fast 50, qui récompense les entreprises à la croissance la plus rapide",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/lang/it/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
"subtitle2": "su tutti i piani",
"claimDeal": "Rivendica l'offerta"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "Sei nella **lista prioritaria** del Black Friday.",
"description": "Sblocca l'accesso anticipato alla nostra più grande offerta Black Friday dell'anno prima di tutti gli altri: cloud storage crittografato post-quantico e l'intera suite per la privacy con {{discount}}% di sconto.",
"subtitle": "Ottieni {{discount}}% di sconto",
"claimDeal": "Rivendica l'offerta"
},
"ReviewSection": {
"forbes": "Internxt consolida la sua posizione come alternativa europea ai giganti tecnologici",
"deloitte": "Ha ricevuto il premio Deloitte Fast 50, che riconosce le aziende in più rapida crescita",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/lang/pt-br/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
"lifetimeSubtitle2": "em todos os planos vitalícios",
"claimDeal": "Garantir oferta"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "Você está na **lista prioritária** da Black Friday.",
"description": "Desbloqueie o acesso antecipado à nossa maior oferta de Black Friday do ano antes de todo mundo: armazenamento na nuvem criptografado pós-quântico e toda a nossa suíte de privacidade com {{discount}}% de desconto.",
"subtitle": "Ganhe {{discount}}% de desconto",
"claimDeal": "Garantir oferta"
},
"ReviewSection": {
"forbes": "A Internxt consolida sua posição como alternativa europeia às gigantes da tecnologia",
"deloitte": "Recebeu o prêmio Deloitte Fast 50, que reconhece as empresas de crescimento mais rápido",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/lang/ru/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
"subtitle2": "на все тарифы",
"claimDeal": "Получить предложение"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "Antivirus",
"cleaner": "Cleaner",
"vpn": "VPN",
"meet": "Meet",
"mail": "Mail",
"ai": "AI"
},
"title": "Вы в **приоритетном списке** Black Friday.",
"description": "Получите ранний доступ к нашему крупнейшему предложению Black Friday в этом году раньше всех — пост-квантовое зашифрованное облачное хранилище и весь пакет конфиденциальности со скидкой {{discount}}%.",
"subtitle": "Получите {{discount}}% скидки",
"claimDeal": "Получить предложение"
},
"ReviewSection": {
"forbes": "Internxt укрепляет свои позиции как европейская альтернатива технологическим гигантам",
"deloitte": "Получил премию Deloitte Fast 50, признающую самые быстрорастущие компании",
Expand Down
14 changes: 14 additions & 0 deletions src/assets/lang/zh-tw/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
"subtitle2": "適用於所有方案",
"claimDeal": "領取優惠"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "防毒軟體",
"cleaner": "清理工具",
"vpn": "VPN",
"meet": "Meet",
"mail": "郵件"
},
"title": "您已進入黑色星期五**優先名單**。",
"description": "搶先解鎖我們年度最大的黑色星期五優惠——後量子加密雲端儲存與完整隱私套件,立享{{discount}}%折扣。",
"subtitle": "享受{{discount}}%折扣",
"claimDeal": "領取優惠"
},
"ReviewSection": {
"forbes": "Internxt鞏固了其作為歐洲科技巨頭替代方案的地位",
"deloitte": "榮獲德勤Fast 50大獎,表彰成長最快的企業",
Expand Down
14 changes: 14 additions & 0 deletions src/assets/lang/zh/specialOfferTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
"subtitle2": "适用于所有计划",
"claimDeal": "获取优惠"
},
"PriorityHeroSection": {
"products": {
"drive": "Drive",
"antivirus": "杀毒软件",
"cleaner": "清理工具",
"vpn": "VPN",
"meet": "Meet",
"mail": "邮箱"
},
"title": "您已进入黑色星期五**优先名单**。",
"description": "抢先解锁我们年度最大的黑色星期五优惠——后量子加密云存储和完整隐私套件,立享{{discount}}%折扣。",
"subtitle": "享受{{discount}}%折扣",
"claimDeal": "获取优惠"
},
"ReviewSection": {
"forbes": "Internxt巩固了其作为欧洲科技巨头替代方案的地位",
"deloitte": "荣获德勤Fast 50大奖,表彰增长最快的企业",
Expand Down
9 changes: 9 additions & 0 deletions src/assets/types/specialOfferTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export interface SpecialOfferText {
HeroSection: HeroSection;
PriorityHeroSection: PriorityHeroSection;
ReviewSection: ReviewSection;
TrustedBySection: TrustedBySection;
NextGenSection: NextGenSection;
Expand Down Expand Up @@ -98,6 +99,14 @@ export interface HeroSection {
claimDeal: string;
}

export interface PriorityHeroSection {
products: Products;
title: string;
description: string;
subtitle: string;
claimDeal: string;
}

export interface Products {
drive: string;
antivirus: string;
Expand Down
7 changes: 7 additions & 0 deletions src/hooks/useSpecialOfferConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export const ALLOWED_PATHS = [
'heise85',
'parlonscyber',
'awde85',
'priority-offer-em',
];

export const ENFORCED_LOCALE: Record<string, string> = {
Expand Down Expand Up @@ -643,6 +644,7 @@ export const ANNUAL_DISCOUNT_PLANS_PATHS = new Set<string>([
'heise85',
'parlonscyber',
'awde85',
'priority-offer-em',
]);

export const COUPON_CODES = {
Expand Down Expand Up @@ -874,6 +876,7 @@ export const COUPON_CODES = {
heise85: PromoCodeName.heise85,
parlonscyber: PromoCodeName.parlonscyber,
awde85: PromoCodeName.awde85,
'priority-offer-em': PromoCodeName.plbf90,
};

interface OfferConfig {
Expand All @@ -892,6 +895,7 @@ interface OfferConfig {
isBpdrive: boolean;
requireAnnualDiscount?: boolean;
isPrivacyTutor: boolean;
isPriorityHero: boolean;
redirectToUrgentCheckout: boolean;
}

Expand All @@ -916,6 +920,7 @@ export const useOfferConfig = (pathname: string): OfferConfig => {
isBpdrive: false,
requireAnnualDiscount: false,
isPrivacyTutor: false,
isPriorityHero: false,
redirectToUrgentCheckout: false,
};
}
Expand All @@ -932,6 +937,7 @@ export const useOfferConfig = (pathname: string): OfferConfig => {
const isWpcdrive = selectedPathname === 'wpcdrive';
const isBpdrive = selectedPathname === 'bpdrive';
const isPrivacyTutor = selectedPathname === 'privacytutor';
const isPriorityHero = selectedPathname === 'priority-offer-em';
const requireAnnualDiscount = ANNUAL_DISCOUNT_PLANS_PATHS.has(selectedPathname);
const redirectToUrgentCheckout = URGENT_CHECKOUT_PATHS.has(selectedPathname);

Expand All @@ -954,6 +960,7 @@ export const useOfferConfig = (pathname: string): OfferConfig => {
isWpcdrive,
isBpdrive,
isPrivacyTutor,
isPriorityHero,
requireAnnualDiscount,
redirectToUrgentCheckout,
};
Expand Down
1 change: 1 addition & 0 deletions src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ export enum PromoCodeName {
awde85 = 'AWDE85',
awbf90 = 'AWBF90',
awcw90 = 'AWCW90',
plbf90 = 'PLBF90',
}

export interface PromoCodeProps {
Expand Down
5 changes: 3 additions & 2 deletions src/pages/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function CombinedSpecialOffer({
isWpcdrive,
isBpdrive,
isPrivacyTutor,
isPriorityHero,
requireAnnualDiscount,
redirectToUrgentCheckout,
} = useOfferConfig(pathname);
Expand Down Expand Up @@ -158,7 +159,7 @@ function CombinedSpecialOffer({
robots={
pathname === 'world-backup-day' || pathname === 'earth-day' || pathname === 'drop-offer'
|| pathname === 'offerblogen' || pathname === 'offerbloges' || pathname === 'offerblogde'
|| pathname === 'offerblogfr'
|| pathname === 'offerblogfr' || pathname === 'priority-offer-em'
? 'noindex,follow'
: undefined
}
Expand All @@ -174,7 +175,7 @@ function CombinedSpecialOffer({
/>

<HeroSection
textContent={langJson.HeroSection}
textContent={isPriorityHero ? langJson.PriorityHeroSection : langJson.HeroSection}
percentOff={percentOff}
darkMode={isDarkMode}
image={alternativeImages}
Expand Down
Loading