Skip to content
Snippets Groups Projects
Commit 9cf350bc authored by ALMAZROUEI Shamma (2021) WKIS203's avatar ALMAZROUEI Shamma (2021) WKIS203
Browse files

Build error page

parent 3067091f
Branches
No related tags found
No related merge requests found
...@@ -15,11 +15,13 @@ import Login from './pages/Login'; ...@@ -15,11 +15,13 @@ import Login from './pages/Login';
import Register from './pages/Register'; import Register from './pages/Register';
import Menu from './pages/Menu'; import Menu from './pages/Menu';
import MenuItem from './pages/MenuItem'; import MenuItem from './pages/MenuItem';
import ErrorPage from './pages/Error';
const router = createBrowserRouter([ const router = createBrowserRouter([
{ {
path: '/', path: '/',
element: <App />, element: <App />,
errorElement: <ErrorPage />,
children: [ children: [
{ {
path: '/', path: '/',
......
import { Button } from '@/components/ui/button';
import { Link } from 'react-router-dom';
export default function ErrorPage() {
return (
<div className='flex items-center min-h-screen px-4 py-12 sm:px-6 md:px-8 lg:px-12 xl:px-16'>
<div className='w-full space-y-6 text-center'>
<div className='space-y-3'>
<h1 className='text-4xl font-bold sm:text-5xl animate-bounce'>404</h1>
<p className='text-gray-500'>
Looks like you've ventured into the unknown digital realm.
</p>
</div>
<Button asChild className='bg-pink-500 hover:bg-pink-600 text-white'>
<Link to='/'>Back to Home</Link>
</Button>
</div>
</div>
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment