mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
feat: initial webapp structure from notion2site
This commit is contained in:
35
components/ErrorPage.tsx
Normal file
35
components/ErrorPage.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import React from 'react'
|
||||
import Head from 'next/head'
|
||||
import { defaultSiteFavicon } from 'lib/config'
|
||||
import { PageHead } from './PageHead'
|
||||
|
||||
import styles from './styles.module.css'
|
||||
|
||||
export const ErrorPage: React.FC<{ statusCode: number }> = ({ statusCode }) => {
|
||||
const title = 'Error'
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageHead />
|
||||
|
||||
<Head>
|
||||
<link rel='shortcut icon' href={defaultSiteFavicon} />
|
||||
|
||||
<meta property='og:site_name' content={title} />
|
||||
<meta property='og:title' content={title} />
|
||||
|
||||
<title>{title}</title>
|
||||
</Head>
|
||||
|
||||
<div className={styles.container}>
|
||||
<main className={styles.main}>
|
||||
<h1>Error Loading Page</h1>
|
||||
|
||||
{statusCode && <p>Error code: {statusCode}</p>}
|
||||
|
||||
<img src='/error.png' alt='Error' className={styles.errorImage} />
|
||||
</main>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user