43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import Image from 'next/image'
|
|
import { Trans } from 'next-i18next'
|
|
|
|
const FourOhFour: React.FC<{ errorMsg: string }> = ({ errorMsg }) => {
|
|
return (
|
|
<div className="my-12">
|
|
<div className="w-1/3 mx-auto">
|
|
<Image src="/images/fabulous-rip-2.png" alt="404" width={912} height={912} priority />
|
|
</div>
|
|
<div className="mt-6 text-gray-500 max-w-xl mx-auto">
|
|
<div className="text-xl font-bold mb-8">
|
|
<Trans>
|
|
{/* eslint-disable-next-line react/no-unescaped-entities */}
|
|
Oops, that's a <span className="underline decoration-wavy decoration-red-500">four-oh-four</span>.
|
|
</Trans>
|
|
</div>
|
|
<div className="font-mono border border-gray-400/20 rounded p-2 mb-4 text-xs bg-gray-50 dark:bg-gray-800">
|
|
{errorMsg}
|
|
</div>
|
|
<div className="text-sm">
|
|
<Trans>
|
|
Press{' '}
|
|
<kbd className="border-opacity-20 font-mono text-xs p-1 bg-gray-100 dark:bg-gray-800 border rounded">
|
|
F12
|
|
</kbd>{' '}
|
|
and open devtools for more details, or seek help at{' '}
|
|
<a
|
|
className="text-blue-600 hover:text-blue-700 hover:underline"
|
|
href="https://github.com/spencerwooo/onedrive-vercel-index/discussions"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
onedrive-vercel-index discussions
|
|
</a>
|
|
.
|
|
</Trans>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default FourOhFour
|