Can you use this image on the 404 page?
This commit is contained in:
parent
a75683c2bd
commit
1f3f609269
2 changed files with 32 additions and 4 deletions
|
@ -1,4 +0,0 @@
|
|||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://cheatingchelsea.com/sitemap.xml
|
32
src/app/not-found.tsx
Normal file
32
src/app/not-found.tsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
import Link from 'next/link';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import Image from 'next/image';
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center min-h-screen bg-background text-foreground">
|
||||
<main className="text-center p-8 max-w-2xl mx-auto">
|
||||
<div className="bg-black p-4 inline-block rounded-lg border-2 border-gray-700 shadow-2xl">
|
||||
<Image
|
||||
src="https://placehold.co/750x600.png"
|
||||
alt="A calico cat's tail is sticking out from under a pile of papers."
|
||||
width={750}
|
||||
height={600}
|
||||
className="object-cover"
|
||||
data-ai-hint="cat hiding"
|
||||
/>
|
||||
<div className="text-white pt-4 pb-2">
|
||||
<h1 className="text-6xl font-bold tracking-wider">404</h1>
|
||||
<p className="text-2xl mt-2">Not Found</p>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-muted-foreground mt-8 mb-8 text-xl">
|
||||
Oops! It looks like the page you're looking for has gone into hiding.
|
||||
</p>
|
||||
<Button asChild size="lg">
|
||||
<Link href="/">Go Back to Home</Link>
|
||||
</Button>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue