blob: 05173cada41de1530acc0f53bcdeae44c55f9d94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
import { useSearchParams } from "react-router-dom";
import TitleBar from "../components/TitleBar";
import { useTranslation } from "react-i18next";
export default function NotFound() {
const { t } = useTranslation();
const [searchParams] = useSearchParams();
const isMoe = searchParams.has("moe");
return (
<>
<TitleBar />
<div
className={`${isMoe ? "bg-pink-100 text-pink-900 font-[Zen_Maru_Gothic]" : "bg-gray-950 text-white"} min-h-screen py-6 flex items-center justify-center`}
>
<div className="max-w-[600px] mx-auto px-4 text-center">
<div
className={`${isMoe ? "bg-pink-200 text-pink-900" : "bg-gray-800 text-white"} rounded-lg p-8 shadow-lg`}
>
<h1 className="text-6xl font-bold mb-4">404</h1>
<h2 className="text-2xl font-semibold mb-4">{t('notFound.title')}</h2>
<div className="mb-6">
<img
src="/liris.webp"
className="w-32 mx-auto mb-4 object-contain rounded-2xl opacity-50"
alt="Not found"
/>
</div>
<p className="text-lg mb-6">
{t('notFound.description')}
</p>
<div className="space-y-3">
<a
href="/"
className={`inline-block px-6 py-3 rounded-lg font-semibold transition-colors ${
isMoe
? "bg-pink-500 text-white hover:bg-pink-600"
: "bg-purple-600 text-white hover:bg-purple-700"
}`}
>
{t('return_home')}
</a>
<div className="mt-4">
<a
href="/games"
className={`${
isMoe ? "text-pink-600 hover:text-pink-800" : "text-blue-400 hover:text-blue-300"
} underline`}
>
{t('notFound.view_all_games')}
</a>
</div>
</div>
</div>
</div>
</div>
</>
);
}
|