diff --git a/src/assets/hi-home-logo.svg b/src/assets/hi-home-logo.svg new file mode 100644 index 0000000..0ab1e46 --- /dev/null +++ b/src/assets/hi-home-logo.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 47c8192..bbdab70 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -2,6 +2,7 @@ import { ReactNode } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { Shield, Globe, Zap, Lock, Smartphone, Laptop, Download, Mail, MapPin, Phone, Languages } from 'lucide-react'; import { useLanguage } from '@/contexts/LanguageContext'; +import HiLogo from '@/assets/hi-home-logo.svg?react'; interface LayoutProps { children: ReactNode; @@ -25,52 +26,52 @@ export default function Layout({ children }: LayoutProps) {
- + HiFast VPN
- {t('nav.home')} - {t('nav.about')} - {t('nav.privacy')} - {t('nav.terms')} - {t('nav.contact')} - + {/* Language Switcher */}
- +

@@ -150,4 +150,4 @@ export default function Layout({ children }: LayoutProps) {

); -} \ No newline at end of file +} diff --git a/src/contexts/LanguageContext.tsx b/src/contexts/LanguageContext.tsx index f9dd083..d71bd10 100644 --- a/src/contexts/LanguageContext.tsx +++ b/src/contexts/LanguageContext.tsx @@ -33,7 +33,7 @@ export const LanguageProvider: React.FC = ({ children }) 'nav.privacy': 'Privacy Policy', 'nav.terms': 'Terms', 'nav.contact': 'Contact', - + // Footer 'footer.products': 'Products', 'footer.support': 'Support', @@ -42,7 +42,9 @@ export const LanguageProvider: React.FC = ({ children }) 'footer.operated': 'Operated by TAW TRADERS SDN. BHD. (Malaysia)', 'footer.countries': '105+ Countries', 'footer.speed': 'Lightning Fast', - + 'footer.description': 'Premium VPN service providing secure, fast, and reliable internet access worldwide. Operated by TAW TRADERS SDN. BHD.', + 'footer.brand': 'HiFast VPN', + // Home Page 'home.hero.title': 'Secure Your Digital Life with', 'home.hero.subtitle': 'HiFast VPN', @@ -72,7 +74,7 @@ export const LanguageProvider: React.FC = ({ children }) 'home.stats.support': 'Support', 'home.status.available': 'Available', 'home.status.comingSoon': 'Coming Soon', - + // About Page 'about.title': 'About', 'about.subtitle': 'HiFast VPN', @@ -81,6 +83,8 @@ export const LanguageProvider: React.FC = ({ children }) 'about.company.name': 'Company Name', 'about.company.location': 'Registered Location', 'about.company.focus': 'Business Focus', + 'about.company.locationValue': 'Malaysia', + 'about.company.businessValue': 'Network Communications & VPN Services', 'about.mission.title': 'Our Mission', 'about.mission.text': 'To provide secure, fast, and reliable internet access to users worldwide while maintaining the highest standards of privacy protection and customer service.', 'about.stats.experience': 'Years of Experience', @@ -101,7 +105,7 @@ export const LanguageProvider: React.FC = ({ children }) 'about.legal.compliance': 'Compliance', 'about.legal.business.desc': 'TAW TRADERS SDN. BHD. is a legally registered company in Malaysia, operating in the network communications and VPN services sector.', 'about.legal.compliance.desc': 'We adhere to international privacy standards and regulations, ensuring our users\' data protection and privacy rights.', - + // Privacy Page 'privacy.title': 'Privacy Policy', 'privacy.updated': 'Last updated: January 1, 2025', @@ -113,11 +117,42 @@ export const LanguageProvider: React.FC = ({ children }) 'privacy.contact.title': 'Contact Us', 'privacy.contact.text': 'If you have any questions about this Privacy Policy or our privacy practices, please contact us:', 'privacy.company': 'Company', + 'privacy.emailValue': 'privacy@hifastvpn.com', + + // Privacy Sections + 'privacy.informationCollection.title': 'Information We Collect', + 'privacy.informationCollection.personalInfo': 'Personal Information: When you create an account, we collect your email address, username, and payment information.', + 'privacy.informationCollection.usageData': 'Usage Data: We collect information about how you use our VPN services, including connection timestamps and server locations.', + 'privacy.informationCollection.deviceInfo': 'Device Information: We may collect device identifiers, operating system, and app version information.', + 'privacy.informationCollection.paymentInfo': 'Payment Information: Payment details are processed through secure third-party payment processors and are not stored on our servers.', + + 'privacy.howWeUse.title': 'How We Use Your Information', + 'privacy.howWeUse.serviceProvision': 'Service Provision: To provide and maintain our VPN services, including customer support.', + 'privacy.howWeUse.accountManagement': 'Account Management: To manage your account, process payments, and send service-related communications.', + 'privacy.howWeUse.serviceImprovement': 'Service Improvement: To analyze usage patterns and improve our services and user experience.', + 'privacy.howWeUse.legalCompliance': 'Legal Compliance: To comply with legal obligations and protect our legal rights.', + + 'privacy.dataSecurity.title': 'Data Security', + 'privacy.dataSecurity.encryption': 'Encryption: All data transmitted through our VPN services is encrypted using military-grade AES-256 encryption.', + 'privacy.dataSecurity.noLogPolicy': 'No-Log Policy: We do not log your browsing activity, traffic destinations, or DNS queries while connected to our VPN.', + 'privacy.dataSecurity.secureInfrastructure': 'Secure Infrastructure: Our servers are maintained with the highest security standards and regular security audits.', + 'privacy.dataSecurity.dataRetention': 'Data Retention: We retain minimal connection logs for service optimization and are automatically deleted after 30 days.', + + 'privacy.thirdPartyServices.title': 'Third-Party Services', + 'privacy.thirdPartyServices.paymentProcessors': 'Payment Processors: We use trusted third-party payment processors to handle payment transactions securely.', + 'privacy.thirdPartyServices.analytics': 'Analytics: We may use analytics services to understand app usage patterns, excluding personal browsing data.', + 'privacy.thirdPartyServices.serviceProviders': 'Service Providers: We may engage trusted third-party service providers to assist in providing our services.', + + 'privacy.yourRights.title': 'Your Rights', + 'privacy.yourRights.access': 'Access: You have the right to access the personal information we hold about you.', + 'privacy.yourRights.correction': 'Correction: You can update or correct your personal information through your account settings.', + 'privacy.yourRights.deletion': 'Deletion: You can request deletion of your account and associated personal information.', + 'privacy.yourRights.dataPortability': 'Data Portability: You can request a copy of your personal data in a machine-readable format.', 'privacy.email': 'Email', 'privacy.policy': 'Policy Updates', 'privacy.policy.text': 'We will notify users of any material changes to this policy', 'privacy.acknowledgement': 'By using HiFast VPN services, you acknowledge that you have read and understood this Privacy Policy. Your privacy is our priority, and we are committed to protecting your digital rights.', - + // Terms Page 'terms.title': 'Terms of Service', 'terms.updated': 'Last updated: January 1, 2025', @@ -140,13 +175,67 @@ export const LanguageProvider: React.FC = ({ children }) 'terms.contact': 'Contact:', 'terms.contact.text': 'For questions about these terms, please contact us at legal@hifastvpn.com', 'terms.acknowledgement': 'By using HiFast VPN services, you acknowledge that you have read, understood, and agree to these Terms of Service.', - + + // Terms Content Sections + 'terms.acceptance.content1': 'By accessing or using HiFast VPN services, you acknowledge that you have read, understood, and agree to be bound by these Terms of Service.', + 'terms.acceptance.content2': 'These terms constitute a legally binding agreement between you and TAW TRADERS SDN. BHD. regarding your use of our VPN services.', + 'terms.acceptance.content3': 'If you do not agree to these terms, you must not access or use our services.', + + 'terms.service.content1': 'HiFast VPN provides secure virtual private network services that encrypt your internet connection and protect your online privacy.', + 'terms.service.content2': 'Our services include access to VPN servers in multiple countries, unlimited bandwidth, and 24/7 customer support.', + 'terms.service.content3': 'We reserve the right to modify, suspend, or discontinue any aspect of our services at any time.', + + 'terms.responsibilities.content1': 'You are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account.', + 'terms.responsibilities.content2': 'You agree to use our services only for lawful purposes and in compliance with all applicable laws and regulations.', + 'terms.responsibilities.content3': 'You must not use our services to engage in any illegal activities, including but not limited to copyright infringement, fraud, or cybercrime.', + 'terms.responsibilities.content4': 'You are responsible for ensuring that your use of our services does not violate any third-party rights.', + + 'terms.prohibited.content1': 'You may not use our services to transmit or distribute malware, viruses, or other harmful software.', + 'terms.prohibited.content2': 'You may not use our services to engage in spamming, phishing, or other deceptive practices.', + 'terms.prohibited.content3': 'You may not use our services to access or distribute illegal content or engage in activities that violate local laws.', + 'terms.prohibited.content4': 'You may not attempt to circumvent security measures or gain unauthorized access to our systems or networks.', + + 'terms.limitations.content1': 'Our services are provided on an "as is" and "as available" basis without warranties of any kind.', + 'terms.limitations.content2': 'We do not guarantee that our services will be uninterrupted, error-free, or completely secure.', + 'terms.limitations.content3': 'We are not responsible for any damages arising from your use of our services, including but not limited to data loss or service interruptions.', + 'terms.limitations.content4': 'Our liability is limited to the maximum extent permitted by applicable law.', + + 'terms.payment.content1': 'Payment for our services is processed through secure third-party payment processors.', + 'terms.payment.content2': 'All fees are non-refundable unless otherwise specified in our refund policy.', + 'terms.payment.content3': 'We reserve the right to change our pricing at any time with prior notice to subscribers.', + 'terms.payment.content4': 'You are responsible for all charges incurred under your account, including applicable taxes.', + + 'terms.privacy.content1': 'We are committed to protecting your privacy and do not log your browsing activity or traffic destinations.', + 'terms.privacy.content2': 'We collect minimal connection logs for service optimization and security purposes.', + 'terms.privacy.content3': 'Your personal information is processed in accordance with our Privacy Policy.', + 'terms.privacy.content4': 'We implement industry-standard security measures to protect your data.', + + 'terms.termination.content1': 'We may terminate or suspend your account immediately if you violate these Terms of Service.', + 'terms.termination.content2': 'Upon termination, your right to use our services will immediately cease.', + 'terms.termination.content3': 'All provisions of these terms that by their nature should survive termination shall survive.', + 'terms.termination.content4': 'We are not liable for any damages resulting from termination of your account.', + + 'terms.copyright': '© 2025 TAW TRADERS SDN. BHD. All rights reserved.', + + // Service Provider Section + 'terms.serviceProvider.title': 'Service Provider', + 'terms.serviceProvider.companyDetails': 'Company Details', + 'terms.serviceProvider.companyName': 'Company Name', + 'terms.serviceProvider.businessType': 'Business Type', + 'terms.serviceProvider.businessTypeValue': 'Network Communications & VPN Services', + 'terms.serviceProvider.registration': 'Registration', + 'terms.serviceProvider.registrationValue': 'Malaysia', + 'terms.serviceProvider.serviceCommitment': 'Service Commitment', + 'terms.serviceProvider.serviceCommitmentContent': 'We are committed to providing secure, fast, and reliable VPN services while maintaining the highest standards of privacy protection and customer service.', + 'terms.serviceProvider.operatedBy': 'Operated by', + 'terms.serviceProvider.trustedProvider': 'Your trusted VPN provider', + // Contact Page 'contact.title': 'Contact', 'contact.subtitle': 'Us', 'contact.description': 'We\'re here to help! Get in touch with our support team for any questions, technical assistance, or business inquiries.', 'contact.email.title': 'Email Support', - 'contact.email.value': 'support@hifastvpn.com', + 'contact.email.value': 'admin@hifastvpn.com', 'contact.email.desc': 'Get help with any questions or issues', 'contact.hours.title': 'Support Hours', 'contact.hours.value': '24/7 Support', @@ -183,7 +272,7 @@ export const LanguageProvider: React.FC = ({ children }) 'contact.response.technical.time': 'Within 12 hours', 'contact.response.billing.time': 'Within 6 hours', 'contact.success': 'Thank you for your message! We will get back to you soon.', - + // Common 'common.app': 'App', 'common.windows': 'Windows', @@ -221,10 +310,8 @@ export const LanguageProvider: React.FC = ({ children }) 'common.filter': 'Filter', 'common.sort': 'Sort', 'common.view': 'View', - 'common.edit': 'Edit', 'common.update': 'Update', 'common.create': 'Create', - 'common.remove': 'Remove', 'common.refresh': 'Refresh', 'common.retry': 'Retry', 'common.continue': 'Continue', @@ -242,7 +329,6 @@ export const LanguageProvider: React.FC = ({ children }) 'common.show': 'Show', 'common.hide': 'Hide', 'common.open': 'Open', - 'common.close': 'Close', 'common.expand': 'Expand', 'common.collapse': 'Collapse', 'common.enable': 'Enable', @@ -261,7 +347,7 @@ export const LanguageProvider: React.FC = ({ children }) 'nav.privacy': '隐私政策', 'nav.terms': '服务条款', 'nav.contact': '联系我们', - + // Footer 'footer.products': '产品', 'footer.support': '支持', @@ -270,7 +356,9 @@ export const LanguageProvider: React.FC = ({ children }) 'footer.operated': '由 TAW TRADERS SDN. BHD.(马来西亚)运营', 'footer.countries': '105+ 国家', 'footer.speed': '闪电般快速', - + 'footer.description': '提供全球安全、快速、可靠的互联网访问的高级VPN服务。由 TAW TRADERS SDN. BHD. 运营。', + 'footer.brand': 'HiFast VPN', + // Home Page 'home.hero.title': '保护您的数字生活', 'home.hero.subtitle': 'HiFast VPN', @@ -300,7 +388,7 @@ export const LanguageProvider: React.FC = ({ children }) 'home.stats.support': '支持', 'home.status.available': '可用', 'home.status.comingSoon': '即将推出', - + // About Page 'about.title': '关于', 'about.subtitle': 'HiFast VPN', @@ -309,6 +397,8 @@ export const LanguageProvider: React.FC = ({ children }) 'about.company.name': '公司名称', 'about.company.location': '注册地点', 'about.company.focus': '业务重点', + 'about.company.locationValue': '马来西亚', + 'about.company.businessValue': '网络通信与VPN服务', 'about.mission.title': '我们的使命', 'about.mission.text': '为全球用户提供安全、快速、可靠的互联网访问,同时保持最高标准的隐私保护和客户服务。', 'about.stats.experience': '多年经验', @@ -329,7 +419,7 @@ export const LanguageProvider: React.FC = ({ children }) 'about.legal.compliance': '合规性', 'about.legal.business.desc': 'TAW TRADERS SDN. BHD. 是在马来西亚合法注册的公司,在网络通信和 VPN 服务领域运营。', 'about.legal.compliance.desc': '我们遵守国际隐私标准和法规,确保用户的数据保护和隐私权。', - + // Privacy Page 'privacy.title': '隐私政策', 'privacy.updated': '最后更新:2025年1月1日', @@ -341,11 +431,42 @@ export const LanguageProvider: React.FC = ({ children }) 'privacy.contact.title': '联系我们', 'privacy.contact.text': '如果您对本隐私政策或我们的隐私实践有任何疑问,请联系我们:', 'privacy.company': '公司', + 'privacy.emailValue': 'privacy@hifastvpn.com', + + // Privacy Sections (Chinese) + 'privacy.informationCollection.title': '我们收集的信息', + 'privacy.informationCollection.personalInfo': '个人信息:当您创建账户时,我们会收集您的电子邮件地址、用户名和付款信息。', + 'privacy.informationCollection.usageData': '使用数据:我们收集有关您如何使用我们VPN服务的信息,包括连接时间戳和服务器位置。', + 'privacy.informationCollection.deviceInfo': '设备信息:我们可能会收集设备标识符、操作系统和应用程序版本信息。', + 'privacy.informationCollection.paymentInfo': '付款信息:付款详情通过安全的第三方付款处理器处理,不会存储在我们的服务器上。', + + 'privacy.howWeUse.title': '我们如何使用您的信息', + 'privacy.howWeUse.serviceProvision': '服务提供:提供和维护我们的VPN服务,包括客户支持。', + 'privacy.howWeUse.accountManagement': '账户管理:管理您的账户、处理付款并发送与服务相关的通信。', + 'privacy.howWeUse.serviceImprovement': '服务改进:分析使用模式并改善我们的服务和用户体验。', + 'privacy.howWeUse.legalCompliance': '法律合规:遵守法律义务并保护我们的合法权利。', + + 'privacy.dataSecurity.title': '数据安全', + 'privacy.dataSecurity.encryption': '加密:通过我们VPN服务传输的所有数据都使用军用级AES-256加密进行加密。', + 'privacy.dataSecurity.noLogPolicy': '无日志政策:我们不会记录您连接到VPN时的浏览活动、流量目的地或DNS查询。', + 'privacy.dataSecurity.secureInfrastructure': '安全基础设施:我们的服务器以最高安全标准维护,并定期接受安全审计。', + 'privacy.dataSecurity.dataRetention': '数据保留:我们保留最少的连接日志用于服务优化,并会在30天后自动删除。', + + 'privacy.thirdPartyServices.title': '第三方服务', + 'privacy.thirdPartyServices.paymentProcessors': '付款处理器:我们使用可信的第三方付款处理器来安全地处理付款交易。', + 'privacy.thirdPartyServices.analytics': '分析:我们可能会使用分析服务来了解应用程序使用模式,不包括个人浏览数据。', + 'privacy.thirdPartyServices.serviceProviders': '服务提供商:我们可能会聘请可信的第三方服务提供商来协助提供服务。', + + 'privacy.yourRights.title': '您的权利', + 'privacy.yourRights.access': '访问:您有权访问我们持有的关于您的个人信息。', + 'privacy.yourRights.correction': '更正:您可以通过账户设置更新或更正您的个人信息。', + 'privacy.yourRights.deletion': '删除:您可以请求删除您的账户和相关个人信息。', + 'privacy.yourRights.dataPortability': '数据可携带性:您可以请求以机器可读格式获取您的个人数据副本。', 'privacy.email': '电子邮件', 'privacy.policy': '政策更新', 'privacy.policy.text': '我们将通知用户本政策的任何重大变更', 'privacy.acknowledgement': '使用 HiFast VPN 服务,即表示您承认您已阅读并理解本隐私政策。您的隐私是我们的首要任务,我们致力于保护您的数字权利。', - + // Terms Page 'terms.title': '服务条款', 'terms.updated': '最后更新:2025年1月1日', @@ -368,13 +489,67 @@ export const LanguageProvider: React.FC = ({ children }) 'terms.contact': '联系:', 'terms.contact.text': '有关这些条款的问题,请通过 legal@hifastvpn.com 联系我们', 'terms.acknowledgement': '使用 HiFast VPN 服务,即表示您承认您已阅读、理解并同意这些服务条款。', - + + // Terms Content Sections + 'terms.acceptance.content1': '访问或使用 HiFast VPN 服务,即表示您承认您已阅读、理解并同意受这些服务条款的约束。', + 'terms.acceptance.content2': '这些条款构成您与 TAW TRADERS SDN. BHD. 之间关于您使用我们 VPN 服务的具有法律约束力的协议。', + 'terms.acceptance.content3': '如果您不同意这些条款,您不得访问或使用我们的服务。', + + 'terms.service.content1': 'HiFast VPN 提供安全的虚拟专用网络服务,可加密您的互联网连接并保护您的在线隐私。', + 'terms.service.content2': '我们的服务包括访问多个国家的 VPN 服务器、无限带宽和 24/7 客户支持。', + 'terms.service.content3': '我们保留随时修改、暂停或终止我们服务任何方面的权利。', + + 'terms.responsibilities.content1': '您有责任维护您的账户凭据的机密性,并对您账户下发生的所有活动负责。', + 'terms.responsibilities.content2': '您同意仅为合法目的使用我们的服务,并遵守所有适用的法律法规。', + 'terms.responsibilities.content3': '您不得使用我们的服务从事任何非法活动,包括但不限于侵犯版权、欺诈或网络犯罪。', + 'terms.responsibilities.content4': '您有责任确保您对我们服务的使用不侵犯任何第三方权利。', + + 'terms.prohibited.content1': '您不得使用我们的服务传输或分发恶意软件、病毒或其他有害软件。', + 'terms.prohibited.content2': '您不得使用我们的服务从事垃圾邮件、网络钓鱼或其他欺骗行为。', + 'terms.prohibited.content3': '您不得使用我们的服务访问或分发非法内容或从事违反当地法律的活动。', + 'terms.prohibited.content4': '您不得试图绕过安全措施或获得对我们系统或网络的未经授权访问。', + + 'terms.limitations.content1': '我们的服务按"原样"和"可用"基础提供,不提供任何类型的保证。', + 'terms.limitations.content2': '我们不保证我们的服务将不间断、无错误或完全安全。', + 'terms.limitations.content3': '我们对因您使用我们的服务而引起的任何损害不承担责任,包括但不限于数据丢失或服务中断。', + 'terms.limitations.content4': '我们的责任限制在适用法律允许的最大范围内。', + + 'terms.payment.content1': '我们服务的付款通过安全的第三方付款处理器处理。', + 'terms.payment.content2': '除非我们的退款政策另有规定,否则所有费用均不予退还。', + 'terms.payment.content3': '我们保留随时更改定价的权利,并会提前通知订阅者。', + 'terms.payment.content4': '您对您账户下产生的所有费用负责,包括适用的税费。', + + 'terms.privacy.content1': '我们致力于保护您的隐私,不记录您的浏览活动或流量目的地。', + 'terms.privacy.content2': '我们收集最少的连接日志用于服务优化和安全目的。', + 'terms.privacy.content3': '您的个人信息根据我们的隐私政策进行处理。', + 'terms.privacy.content4': '我们实施行业标准的安全措施来保护您的数据。', + + 'terms.termination.content1': '如果您违反这些服务条款,我们可能会立即终止或暂停您的账户。', + 'terms.termination.content2': '终止后,您使用我们服务的权利将立即停止。', + 'terms.termination.content3': '这些条款中按其性质应在终止后继续存在的所有条款应在终止后继续有效。', + 'terms.termination.content4': '我们对因终止您的账户而导致的任何损害不承担责任。', + + 'terms.copyright': '© 2025 TAW TRADERS SDN. BHD. 保留所有权利。', + + // Service Provider Section + 'terms.serviceProvider.title': '服务提供商', + 'terms.serviceProvider.companyDetails': '公司详情', + 'terms.serviceProvider.companyName': '公司名称', + 'terms.serviceProvider.businessType': '业务类型', + 'terms.serviceProvider.businessTypeValue': '网络通信和 VPN 服务', + 'terms.serviceProvider.registration': '注册地', + 'terms.serviceProvider.registrationValue': '马来西亚', + 'terms.serviceProvider.serviceCommitment': '服务承诺', + 'terms.serviceProvider.serviceCommitmentContent': '我们致力于提供安全、快速和可靠的 VPN 服务,同时保持最高标准的隐私保护和客户服务。', + 'terms.serviceProvider.operatedBy': '由', + 'terms.serviceProvider.trustedProvider': '运营 - 您值得信赖的 VPN 提供商', + // Contact Page 'contact.title': '联系', 'contact.subtitle': '我们', 'contact.description': '我们随时为您提供帮助!与我们的支持团队联系,获取任何问题、技术帮助或业务咨询。', 'contact.email.title': '电子邮件支持', - 'contact.email.value': 'support@hifastvpn.com', + 'contact.email.value': 'admin@hifastvpn.com', 'contact.email.desc': '获得任何问题的帮助', 'contact.hours.title': '支持时间', 'contact.hours.value': '24/7 支持', @@ -411,7 +586,7 @@ export const LanguageProvider: React.FC = ({ children }) 'contact.response.technical.time': '12小时内', 'contact.response.billing.time': '6小时内', 'contact.success': '感谢您的消息!我们将尽快回复您。', - + // Common 'common.app': '应用', 'common.windows': 'Windows', @@ -449,10 +624,8 @@ export const LanguageProvider: React.FC = ({ children }) 'common.filter': '筛选', 'common.sort': '排序', 'common.view': '查看', - 'common.edit': '编辑', 'common.update': '更新', 'common.create': '创建', - 'common.remove': '移除', 'common.refresh': '刷新', 'common.retry': '重试', 'common.continue': '继续', @@ -470,9 +643,8 @@ export const LanguageProvider: React.FC = ({ children }) 'common.show': '显示', 'common.hide': '隐藏', 'common.open': '打开', - 'common.close': '关闭', 'common.expand': '展开', - 'common.collapse': '折叠', + 'common.collapse': '收起', 'common.enable': '启用', 'common.disable': '禁用', 'common.on': '开', @@ -493,4 +665,4 @@ export const LanguageProvider: React.FC = ({ children }) {children} ); -}; \ No newline at end of file +}; diff --git a/src/pages/About.tsx b/src/pages/About.tsx index bd1d994..b3fecc1 100644 --- a/src/pages/About.tsx +++ b/src/pages/About.tsx @@ -69,21 +69,21 @@ export default function About() {

