# Error Page 2

> A split 404 page with the brand mark, an illustration and a single home action

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

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

## Install

```bash
npx shadcn@latest add https://shadcnstore.com/r/error-page-2.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-2/page.tsx`

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

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

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

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

export function ErrorPage2() {
  return (
    <div className='grid min-h-screen w-full xl:grid-cols-2'>
      <div className='flex flex-col p-16'>
        {/* Logo */}
        <div className='mb-8 flex items-center justify-center gap-2 xl:justify-start'>
          <div className='bg-primary flex size-8 items-center justify-center rounded-lg'>
            <svg className='text-primary-foreground size-5' fill='none' viewBox='0 0 24 24' stroke='currentColor'>
              <path strokeLinecap='round' strokeLinejoin='round' strokeWidth={2} d='M13 10V3L4 14h7v7l9-11h-7z' />
            </svg>
          </div>
          <span className='text-xl font-bold'>ShadcnStore</span>
        </div>

        <div className='mt-8 flex flex-1 flex-col items-center justify-center text-center xl:items-start xl:text-start'>
          <div className='mb-3 flex items-center gap-3'>
            <span className='text-sm font-semibold'>404</span>
          </div>
          <h1 className='mb-2 text-4xl font-bold'>Page Not Found</h1>
          <p>Oops! The page you're trying to access doesn't exist.</p>
          <Button className='h-9 px-4 py-2 mt-8 cursor-pointer'>
            <ArrowLeft />
            <span>Go Back Home</span>
          </Button>
        </div>
      </div>
      <div className='relative hidden xl:block'>
        <img
          src='https://ui.shadcn.com/placeholder.svg'
          alt='placeholder image'
          className='absolute inset-0 h-full w-full object-cover dark:brightness-[0.95] dark:invert'
        />
      </div>
    </div>
  )
}

export default ErrorPage2
```
