summaryrefslogtreecommitdiff
path: root/public/404.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/404.php')
-rw-r--r--public/404.php27
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