From 27403ffaef16d02c0442fff7a82059720a26b65d Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Mon, 11 Dec 2023 22:07:57 +0530 Subject: [PATCH] (feat): added custom 404 page not found error handleing page --- htdocs/assets/images/error_banner.svg | 1 + htdocs/assets/style.css | 67 +++++++++++++++++++++++++++ htdocs/error/404.php | 41 ++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 htdocs/assets/images/error_banner.svg create mode 100644 htdocs/error/404.php diff --git a/htdocs/assets/images/error_banner.svg b/htdocs/assets/images/error_banner.svg new file mode 100644 index 0000000..3c70ec0 --- /dev/null +++ b/htdocs/assets/images/error_banner.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/htdocs/assets/style.css b/htdocs/assets/style.css index e381f29..b4bb42f 100644 --- a/htdocs/assets/style.css +++ b/htdocs/assets/style.css @@ -761,6 +761,16 @@ video { margin-bottom: 0.30rem; } +.my-10 { + margin-top: 2.5rem; + margin-bottom: 2.5rem; +} + +.my-20 { + margin-top: 5rem; + margin-bottom: 5rem; +} + .mb-1 { margin-bottom: 0.25rem; } @@ -933,6 +943,22 @@ video { margin-top: 30vh; } +.mb-60 { + margin-bottom: 15rem; +} + +.mt-20 { + margin-top: 5rem; +} + +.mt-24 { + margin-top: 6rem; +} + +.mt-28 { + margin-top: 7rem; +} + .block { display: block; } @@ -1115,6 +1141,18 @@ video { width: 100vw; } +.w-\[500px\] { + width: 500px; +} + +.w-\[320px\] { + width: 320px; +} + +.w-\[350px\] { + width: 350px; +} + .origin-left { transform-origin: left; } @@ -1587,6 +1625,11 @@ video { line-height: 1rem; } +.text-9xl { + font-size: 8rem; + line-height: 1; +} + .font-\[300\] { font-weight: 300; } @@ -2079,6 +2122,18 @@ video { margin-top: 7rem; } + .lg\:mr-5 { + margin-right: 1.25rem; + } + + .lg\:ml-5 { + margin-left: 1.25rem; + } + + .lg\:mt-20 { + margin-top: 5rem; + } + .lg\:block { display: block; } @@ -2131,6 +2186,14 @@ video { width: auto; } + .lg\:max-w-\[50\%\] { + max-width: 50%; + } + + .lg\:max-w-\[40\%\] { + max-width: 40%; + } + .lg\:rotate-0 { --tw-rotate: 0deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -2180,6 +2243,10 @@ video { padding-bottom: 2.25rem; } + .lg\:text-start { + text-align: start; + } + .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; diff --git a/htdocs/error/404.php b/htdocs/error/404.php new file mode 100644 index 0000000..e4c0afd --- /dev/null +++ b/htdocs/error/404.php @@ -0,0 +1,41 @@ +load(); + +require 'core/connection.php'; +require 'core/host_config.php'; +require 'core/query_functions.php'; +?> + + + + + + + + Page Not Found - @neo_subhamoy + + + + + + +
+
+
+ error-icon +
+
+

404

+

Page Not Found!

+

The page you are looking for might have been removed had it's name changed or temporarily unavailable

+
+
+
+ + + + + + \ No newline at end of file