# Error Page 1

> A centred 404 page with an illustration, a home link and a contact action

A shadcn/ui block from the [@shadcnstore](https://www.shadcnstore.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnstore/error-page-1).

- Page, with a live preview: https://shadcn.exchange/r/shadcnstore/error-page-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnstore/error-page-1-light-5ebd44b5033281dd.png
- Registry item: https://shadcnstore.com/r/error-page-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnstore.com/r/error-page-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `button`

## Files

### `storage/app/registry-sources/application/error-pages/error-page-1/page.tsx`

```tsx
import { ErrorPage1 } from "@/components/blocks/application/error-pages/error-page-1/components/error-page-1"

export default function Page() {
  return (
    <div className="flex min-h-svh w-full items-center justify-center">
      <div className="w-full">
        <ErrorPage1 />
      </div>
    </div>
  )
}
```

### `storage/app/registry-sources/application/error-pages/error-page-1/error-page-1.tsx`

```tsx
import { Button } from '@/components/ui/button'
import { ArrowRight } from 'lucide-react'

export function ErrorPage1() {
  return (
    <div className='mx-auto flex min-h-dvh max-w-7xl flex-col items-center justify-center gap-8 p-8 md:gap-12 md:p-16'>
      <img
        src='https://ui.shadcn.com/placeholder.svg'
        alt='placeholder image'
        className='aspect-video w-full max-w-7xl rounded-xl object-cover dark:brightness-[0.95] dark:invert'
      />
      <div className='text-center'>
        <h1 className='mb-2 text-3xl font-bold'>Page Not Found</h1>
        <p>Oops! The page you're trying to access doesn't exist.</p>
        <div className='mt-6 flex items-center justify-center gap-4 md:mt-8'>
          <Button className='h-9 px-4 py-2 cursor-pointer'>Go Back Home</Button>
          <Button variant='ghost' className='h-9 px-4 py-2 cursor-pointer'>
            <span>Contact Us</span>
            <ArrowRight />
          </Button>
        </div>
      </div>
    </div>
  )
}

export default ErrorPage1
```
