Add contact, privacy, and terms pages with localization support

- Implemented contact page with form submission functionality and email integration.
- Created privacy and terms pages with structured content and localization.
- Updated English and French localization files to include new strings for contact, privacy, and terms.
- Enhanced About page with detailed sections on mission, technology, security, and tools offered.
This commit is contained in:
Your Name
2026-03-09 13:24:50 +02:00
parent b9900106b2
commit ce5c85ec7d
10 changed files with 672 additions and 118 deletions

View File

@@ -3,65 +3,58 @@ import { Helmet } from 'react-helmet-async';
import { FILE_RETENTION_MINUTES } from '@/config/toolLimits';
const LAST_UPDATED = '2026-03-06';
const CONTACT_EMAIL = 'support@saas-pdf.com';
export default function TermsPage() {
const { t } = useTranslation();
const useItems = t('pages.terms.useItems', { returnObjects: true }) as string[];
const fileItems = t('pages.terms.fileItems', { minutes: FILE_RETENTION_MINUTES, returnObjects: true }) as string[];
return (
<>
<Helmet>
<title>{t('common.terms')} {t('common.appName')}</title>
<meta name="description" content="Terms of service for our online tools." />
<title>{t('pages.terms.title')} {t('common.appName')}</title>
<meta name="description" content={t('pages.terms.metaDescription')} />
<link rel="canonical" href={`${window.location.origin}/terms`} />
</Helmet>
<div className="prose mx-auto max-w-2xl dark:prose-invert">
<h1>{t('common.terms')}</h1>
<p><em>Last updated: {LAST_UPDATED}</em></p>
<h1>{t('pages.terms.title')}</h1>
<p><em>{t('pages.terms.lastUpdated', { date: LAST_UPDATED })}</em></p>
<h2>1. Acceptance of Terms</h2>
<h2>{t('pages.terms.acceptanceTitle')}</h2>
<p>{t('pages.terms.acceptanceText')}</p>
<h2>{t('pages.terms.serviceTitle')}</h2>
<p>{t('pages.terms.serviceText')}</p>
<h2>{t('pages.terms.useTitle')}</h2>
{Array.isArray(useItems) && (
<ul>
{useItems.map((item, idx) => <li key={idx}>{item}</li>)}
</ul>
)}
<h2>{t('pages.terms.fileTitle')}</h2>
{Array.isArray(fileItems) && (
<ul>
{fileItems.map((item, idx) => <li key={idx}>{item}</li>)}
</ul>
)}
<h2>{t('pages.terms.liabilityTitle')}</h2>
<p>{t('pages.terms.liabilityText')}</p>
<h2>{t('pages.terms.ipTitle')}</h2>
<p>{t('pages.terms.ipText')}</p>
<h2>{t('pages.terms.changesTitle')}</h2>
<p>{t('pages.terms.changesText')}</p>
<h2>{t('pages.terms.contactTitle')}</h2>
<p>
By accessing and using SaaS-PDF, you agree to be bound by these Terms of
Service. If you do not agree, please discontinue use immediately.
</p>
<h2>2. Service Description</h2>
<p>
SaaS-PDF provides free online tools for file conversion, compression,
and transformation. The service is provided &ldquo;as is&rdquo; without
warranties of any kind.
</p>
<h2>3. Acceptable Use</h2>
<ul>
<li>You may only upload files that you have the right to process.</li>
<li>You must not upload malicious, illegal, or copyrighted content without authorization.</li>
<li>Automated or excessive use of the service is prohibited.</li>
</ul>
<h2>4. File Handling</h2>
<ul>
<li>All uploaded and processed files are automatically deleted within {FILE_RETENTION_MINUTES} minutes.</li>
<li>We are not responsible for any data loss during processing.</li>
<li>You are responsible for maintaining your own file backups.</li>
</ul>
<h2>5. Limitation of Liability</h2>
<p>
SaaS-PDF shall not be liable for any direct, indirect, incidental, or
consequential damages resulting from the use or inability to use the
service.
</p>
<h2>6. Changes to Terms</h2>
<p>
We reserve the right to modify these terms at any time. Continued use of
the service after changes constitutes acceptance of the updated terms.
</p>
<h2>7. Contact</h2>
<p>
Questions about these terms? Contact us at{' '}
<a href="mailto:support@example.com">support@example.com</a>.
{t('pages.terms.contactText')}{' '}
<a href={`mailto:${CONTACT_EMAIL}`}>{CONTACT_EMAIL}</a>.
</p>
</div>
</>