From 76790fe685c61a12273e6af1b6949f7895fafc0d Mon Sep 17 00:00:00 2001
From: Astoria Floyd
Date: Sun, 8 May 2022 18:47:16 -0500
Subject: [PATCH] Revert "Remove cursor.php fully and new 404."
This reverts commit 7ce2c4030f68891a419c854be394f5c16ce6f11d.
---
.htaccess | 2 +-
404.php | 60 +++++++++++++++++++++++++---------------------
includes/start.php | 1 +
index.php | 1 +
scrollbar.php | 1 +
styles/404.css | 56 +++++++++++++++++++++++++++++++++++++++++++
6 files changed, 93 insertions(+), 28 deletions(-)
create mode 100644 styles/404.css
diff --git a/.htaccess b/.htaccess
index 8b3ee12..110c483 100644
--- a/.htaccess
+++ b/.htaccess
@@ -2,4 +2,4 @@ ErrorDocument 404 /404.php
php_value include_path "/var/www/future"
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ^(.*)/$ /$1 [L,R] # <- for test, for prod use [L,R=301]
+RewriteRule ^(.*)/$ /$1 [L,R] # <- for test, for prod use [L,R=301]
\ No newline at end of file
diff --git a/404.php b/404.php
index 7c26e20..1f104d5 100644
--- a/404.php
+++ b/404.php
@@ -1,30 +1,36 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 404
+
+
+
+
+
-
-
- Display Scrollbar on this Site
';
- }
- ?>
+
+
+
404 - Not Found
+
There is nothing here.
+
We appear to be lost.
+
+
-
diff --git a/includes/start.php b/includes/start.php
index d7c1b1e..904799d 100644
--- a/includes/start.php
+++ b/includes/start.php
@@ -8,6 +8,7 @@
echo '';
}
echo '';
+ echo '';
echo '';
if (isset($_GET['post']) && $_GET['post'] != 'archive') {
$ogtype = 'article';
diff --git a/index.php b/index.php
index 2d754bf..6c4a03d 100644
--- a/index.php
+++ b/index.php
@@ -6,6 +6,7 @@ require "includes/start-meta.php";
?>
+
diff --git a/scrollbar.php b/scrollbar.php
index 01abf2a..a3f6ca7 100644
--- a/scrollbar.php
+++ b/scrollbar.php
@@ -7,6 +7,7 @@ require $root."includes/start-meta.php";
?>
+
diff --git a/styles/404.css b/styles/404.css
new file mode 100644
index 0000000..5383cbf
--- /dev/null
+++ b/styles/404.css
@@ -0,0 +1,56 @@
+:root {
+ --fg-col: #FFFFFF;
+ --main-col: #94B1FF;
+ --grey-col: #CCCCCC;
+ --bg-col: #000000;
+}
+
+body {
+ background: var(--bg-col);
+}
+
+h1 {
+ border: unset;
+ text-align: unset;
+}
+
+p {
+ letter-spacing: 3px;
+ animation: lost 10s ease-in-out infinite;
+ animation-play-state: running;
+}
+
+.lostimg {
+ position: fixed;
+ bottom: 0;
+ left: 35%;
+ min-width: 350px;
+}
+
+.lostimglink {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+.lostimg img {
+ bottom: 0;
+ right: 0;
+}
+
+@keyframes lost {
+ 0% {
+ letter-spacing: 3px;
+ }
+ 50% {
+ letter-spacing: 12px;
+ }
+ 0% {
+ letter-spacing: 3px;
+ }
+}
+
+.notfound {
+ font-weight: bold;
+ color: var(--main-col);
+}