diff --git a/pages/404.js b/pages/404.js new file mode 100644 index 0000000..31c734e --- /dev/null +++ b/pages/404.js @@ -0,0 +1,63 @@ +import Link from 'next/link'; +import Head from 'next/head'; +import { useState, useEffect } from 'react'; +import { SITE_CONFIG } from '../config'; + +export default function Custom404() { + const [mounted, setMounted] = useState(false); + + useEffect(() => { + setMounted(true); + }, []); + + // Server-side and Initial Client-side "Safe" Shell + if (!mounted) { + return ( +
+
404
+
+ ); + } + + return ( +
+ + {`404 // ${SITE_CONFIG.title}`} + + +
+

404

+ +
+

Paste not found

+

+ This paste may have expired, been burned, or never existed in the first place. +

+
+ +
+ + + +
+
+ +
+ {`${SITE_CONFIG.title} // Secure Protocol`} +
+
+ ); +}