diff options
Diffstat (limited to 'views/404.ejs')
| -rw-r--r-- | views/404.ejs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/views/404.ejs b/views/404.ejs index 43c308d..0e50577 100644 --- a/views/404.ejs +++ b/views/404.ejs @@ -4,13 +4,28 @@ <head> <% include ./includes/header %> </head> -<body> +<body class="dark"> <% include ./includes/navbar %> - <center> + <div class="animsition"> + <div class="text-center mt-3"> <h1>404 - Not Found</h1> - <h2>Oops, seems like that page isn't found!</h2> - <h3>Return to <a href="/">homepage</a>?</h3> - </center> + <h2 id="404message"></h2> + <h3>Return to <a href="/" class="green-text">homepage</a>?</h3> + </div> + <script> + function randomtext() { + let randomtxt = [ + 'Oops, seems like that page isn\'t found!', + 'You seem to be lost!', + 'Uh oh, that page isn\'t found in our servers!', + 'Seems like you landed on this page...' + ]; + return randomtxt[Math.floor((Math.random() * 4.00))]; + } + + document.getElementById("404message").innerHTML = randomtext(); + </script> + </div> <% include ./includes/scripts %> </body> </html>
\ No newline at end of file |
