This commit is contained in:
BuildTools
2025-12-20 00:10:48 +01:00
parent f765e9de71
commit 9a269f49e9
2 changed files with 1 additions and 1 deletions

29
app/[locale]/layout.tsx Normal file
View File

@@ -0,0 +1,29 @@
import type { Metadata } from 'next';
import { NextIntlClientProvider } from 'next-intl';
import '@/app/globals.css';
export const metadata: Metadata = {
title: 'GSH Digital Services',
description: ''
};
type Props = {
params: {
locale: string;
},
children: React.ReactNode;
};
export default async function RootLayout({ params, children }: Props) {
const { locale } = await params;
return (
<html lang={locale}>
<body>
<NextIntlClientProvider>
{children}
</NextIntlClientProvider>
</body>
</html>
);
}

View File

@@ -0,0 +1,28 @@
import GradientText from '@/components/GradientText';
import { getTranslations } from 'next-intl/server';
import { Link } from '@/i18n/navigation';
export default async function Page() {
const t = await getTranslations('notFound');
return (
<div className="flex min-h-screen items-center justify-center">
<main className="flex min-h-screen w-full flex-col items-center justify-center gap-4">
<GradientText
className="font-bold text-lg text-center"
colors={[ '#F52491', '#692896' ]}
animationSpeed={3}
>
{t('title')}
</GradientText>
<p className="text-center">{t('text')}</p>
<Link
className="text-secondary underline"
href="/"
>
{t('back')}
</Link>
</main>
</div>
);
}