404-route

This commit is contained in:
Untone 2024-07-05 17:22:49 +03:00
parent 7c2d97053b
commit 7a499ae2e5
4 changed files with 17 additions and 0 deletions

17
src/routes/*404.tsx Normal file
View File

@ -0,0 +1,17 @@
import { HttpStatusCode } from "@solidjs/start"
import { FourOuFourView } from '../components/Views/FourOuFour'
import { PageLayout } from '../components/_shared/PageLayout'
import { useLocalize } from '../context/localize'
export const FourOuFourPage = () => {
const { t } = useLocalize()
return (
<PageLayout isHeaderFixed={false} hideFooter={true} title={t('Nothing is here')}>
<FourOuFourView />
<HttpStatusCode code={404} />
</PageLayout>
)
}
export const Page = FourOuFourPage