From 6e8f0ec4ddb2b0a8b8b50ed1b9720680056bf99f Mon Sep 17 00:00:00 2001 From: internxt-yu Date: Fri, 31 Jul 2026 10:59:06 +0200 Subject: [PATCH 1/5] changes for mail --- src/assets/lang/de/mail.json | 2 +- src/assets/lang/en/mail.json | 2 +- src/assets/lang/es/mail.json | 2 +- src/assets/lang/fr/mail.json | 2 +- src/assets/lang/it/mail.json | 2 +- src/assets/lang/ru/mail.json | 2 +- src/assets/lang/zh-tw/mail.json | 2 +- src/assets/lang/zh/mail.json | 2 +- src/components/mail/HeroSection.tsx | 3 +- .../mail/HorizontalSrollableSection.tsx | 2 +- src/components/shared/FAQAccordion.tsx | 38 ++++++++++++++++++- src/components/shared/sections/FaqSection.tsx | 4 ++ src/pages/mail.tsx | 3 ++ 13 files changed, 53 insertions(+), 13 deletions(-) diff --git a/src/assets/lang/de/mail.json b/src/assets/lang/de/mail.json index 156ddca79..d899ed974 100644 --- a/src/assets/lang/de/mail.json +++ b/src/assets/lang/de/mail.json @@ -61,7 +61,7 @@ "cta": "Internxt Mail holen" }, "DesignedSection": { - "title": "Entwickelt, um alle Datenschutzbedürfnisse zu erfüllen", + "title": "Eine sichere E-Mail-Lösung, entwickelt für absolute Privatsphäre", "description": "Wir glauben, dass jeder ein Recht auf Privatsphäre hat. Deshalb wurde Internxt Mail entwickelt, um den Bedürfnissen aller gerecht zu werden, die einen sicheren E-Mail-Anbieter benötigen.", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/en/mail.json b/src/assets/lang/en/mail.json index 15afe4f82..d09b939b1 100644 --- a/src/assets/lang/en/mail.json +++ b/src/assets/lang/en/mail.json @@ -61,7 +61,7 @@ "cta": "Get Internxt Mail" }, "DesignedSection": { - "title": "Designed to meet all privacy needs", + "title": "A secure email solution designed for absolute privacy", "description": "We believe everyone has the right to privacy, which is why Internxt Mail is built to meet the needs of everyone who needs a secure email provider.", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/es/mail.json b/src/assets/lang/es/mail.json index 2ef900577..110da67ac 100644 --- a/src/assets/lang/es/mail.json +++ b/src/assets/lang/es/mail.json @@ -61,7 +61,7 @@ "cta": "Obtén Internxt Mail" }, "DesignedSection": { - "title": "Diseñado para satisfacer todas las necesidades de privacidad", + "title": "Una solución de correo electrónico segura diseñada para una privacidad absoluta", "description": "Creemos que todo el mundo tiene derecho a la privacidad, por lo que Internxt Mail está diseñado para satisfacer las necesidades de cualquiera que necesite un proveedor de correo electrónico seguro.", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/fr/mail.json b/src/assets/lang/fr/mail.json index 2f1bab2e9..53d70b494 100644 --- a/src/assets/lang/fr/mail.json +++ b/src/assets/lang/fr/mail.json @@ -61,7 +61,7 @@ "cta": "Obtenir Internxt Mail" }, "DesignedSection": { - "title": "Conçue pour répondre à tous les besoins de confidentialité", + "title": "Une solution d'email sécurisée conçue pour une confidentialité absolue", "description": "Nous pensons que tout le monde a droit à la vie privée, c'est pourquoi Internxt Mail est conçu pour répondre aux besoins de tous ceux qui recherchent un fournisseur de messagerie sécurisé.", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/it/mail.json b/src/assets/lang/it/mail.json index 3ee4e870c..bdfc64e52 100644 --- a/src/assets/lang/it/mail.json +++ b/src/assets/lang/it/mail.json @@ -61,7 +61,7 @@ "cta": "Ottieni Internxt Mail" }, "DesignedSection": { - "title": "Progettata per soddisfare tutte le esigenze di privacy", + "title": "Una soluzione email sicura progettata per la massima riservatezza", "description": "Crediamo che tutti abbiano diritto alla privacy, ed è per questo che Internxt Mail è creata per soddisfare le esigenze di chiunque necessiti di un provider di posta elettronica sicuro.", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/ru/mail.json b/src/assets/lang/ru/mail.json index ed0ad4907..87fd8b402 100644 --- a/src/assets/lang/ru/mail.json +++ b/src/assets/lang/ru/mail.json @@ -61,7 +61,7 @@ "cta": "Получить Internxt Mail" }, "DesignedSection": { - "title": "Создано для удовлетворения любых потребностей в конфиденциальности", + "title": "Безопасное решение для электронной почты, созданное для абсолютной конфиденциальности", "description": "Мы считаем, что каждый имеет право на конфиденциальность, поэтому Internxt Mail разработана для удовлетворения нужд любого, кому требуется надежный и безопасный почтовый провайдер.", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/zh-tw/mail.json b/src/assets/lang/zh-tw/mail.json index eb2de3098..07e6e6101 100644 --- a/src/assets/lang/zh-tw/mail.json +++ b/src/assets/lang/zh-tw/mail.json @@ -61,7 +61,7 @@ "cta": "獲取 Internxt Mail" }, "DesignedSection": { - "title": "專為滿足所有隱私需求而設計", + "title": "專為絕對隱私設計的安全電子郵件解決方案", "description": "我們相信每個人都有隱私權,因此 Internxt Mail 旨在滿足每個需要安全電子郵件服務提供商的人的需求。", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/assets/lang/zh/mail.json b/src/assets/lang/zh/mail.json index 68435cb84..2d34cf963 100644 --- a/src/assets/lang/zh/mail.json +++ b/src/assets/lang/zh/mail.json @@ -61,7 +61,7 @@ "cta": "获取 Internxt Mail" }, "DesignedSection": { - "title": "专为满足所有隐私需求而设计", + "title": "专为绝对隐私设计的安全电子邮件解决方案", "description": "我们相信每个人都有隐私权,因此 Internxt Mail 旨在满足每个需要安全电子邮件服务提供商的人的需求。", "scrollableSection": { "images": ["personal", "business", "lawyers", "medical"], diff --git a/src/components/mail/HeroSection.tsx b/src/components/mail/HeroSection.tsx index f311bedf2..114be91d9 100644 --- a/src/components/mail/HeroSection.tsx +++ b/src/components/mail/HeroSection.tsx @@ -1,5 +1,4 @@ import Link from 'next/link'; -import { HighlightText } from '../components/HighlightText'; import { CheckCircle } from '@phosphor-icons/react'; import Animation from '@/components/shared/Animation'; import { ImageConfig } from '@/assets/types/mail' @@ -62,7 +61,7 @@ export const HeroSection = ({ textContent }) => {

{textContent.label}

- + {textContent.title}

{textContent.description}

diff --git a/src/components/mail/HorizontalSrollableSection.tsx b/src/components/mail/HorizontalSrollableSection.tsx index a8d7005db..265387a56 100644 --- a/src/components/mail/HorizontalSrollableSection.tsx +++ b/src/components/mail/HorizontalSrollableSection.tsx @@ -140,7 +140,7 @@ export default function HorizontalScrollableSectionWithPhotosSection({ className="flex rounded-16 lg:hidden" />
-

{title}

+

{title}

{cardDescriptions[index]}

diff --git a/src/components/shared/FAQAccordion.tsx b/src/components/shared/FAQAccordion.tsx index 829377e7e..23da1da72 100644 --- a/src/components/shared/FAQAccordion.tsx +++ b/src/components/shared/FAQAccordion.tsx @@ -12,6 +12,8 @@ export default function FaqAccordion({ needsH3, needsSpecialH3 = false, index, + totalItems, + lastItemsAsP, }: { question: string; answer: string[]; @@ -21,6 +23,8 @@ export default function FaqAccordion({ needsH3?: boolean; needsSpecialH3?: boolean; index?: number; + totalItems?: number; + lastItemsAsP?: number; }): JSX.Element { const [active, setActive] = useState(false); @@ -36,8 +40,38 @@ export default function FaqAccordion({ }); }, []); - const QuestionTag = - needsSpecialH3 && typeof index === 'number' ? (index < 5 ? 'h3' : 'p') : needsH3 ? 'h3' : 'p'; + const getQuestionTag = ({ + needsSpecialH3, + needsH3, + index, + totalItems, + lastItemsAsP = 0, + }: { + needsSpecialH3: boolean; + needsH3: boolean; + index?: number; + totalItems?: number; + lastItemsAsP?: number; + }): 'h3' | 'p' => { + if (!needsSpecialH3 || index === undefined) { + return needsH3 ? 'h3' : 'p'; + } + + if (lastItemsAsP !== undefined && lastItemsAsP > 0 && totalItems !== undefined) { + return index >= totalItems - lastItemsAsP ? 'p' : 'h3'; + } + + return index < 5 ? 'h3' : 'p'; + }; + + const QuestionTag = getQuestionTag({ + needsSpecialH3, + needsH3: needsH3 ?? false, + index, + totalItems, + lastItemsAsP, + }); + return (
))} diff --git a/src/pages/mail.tsx b/src/pages/mail.tsx index 85eff6a98..1115bbb3c 100644 --- a/src/pages/mail.tsx +++ b/src/pages/mail.tsx @@ -44,6 +44,8 @@ const Mail = ({