[dyad] Adding multi-language support - wrote 17 file(s), renamed 5 file(s), deleted 1 file(s), added next-international package(s)
This commit is contained in:
54
src/app/[locale]/privacy/page.tsx
Normal file
54
src/app/[locale]/privacy/page.tsx
Normal file
@@ -0,0 +1,54 @@
|
||||
import Link from "next/link";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { getI18n } from "@/lib/i18n/server";
|
||||
|
||||
export default async function PrivacyPage() {
|
||||
const t = await getI18n();
|
||||
return (
|
||||
<div className="relative flex flex-col items-center min-h-screen p-4 sm:p-8 bg-gray-50 dark:bg-background">
|
||||
<div className="w-full max-w-4xl mx-auto">
|
||||
<Button asChild variant="ghost" className="mb-4 -ml-4">
|
||||
<Link href="/">
|
||||
<ArrowLeft className="mr-2 h-4 w-4" />
|
||||
{t('privacy.back')}
|
||||
</Link>
|
||||
</Button>
|
||||
<main className="w-full">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="text-3xl font-bold">{t('privacy.title')}</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-6 text-muted-foreground">
|
||||
<div className="space-y-2">
|
||||
<h3 className="font-semibold text-foreground">{t('privacy.general.title')}</h3>
|
||||
<p>
|
||||
{t('privacy.general.text')}
|
||||
</p>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<h3 className="font-semibold text-foreground">{t('privacy.collection.title')}</h3>
|
||||
<p>
|
||||
{t('privacy.collection.text')}
|
||||
</p>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<h3 className="font-semibold text-foreground">{t('privacy.rights.title')}</h3>
|
||||
<p>
|
||||
{t('privacy.rights.text')}
|
||||
</p>
|
||||
</div>
|
||||
<div className="pt-4 border-t">
|
||||
<h3 className="font-semibold text-foreground">{t('privacy.disclaimer.title')}</h3>
|
||||
<p className="text-sm">
|
||||
{t('privacy.disclaimer.text')}
|
||||
</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user