feat: add 404 page

This commit is contained in:
iodomi
2026-06-22 16:12:13 +02:00
parent fe38b3db2d
commit d2783fc22f
5 changed files with 19 additions and 1 deletions

2
.htaccess Normal file
View File

@@ -0,0 +1,2 @@
RewriteEngine On
ErrorDocument 404 http://tylda.org/404/

16
404.php Normal file
View File

@@ -0,0 +1,16 @@
<?php include "header.php"; ?>
<i style="margin-bottom: 2rem;"><?php echo $slogan; ?></i>
<div id="top-bar">
<h1>> BŁĄD 404</h1>
<i>nieznaleziono</i>
</div>
<article id="content">
<p>Halo, co to za strona? Ona istnieje? Nie znaleźliśmy jej, co mam ci powiedzieć...</p>
<img src="/static/img/reaction.png" alt="Tak się teraz mogą czuć czytelnicy">
</article>
<?php include "footer.php"; ?>

BIN
static/img/reaction.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -26,7 +26,7 @@ error_reporting(E_ALL);
<li>Ostatni server load: <?=shell_exec("/usr/bin/top -n 1 | grep Load | cut -d' ' -f3,4,5");?></li>
<li>Wolny RAM: <?=shell_exec("/usr/bin/free -h | grep Mem | awk '{print \$NF}'");?>
</ul>
<img src="stats.png" style="max-width: 650px">
<img src="/static/img/stats.png" style="max-width: 650px">
</article>
<?php