diff --git a/src/app/changelog/page.tsx b/src/app/changelog/page.tsx index fef955d..27f67c8 100644 --- a/src/app/changelog/page.tsx +++ b/src/app/changelog/page.tsx @@ -5,15 +5,10 @@ import Link from "next/link"; import { Button } from "@/components/ui/button"; import { ArrowLeft } from "lucide-react"; import { useTranslation } from "@/context/i18n-context"; -import { useEffect } from "react"; export default function ChangelogPage() { const { t } = useTranslation(); - useEffect(() => { - document.title = t('changelogPage.title'); - }, [t]); - return (
diff --git a/src/app/imprint/page.tsx b/src/app/imprint/page.tsx index ec4737d..44b4da3 100644 --- a/src/app/imprint/page.tsx +++ b/src/app/imprint/page.tsx @@ -5,15 +5,10 @@ import { Button } from "@/components/ui/button"; import { ArrowLeft } from "lucide-react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { useTranslation } from "@/context/i18n-context"; -import { useEffect } from "react"; export default function ImprintPage() { const { t } = useTranslation(); - useEffect(() => { - document.title = t('imprintPage.title'); - }, [t]); - return (
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2cbb3c9..4a11061 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -17,6 +17,7 @@ const geistMono = Geist_Mono({ }); export const metadata: Metadata = { + title: "Image Web Exporter", description: "Upload a picture, then export it in a different resolution and format.", }; diff --git a/src/app/privacy/page.tsx b/src/app/privacy/page.tsx index 595b3de..7018176 100644 --- a/src/app/privacy/page.tsx +++ b/src/app/privacy/page.tsx @@ -5,15 +5,10 @@ import { Button } from "@/components/ui/button"; import { ArrowLeft } from "lucide-react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { useTranslation } from "@/context/i18n-context"; -import { useEffect } from "react"; export default function PrivacyPage() { const { t } = useTranslation(); - useEffect(() => { - document.title = t('privacyPage.title'); - }, [t]); - return (
diff --git a/src/components/home-page.tsx b/src/components/home-page.tsx index 63e97ea..0985d2e 100644 --- a/src/components/home-page.tsx +++ b/src/components/home-page.tsx @@ -2,15 +2,10 @@ import { ImageConverter } from "@/components/image-converter"; import { useTranslation } from "@/context/i18n-context"; -import { useEffect } from "react"; export function HomePage() { const { t } = useTranslation(); - useEffect(() => { - document.title = t('appTitle'); - }, [t]); - return (