diff options
| author | Andrew Lee <alee14498@gmail.com> | 2020-06-17 15:35:04 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2020-06-17 15:35:04 -0400 |
| commit | a2da20ce52b86552771f1dfa3cb46d07255cc288 (patch) | |
| tree | 96247842c3160c3a498fab5fd40a98fa38e6b0b3 /pages/404.js | |
| parent | cbfaa8d3d8b5fe2190d6ebeb8b8e59c975069855 (diff) | |
| download | alp-website-a2da20ce52b86552771f1dfa3cb46d07255cc288.tar.gz alp-website-a2da20ce52b86552771f1dfa3cb46d07255cc288.tar.bz2 alp-website-a2da20ce52b86552771f1dfa3cb46d07255cc288.zip | |
New ToS and Logo
Diffstat (limited to 'pages/404.js')
| -rw-r--r-- | pages/404.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pages/404.js b/pages/404.js new file mode 100644 index 0000000..f283a5d --- /dev/null +++ b/pages/404.js @@ -0,0 +1,43 @@ +/* + Alee Productions Website: Website for Alee Productions + Copyright (C) 2020 Alee + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + +*/ + +import Layout from "../components/Layout"; + +const Custom404 = () => ( + <Layout> + <div class="text-center mt-3"> + <h1>404 - Not Found</h1> + <h2 id="404message"></h2> + <h3>Return to <a href="/" className="green-text">homepage</a>?</h3> + </div> + </Layout> +); + +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(); +export default Custom404 |
