Bin doof
This commit is contained in:
29
app/[locale]/layout.tsx
Normal file
29
app/[locale]/layout.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
28
app/[locale]/not-found.tsx
Normal file
28
app/[locale]/not-found.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user