Add templates/404.html

This commit is contained in:
Blackwhitebear8 2025-08-14 12:57:58 +02:00
parent a10b66f0de
commit 44a9599ab0

121
templates/404.html Normal file
View file

@ -0,0 +1,121 @@
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/static/img/favicon.png">
<script src="/static/js/bootstrap.bundle.min.js"></script>
<script src="/static/js/vis-network.min.js"></script>
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<title>AS215085 Looking Glass 404</title>
<style>
body { background-color: #f8f9fa; }
.card { margin-bottom: 1.5rem; }
.output-console {
background-color: #212529; color: #f8f9fa; font-family: 'Courier New', Courier, monospace;
padding: 1rem; border-radius: 0.25rem; min-height: 400px;
white-space: pre-wrap; word-wrap: break-word; overflow-x: auto;
}
#mynetwork {
width: 100%; height: 600px; border: 1px solid #dee2e6; border-radius: .25rem;
}
.copy-btn { cursor: pointer; }
.speedtest-links a { margin-right: 10px; margin-bottom: 10px; }
.header-content {
position: relative;
z-index: 2;
}
header {
position: relative;
background: url('/static/img/background.webp') no-repeat center center;
background-size: cover;
color: white;
padding: 40px 20px;
text-align: center;
}
header::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}
header h1, header p {
position: relative;
z-index: 2;
}
header h1 {
margin: 0;
font-size: 2.5em;
}
footer {
background-color: #2D2E43;
color: white;
text-align: center;
padding: 10px 0;
margin-top: 20px;
}
#form-error {
min-height: 1.5rem; /* Reserve space to prevent layout shift */
}
/* Styles for BGP raw output highlighting */
.asn-highlight { color: #5DADE2; }
.asn215085-highlight { color: #F9E79F; font-weight: bold; }
.best-line { color: #58D68D; font-weight: bold; }
/* --- Custom Styling for Buttons and Dropdowns --- */
.btn-custom {
background-color: #07AAF9;
border-color: #07AAF9;
color: white;
}
.btn-custom:hover {
background-color: #0698e0; /* Slightly darker blue for hover */
border-color: #0698e0;
color: white;
}
</style>
</head>
<body>
<header>
<div class="header-content">
<a href="/"> <img src="/static/img/as215085-logo.png" alt="AS215085 Logo" style="height: 120px; opacity: 1;!important"> </a>
<h2><b>AS215085 Looking Glass</b></h2>
<p><b>Proudly delivering the backbone for PixelHosting's services</b></p>
</div>
</header>
<nav class="navbar navbar-expand-lg navbar-light py-1" style="background-color: #07AAF9;">
<div class="container-fluid d-flex justify-content-center">
<div class="d-flex align-items-center">
<label for="main-location-selector" class="form-label mb-0 me-2 text-white"><b>Locatie:</b></label>
<select class="form-select form-select-sm w-auto" id="main-location-selector"></select>
</div>
</div>
</nav>
<div class="container my-5">
<h2>404 Not found</h2>
<center><img src="/static/img/404.gif" alt="404 GIF" width="60%">
<h3>Ooops! sorry this page was not found</h3>
<br>
<a href="https://lg.as215085.net" style="text-decoration: none;">
<button style="background-color: #07AAF9; color: white; border: none; border-radius: 25px; padding: 15px 30px; font-size: 18px;">
Go Home
</button>
</a></center>
</div>
</div>
<footer>
<p>&copy; 2020 - <span id="year"></span> AS215085 (PixelHosting). All rights reserved.</p>
<script> document.getElementById("year").textContent = new Date().getFullYear(); </script>
</footer>
<script src="/static/js/materialize.min.js"></script>
<script src="/static/js/looking_glass.js"></script>
</body>
</html>