Added 404 page

This commit is contained in:
CommanderRedYT
2020-11-10 17:02:20 +01:00
parent 5d2d0aff00
commit d0b479f70e
3 changed files with 51 additions and 1 deletions

View File

@@ -12,4 +12,6 @@ RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteRule ^(.*)$ $1.php [NC,L]
ErrorDocument 404 ./404

21
404.css Normal file
View File

@@ -0,0 +1,21 @@
div.container {
height: 10em;
position: relative;
}
div.container p {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
color: white;
font-size: 5vw;
font-family: "Inconsolata", monospace;
text-align: center;
width: auto;
}
body {
background-color: black;
}

27
404.html Normal file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Error 404 - Not found</title>
<meta name="description" content="404 Error Page" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./404.css" />
<link
href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<a href="./">
<div class="container">
<p style="padding-top: calc(40%)">Error 404 - Page not found</p>
<p style="padding-top: calc(50%)">Click here to go to main page</p>
</div>
</a>
</body>
</html>