diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-20 16:44:17 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-20 16:44:17 +0500 |
| commit | 4add65a71cbf5993ddc298511f46e701d2de091f (patch) | |
| tree | cb22ef7e84df8d5d11b46accad7271ad267fe679 /public/404.php | |
| parent | 5fc857449011f76ed7677aad40576790310d23e1 (diff) | |
feat: 404 page
Diffstat (limited to 'public/404.php')
| -rw-r--r-- | public/404.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/public/404.php b/public/404.php new file mode 100644 index 0000000..5646c46 --- /dev/null +++ b/public/404.php @@ -0,0 +1,27 @@ +<?php +http_response_code(404); +?> +<html> + +<head> + <title>Not found - alright.party</title> + <link rel="stylesheet" href="/static/style.css"> +</head> + +<body> + <div class="container"> + <div class="wrapper center"> + <section class="box center big-gap" style="display: flex;flex-direction:column; padding: 16px;"> + <h1 style="color: red;">404 Not Found</h1> + <img src="/static/img/404/<?php + $files = scandir("static/img/404"); + $count = count($files) - 2; + echo random_int(1, $count); + ?>.webp"> + <a href=" /">Back to home</a> + </section> + </div> + </div> +</body> + +</html>
\ No newline at end of file |
