This commit is contained in:
vincanger 2024-10-14 11:18:49 +02:00
commit 7d8f32dc59
2 changed files with 24 additions and 0 deletions

View File

@ -309,6 +309,11 @@ page AdminUIButtonsPage {
authRequired: true,
component: import AdminUI from "@src/admin/elements/ui-elements/ButtonsPage"
}
route NotFoundRoute { path: "*", to: NotFoundPage }
page NotFoundPage {
component: import { NotFoundPage } from "@src/client/components/NotFoundPage"
}
//#endregion
//#region Contact Form Messages

View File

@ -0,0 +1,19 @@
import React from 'react';
import { Link } from 'react-router-dom';
export function NotFoundPage() {
return (
<div className='flex items-center justify-center min-h-screen'>
<div className='text-center'>
<h1 className='text-6xl font-bold mb-4'>404</h1>
<p className='text-lg text-bodydark mb-8'>Oops! The page you're looking for doesn't exist.</p>
<Link
to='/'
className='inline-block px-8 py-3 text-white bg-primary rounded-lg hover:bg-secondary transition duration-300'
>
Go Back Home
</Link>
</div>
</div>
);
}