mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
42 lines
1.7 KiB
TypeScript
42 lines
1.7 KiB
TypeScript
import { siteMetadata } from '@/lib/metadata';
|
|
import { ButtonDataTestId } from '@/testing/data-test-ids';
|
|
import { HomeIcon } from '@session/ui/icons/HomeIcon';
|
|
import { Button } from '@session/ui/ui/button';
|
|
import { useTranslations } from 'next-intl';
|
|
import Link from 'next/link';
|
|
|
|
export async function generateMetadata() {
|
|
return siteMetadata({
|
|
title: 'Page not found',
|
|
description: "Sorry! We couldn't find the page you were looking for.",
|
|
});
|
|
}
|
|
|
|
export default function NotFound() {
|
|
const dictionary = useTranslations('notFound');
|
|
return (
|
|
<div className="-mt-header-displacement flex h-screen w-full items-center justify-center p-32 align-middle">
|
|
<div className="flex flex-col items-center justify-center text-center align-middle md:flex-row md:gap-10 md:text-left lg:h-[140px]">
|
|
<span className="font-monument-extended text-9xl font-bold leading-none lg:mt-[-30px] lg:max-h-[140px] lg:text-[192px]">
|
|
404
|
|
</span>
|
|
<div className="bg-text-primary m-0 hidden h-full w-px p-0 lg:block" />
|
|
<div className="flex h-full flex-col justify-between gap-4 md:gap-0">
|
|
<p className="max-w-[380px] text-xl md:text-2xl">{dictionary('description')}</p>
|
|
<Link href="/" prefetch={false}>
|
|
<Button
|
|
size="lg"
|
|
variant="outline"
|
|
className="group"
|
|
data-testid={ButtonDataTestId.Not_Found_Return_Home}
|
|
>
|
|
<HomeIcon className="fill-session-green group-hover:fill-session-black mr-2 h-6 w-6" />{' '}
|
|
{dictionary('homeButton')}
|
|
</Button>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|