add custom 404 page

This commit is contained in:
Salam-vsem
2025-05-19 20:26:34 +03:00
parent e9a1f3f652
commit 9821d0395c
2 changed files with 16 additions and 2 deletions

13
src/pages/404.astro Normal file
View File

@@ -0,0 +1,13 @@
---
import { useTranslations } from '@/i18n/utils'
import BaseLayout from '@/layouts/BaseLayout.astro'
const { lang } = Astro.params
const t = useTranslations(lang)
---
<BaseLayout title="Страница не нейдена">
<div class="flex h-full w-full items-center justify-center">
<h1>{t('404.title')}</h1>
</div>
</BaseLayout>