mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
100 lines
2.6 KiB
HTML
100 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Error - DarkFi Block Explorer</title>
|
|
<link rel="stylesheet" href="/static/layout.css">
|
|
</head>
|
|
<body>
|
|
<header class="header">
|
|
<div class="container flex justify-between items-center">
|
|
<div class="logo">DarkFi {{ network }} Blocks</div>
|
|
<nav class="nav">
|
|
<a href="/">Explorer</a>
|
|
<a href="/contracts">Contracts</a>
|
|
<a href="/stats">Stats</a>
|
|
<a href="https://dark.fi/book/">Docs</a>
|
|
<a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container section">
|
|
<div class="error-page">
|
|
<div class="error-content">
|
|
<h1 class="error-title">{{ error_code|default('Error') }}</h1>
|
|
<p class="error-message">{{ error|default('An unexpected error occurred') }}</p>
|
|
|
|
{% if error_code == '404' or error_code == 404 %}
|
|
<div class="error-image">
|
|
<img src="/static/darkfi25.jpg">
|
|
<p class="error-image-caption">Is this what you're looking for?</p>
|
|
</div>
|
|
{% elif error_code == '500' or error_code == 500 %}
|
|
<div class="error-image">
|
|
<img src="/static/darkfi05.jpg">
|
|
<p class="error-image-caption">Reality fractured beyond repair!</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="error-actions">
|
|
<a href="/" class="btn">Return to Home</a>
|
|
<a href="javascript:history.back()" class="btn btn-outline">Go Back</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<a href="https://dark.fi">Let there be Dark</a> · Code licensed under AGPL-3
|
|
</div>
|
|
</footer>
|
|
|
|
<style>
|
|
.error-page {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 50vh;
|
|
text-align: center;
|
|
}
|
|
.error-content {
|
|
max-width: 500px;
|
|
}
|
|
.error-title {
|
|
font-size: 4rem;
|
|
color: var(--color-accent);
|
|
margin-bottom: 1rem;
|
|
border-left: none;
|
|
padding: 0;
|
|
}
|
|
.error-message {
|
|
font-size: 1.6rem;
|
|
color: var(--color-muted);
|
|
margin-bottom: 2rem;
|
|
}
|
|
.error-image {
|
|
margin-bottom: 2rem;
|
|
}
|
|
.error-image img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
}
|
|
.error-image-caption {
|
|
margin-top: 1rem;
|
|
font-size: 1.4rem;
|
|
color: var(--color-muted);
|
|
font-style: italic;
|
|
}
|
|
.error-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
}
|
|
</style>
|
|
</body>
|
|
</html>
|