{t('about.company.name')}

-

TAW TRADERS SDN. BHD.

+

{t('company.name')}

{t('about.company.location')}

-

Malaysia

+

{t('about.company.locationValue')}

{t('about.company.focus')}

-

Network Communications & VPN Services

+

{t('about.company.businessValue')}

diff --git a/src/pages/Contact.tsx b/src/pages/Contact.tsx index 98c56cc..9f0cbcc 100644 --- a/src/pages/Contact.tsx +++ b/src/pages/Contact.tsx @@ -16,7 +16,7 @@ export default function Contact() { e.preventDefault(); // Handle form submission console.log('Form submitted:', formData); - alert(t('contact.form.successMessage')); + alert(t('contact.success')); setFormData({ name: '', email: '', subject: '', message: '' }); }; @@ -30,21 +30,21 @@ export default function Contact() { const contactInfo = [ { icon: Mail, - title: t('contact.info.email.title'), - value: t('contact.info.email.value'), - description: t('contact.info.email.description') + title: t('contact.email.title'), + value: t('contact.email.value'), + description: t('contact.email.desc') }, { icon: Clock, - title: t('contact.info.hours.title'), - value: t('contact.info.hours.value'), - description: t('contact.info.hours.description') + title: t('contact.hours.title'), + value: t('contact.hours.value'), + description: t('contact.hours.desc') }, { icon: MapPin, - title: t('contact.info.address.title'), - value: t('contact.info.address.value'), - description: t('contact.info.address.description') + title: t('contact.address.title'), + value: t('contact.address.value'), + description: t('contact.address.desc') } ]; @@ -59,11 +59,8 @@ export default function Contact() { className="text-center mb-16" >

- {t('contact.title')} {t('contact.titleHighlight')} + {t('contact.title')} {t('contact.description')}

-

- {t('contact.subtitle')} -

{/* Contact Information */} @@ -101,7 +98,7 @@ export default function Contact() {
@@ -113,14 +110,14 @@ export default function Contact() { onChange={handleChange} required className="w-full pl-10 pr-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-blue-400 transition-colors" - placeholder={t('contact.form.namePlaceholder')} + placeholder={t('contact.form.name.placeholder')} />
@@ -132,14 +129,14 @@ export default function Contact() { onChange={handleChange} required className="w-full pl-10 pr-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-blue-400 transition-colors" - placeholder={t('contact.form.emailPlaceholder')} + placeholder={t('contact.form.email.placeholder')} />
@@ -167,7 +164,7 @@ export default function Contact() { required rows={5} className="w-full pl-10 pr-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-blue-400 transition-colors resize-none" - placeholder={t('contact.form.messagePlaceholder')} + placeholder={t('contact.form.message.placeholder')} />
@@ -179,7 +176,7 @@ export default function Contact() { className="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg font-semibold flex items-center justify-center space-x-2 transition-colors" > - {t('contact.form.sendButton')} + {t('contact.form.submit')} @@ -195,16 +192,16 @@ export default function Contact() { > {/* Company Details */}
-

{t('contact.companyInfo.title')}

+

{t('contact.company.title')}

-

{t('contact.companyInfo.registeredCompany')}

-

{t('company.name')}

-

{t('contact.companyInfo.malaysia')}

+

{t('contact.company.registered')}

+

{t('contact.company.name')}

+

{t('contact.company.location')}

@@ -212,8 +209,8 @@ export default function Contact() {
-

{t('contact.companyInfo.businessEmail')}

-

{t('contact.companyInfo.supportEmail')}

+

Business Email

+

{t('contact.email.value')}

@@ -221,8 +218,8 @@ export default function Contact() {
-

{t('contact.companyInfo.supportHours')}

-

{t('contact.companyInfo.supportHoursValue')}

+

Support Hours

+

{t('contact.hours.value')} - {t('contact.hours.desc')}

@@ -230,48 +227,48 @@ export default function Contact() { {/* Quick Support */}
-

{t('contact.quickSupport.title')}

+

{t('contact.quick.title')}

- {t('contact.quickSupport.description')} + {t('contact.quick.text')}

- {t('contact.quickSupport.topic1')} + {t('contact.quick.connection')}
- {t('contact.quickSupport.topic2')} + {t('contact.quick.billing')}
- {t('contact.quickSupport.topic3')} + {t('contact.quick.installation')}
- {t('contact.quickSupport.topic4')} + {t('contact.quick.servers')}
{/* Response Time */}
-

{t('contact.responseTime.title')}

+

{t('contact.response.title')}

- {t('contact.responseTime.description')} + {t('contact.response.text')}

- {t('contact.responseTime.general')} - {t('contact.responseTime.generalValue')} + {t('contact.response.general')} + {t('contact.response.general.time')}
- {t('contact.responseTime.technical')} - {t('contact.responseTime.technicalValue')} + {t('contact.response.technical')} + {t('contact.response.technical.time')}
- {t('contact.responseTime.billing')} - {t('contact.responseTime.billingValue')} + {t('contact.response.billing')} + {t('contact.response.billing.time')}
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index c2c11e6..bb55d16 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -5,217 +5,176 @@ import { useLanguage } from '@/contexts/LanguageContext'; export default function Home() { const { t } = useLanguage(); - + const features = [ - { - icon: Globe, - title: t('home.features.global'), - description: t('home.features.global.desc') - }, - { - icon: Zap, - title: t('home.features.speed'), - description: t('home.features.speed.desc') - }, - { - icon: Lock, - title: t('home.features.encryption'), - description: t('home.features.encryption.desc') - }, - { - icon: Shield, - title: t('home.features.logs'), - description: t('home.features.logs.desc') - } + { icon: Globe, title: t('home.features.global'), description: t('home.features.global.desc') }, + { icon: Zap, title: t('home.features.speed'), description: t('home.features.speed.desc') }, + { icon: Lock, title: t('home.features.encryption'), description: t('home.features.encryption.desc') }, + { icon: Shield, title: t('home.features.logs'), description: t('home.features.logs.desc') } ]; const platforms = [ { name: t('common.ios'), icon: Smartphone, status: t('home.status.comingSoon') }, - { name: t('common.android'), icon: Smartphone, status: t('home.status.available') }, - { name: t('common.windows'), icon: Laptop, status: t('home.status.available') }, + { name: t('common.android'), icon: Smartphone, status: t('home.status.available'), downloadUrl: 'https://down.airoport.xin/hiFastVpn-Android-universal-01.apk' }, + { name: t('common.windows'), icon: Laptop, status: t('home.status.available'), downloadUrl: 'https://down.airoport.xin/hiFastVpn-01-windows-setup.exe' }, { name: t('common.macos'), icon: Laptop, status: t('home.status.comingSoon') } ]; + // Hero按钮点击跳转到平台 + const scrollToPlatforms = () => { + const section = document.getElementById('platforms-section'); + if (section) section.scrollIntoView({ behavior: 'smooth' }); + }; + return ( -
- {/* Hero Section */} -
-
- -

- {t('home.hero.title')} - {t('home.hero.subtitle')} -

-

- {t('home.hero.description')} -

-
- - - {t('home.hero.cta')} - - - {t('home.hero.learnMore')} - - +
+ {/* Hero Section */} +
+
+ +

+ {t('home.hero.title')} + {t('home.hero.subtitle')} +

+

{t('home.hero.description')}

+
+ + + {t('home.hero.cta')} + + + {t('home.hero.learnMore')} + + +
+
+
+
+ + {/* Features Section */} +
+
+ +

{t('home.features.title')}

+

{t('home.features.subtitle')}

+
+
+ {features.map((feature, index) => ( + +
+ +
+

{feature.title}

+

{feature.description}

+
+ ))}
- -
-
- - {/* Features Section */} -
-
- -

- {t('home.features.title')} -

-

- {t('home.features.subtitle')} -

-
- -
- {features.map((feature, index) => ( - -
- -
-

{feature.title}

-

{feature.description}

-
- ))}
-
-
+
- {/* Platforms Section */} -
-
- -

- {t('home.platforms.title')} -

-

- {t('home.platforms.subtitle')} -

-
- -
- {platforms.map((platform, index) => ( - -
- -
-

{platform.name}

-

- {platform.status} -

-
- ))} + {/* Platforms Section */} +
+
+ +

{t('home.platforms.title')}

+

{t('home.platforms.subtitle')}

+
+
+ {platforms.map((platform, index) => { + const isAvailable = platform.status === t('home.status.available'); + return ( + { + if (!isAvailable || !platform.downloadUrl) return; + window.open(platform.downloadUrl, '_blank'); + }} + > +
+ +
+

{platform.name}

+

{platform.status}

+
+ ); + })} +
-
-
+ - {/* CTA Section */} -
-
- -

- {t('home.cta.title')} -

-

- {t('home.cta.subtitle')} -

-
- - - {t('home.cta.button')} - -
-
- - {t('home.guarantee.moneyback')} -
-
- - {t('home.guarantee.free')} + {/* CTA Section */} +
+
+ +

{t('home.cta.title')}

+

{t('home.cta.subtitle')}

+
+ + + {t('home.cta.button')} + +
+
+ + {t('home.guarantee.moneyback')} +
+
+ + {t('home.guarantee.free')} +
-
- -
-
+ +
+ - {/* Trust Indicators */} -
-
-
-
-
10M+
-
{t('home.stats.users')}
-
-
-
105+
-
{t('home.stats.countries')}
-
-
-
99.9%
-
{t('home.stats.uptime')}
-
-
-
24/7
-
{t('home.stats.support')}
+ {/* Trust Indicators */} +
+
+
+
+
10M+
+
{t('home.stats.users')}
+
+
+
105+
+
{t('home.stats.countries')}
+
+
+
99.9%
+
{t('home.stats.uptime')}
+
+
+
24/7
+
{t('home.stats.support')}
+
-
-
- + + ); -} \ No newline at end of file +} diff --git a/src/pages/Privacy.tsx b/src/pages/Privacy.tsx index f4a3e0b..7e9e82c 100644 --- a/src/pages/Privacy.tsx +++ b/src/pages/Privacy.tsx @@ -7,47 +7,47 @@ export default function Privacy() { const sections = [ { - title: "Information We Collect", + title: t('privacy.informationCollection.title'), content: [ - "Personal Information: When you create an account, we collect your email address, username, and payment information.", - "Usage Data: We collect information about how you use our VPN services, including connection timestamps and server locations.", - "Device Information: We may collect device identifiers, operating system, and app version information.", - "Payment Information: Payment details are processed through secure third-party payment processors and are not stored on our servers." + t('privacy.informationCollection.personalInfo'), + t('privacy.informationCollection.usageData'), + t('privacy.informationCollection.deviceInfo'), + t('privacy.informationCollection.paymentInfo') ] }, { - title: "How We Use Your Information", + title: t('privacy.howWeUse.title'), content: [ - "Service Provision: To provide and maintain our VPN services, including customer support.", - "Account Management: To manage your account, process payments, and send service-related communications.", - "Service Improvement: To analyze usage patterns and improve our services and user experience.", - "Legal Compliance: To comply with legal obligations and protect our legal rights." + t('privacy.howWeUse.serviceProvision'), + t('privacy.howWeUse.accountManagement'), + t('privacy.howWeUse.serviceImprovement'), + t('privacy.howWeUse.legalCompliance') ] }, { - title: "Data Security", + title: t('privacy.dataSecurity.title'), content: [ - "Encryption: All data transmitted through our VPN services is encrypted using military-grade AES-256 encryption.", - "No-Log Policy: We do not log your browsing activity, traffic destinations, or DNS queries while connected to our VPN.", - "Secure Infrastructure: Our servers are maintained with the highest security standards and regular security audits.", - "Data Retention: We retain minimal connection logs for service optimization and are automatically deleted after 30 days." + t('privacy.dataSecurity.encryption'), + t('privacy.dataSecurity.noLogPolicy'), + t('privacy.dataSecurity.secureInfrastructure'), + t('privacy.dataSecurity.dataRetention') ] }, { - title: "Third-Party Services", + title: t('privacy.thirdPartyServices.title'), content: [ - "Payment Processors: We use trusted third-party payment processors to handle payment transactions securely.", - "Analytics: We may use analytics services to understand app usage patterns, excluding personal browsing data.", - "Service Providers: We may engage trusted third-party service providers to assist in providing our services." + t('privacy.thirdPartyServices.paymentProcessors'), + t('privacy.thirdPartyServices.analytics'), + t('privacy.thirdPartyServices.serviceProviders') ] }, { - title: "Your Rights", + title: t('privacy.yourRights.title'), content: [ - "Access: You have the right to access the personal information we hold about you.", - "Correction: You can update or correct your personal information through your account settings.", - "Deletion: You can request deletion of your account and associated personal information.", - "Data Portability: You can request a copy of your personal data in a machine-readable format." + t('privacy.yourRights.access'), + t('privacy.yourRights.correction'), + t('privacy.yourRights.deletion'), + t('privacy.yourRights.dataPortability') ] } ]; @@ -145,7 +145,7 @@ export default function Privacy() {

{t('privacy.company')}

-

TAW TRADERS SDN. BHD.

+

{t('company.name')}

@@ -154,7 +154,7 @@ export default function Privacy() {

{t('privacy.email')}

-

privacy@hifastvpn.com

+

{t('privacy.emailValue')}

diff --git a/src/pages/Terms.tsx b/src/pages/Terms.tsx index 622d4f3..53a9b79 100644 --- a/src/pages/Terms.tsx +++ b/src/pages/Terms.tsx @@ -96,10 +96,10 @@ export default function Terms() { {t('terms.title')}

- {t('terms.lastUpdated')}: {t('terms.lastUpdatedDate')} + {t('terms.updated')}

- {t('terms.subtitle')} + {t('terms.description')}

@@ -114,9 +114,9 @@ export default function Terms() {
-

{t('terms.importantNotice.title')}

+

{t('terms.notice.title')}

- {t('terms.importantNotice.content')} + {t('terms.notice.text')}

@@ -156,24 +156,24 @@ export default function Terms() { viewport={{ once: true }} className="bg-white/10 backdrop-blur-md rounded-xl p-8 mt-12 border border-white/20" > -

{t('terms.finalProvisions.title')}

+

{t('terms.final.title')}

- {t('terms.finalProvisions.governingLaw')}: {t('terms.finalProvisions.governingLawContent')} + {t('terms.governing')} {t('terms.governing.text')}

- {t('terms.finalProvisions.changesToTerms')}: {t('terms.finalProvisions.changesToTermsContent')} + {t('terms.changes')} {t('terms.changes.text')}

- {t('terms.finalProvisions.contact')}: {t('terms.finalProvisions.contactContent')} + {t('terms.contact')} {t('terms.contact.text')}

@@ -206,7 +206,7 @@ export default function Terms() {

- {t('terms.serviceProvider.operatedBy')} - {t('terms.serviceProvider.trustedProvider')} + {t('terms.serviceProvider.operatedBy')} {t('company.name')} - {t('terms.serviceProvider.trustedProvider')}

@@ -220,10 +220,10 @@ export default function Terms() { className="text-center mt-12 p-6 bg-gradient-to-r from-blue-600/20 to-indigo-600/20 rounded-xl border border-blue-400/30" >

- {t('terms.acceptance.acknowledgment')} + {t('terms.acknowledgement')}

- {t('terms.acceptance.copyright')} + {t('terms.copyright')}

diff --git a/vite.config.ts b/vite.config.ts index ae87a08..3abfaa1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,6 +2,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import tsconfigPaths from "vite-tsconfig-paths"; import { traeBadgePlugin } from 'vite-plugin-trae-solo-badge'; +import svgr from 'vite-plugin-svgr'; // https://vite.dev/config/ export default defineConfig({ @@ -16,6 +17,7 @@ export default defineConfig({ ], }, }), + svgr(), traeBadgePlugin({ variant: 'dark', position: 'bottom-right', @@ -24,7 +26,7 @@ export default defineConfig({ clickUrl: 'https://www.trae.ai/solo?showJoin=1', autoTheme: true, autoThemeTarget: '#root' - }), + }), tsconfigPaths() ], })