mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
link accent color and 404 page
This commit is contained in:
@@ -3,14 +3,31 @@ import { FunctionComponent } from 'react'
|
||||
|
||||
const FourOhFour: FunctionComponent<{ errorMsg: string }> = ({ errorMsg }) => {
|
||||
return (
|
||||
<div className="my-20 text-center">
|
||||
<div className="my-20">
|
||||
<div className="md:w-1/3 w-1/2 mx-auto">
|
||||
<Image src={'/images/empty.png'} alt="404" width={912} height={912} />
|
||||
</div>
|
||||
<div className="mt-5 text-gray-500">
|
||||
Error: {errorMsg}.{' '}
|
||||
<kbd className="border-opacity-20 px-2 py-1 font-mono text-sm bg-gray-200 border rounded">F12</kbd> for more
|
||||
details.
|
||||
<div className="mt-6 text-gray-500 max-w-xl mx-auto">
|
||||
<div className="text-2xl font-bold mb-8">
|
||||
Oops, that's a <span className="underline decoration-wavy decoration-red-500">four-oh-four</span>.
|
||||
</div>
|
||||
<div className="font-mono border border-gray-400/20 rounded p-2 mb-4 text-sm bg-gray-50 dark:bg-gray-800">
|
||||
{errorMsg}
|
||||
</div>
|
||||
<div>
|
||||
Press{' '}
|
||||
<kbd className="border-opacity-20 font-mono text-sm 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>
|
||||
.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -136,11 +136,12 @@
|
||||
}
|
||||
|
||||
.markdown-body a {
|
||||
color: #0366d6;
|
||||
color: rgba(2, 132, 199);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.markdown-body a:hover {
|
||||
color: rgba(3, 105, 161);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user