forked from rajun/ar-test
refactor: rebuild not found page on the status screen
This commit is contained in:
parent
28f781e48c
commit
54834f2beb
@ -1,33 +1,20 @@
|
|||||||
import { Link } from 'react-router';
|
import { Link } from 'react-router';
|
||||||
import { Button } from '~/components/ui/button';
|
|
||||||
import { Card } from '~/components/ui/card';
|
|
||||||
import { Badge } from '~/components/ui/badge';
|
|
||||||
import { FileQuestion } from 'lucide-react';
|
import { FileQuestion } from 'lucide-react';
|
||||||
|
import { Button } from '~/components/ui/button';
|
||||||
|
import { StatusScreen } from '~/components/ui/status-screen';
|
||||||
|
import { ROUTES } from '~/data/routes';
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
return (
|
return (
|
||||||
<div className="relative min-h-screen bg-[#0D0D0D] flex items-center justify-center p-6 overflow-hidden select-none font-sans text-white">
|
<StatusScreen
|
||||||
<div className="absolute top-[30%] left-[30%] w-[40%] h-[40%] rounded-full bg-orange-500/5 blur-[130px] pointer-events-none" />
|
icon={FileQuestion}
|
||||||
|
title='Page not found'
|
||||||
<Card className="p-6 text-center border-neutral-850 shadow-2xl relative z-10 space-y-4 max-w-xs">
|
message='The page you are looking for does not exist or has been moved.'
|
||||||
<div className="inline-flex w-12 h-12 bg-neutral-900 border border-neutral-850 rounded-xl items-center justify-center shadow-md mb-2">
|
action={
|
||||||
<FileQuestion className="text-orange-500" size={22} />
|
<Button asChild>
|
||||||
</div>
|
<Link to={ROUTES.home}>Back to home</Link>
|
||||||
<div className="space-y-1">
|
|
||||||
<Badge variant="orange">404 Error</Badge>
|
|
||||||
<h1 className="text-lg font-bold text-white uppercase tracking-tight mt-2">Page Not Found</h1>
|
|
||||||
</div>
|
|
||||||
<p className="text-neutral-500 text-[11px] leading-relaxed max-w-[240px] mx-auto">
|
|
||||||
The page you are looking for does not exist or has been moved.
|
|
||||||
</p>
|
|
||||||
<div className="pt-3">
|
|
||||||
<Link to="/" className="block w-full">
|
|
||||||
<Button size="sm" className="w-full font-bold uppercase tracking-wider text-[10px] py-4 h-10">
|
|
||||||
Return to Dashboard
|
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
}
|
||||||
</div>
|
/>
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user