diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 6bba1b1..0e076ba 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,13 +1,17 @@ +import { PageProps } from 'gatsby'; import React from 'react'; import Navbar from "../components/navbar"; -export default ({ location }) => { - console.log(location); - return <> - +export default ({ location }: PageProps): JSX.Element => { + const messages = [

In your attempt to search for {location.pathname}, you seem to have gotten lost instead. Fret not, for there is always a path home. -

+

, +

Not all who wander are lost, but you seem to be. Go home?

+ ]; + return <> + + {messages[Math.floor(Math.random() * messages.length)]} ; -}; \ No newline at end of file +};