storj/satellite/console/consoleweb/error_fallback.html
Egon Elbre daf5264f48 satellite/console/consoleweb: create a fallback error.html
Currently when error.html is not available, we should still start the
server and fallback to some simpler implementation. This template does
not require any external assets.

Change-Id: I76b660db988987e1e9ebadd966f60e149f26ff24
2023-04-18 14:36:51 +00:00

45 lines
1.1 KiB
HTML

<!--Copyright (C) 2023 Storj Labs, Inc.-->
<!--See LICENSE for copying information.-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ .StatusCode }} | Storj</title>
<style>
.link { text-decoration: none; color: #000; }
.title { font-size: 4em; }
.button {
display: inline-block;
margin-top: 32px;
padding: 16px 37.5px;
border-radius: 26px;
background-color: #0149ff;
color: white;
line-height: 20px;
text-decoration: none;
}
.button:hover {
background-color: #0059d0;
}
</style>
</head>
<body>
<div class="error-area">
<div class="container">
<a class="link" href="/"><h1 class="title">{{ .StatusCode }} | Storj</h1></a>
<h2 class="subtitle">
{{- if eq .StatusCode 400 -}}
Bad request.
{{- else if eq .StatusCode 500 -}}
Internal server error.
{{- else -}}
An error occurred.
{{- end -}}
</h2>
<a href="/" class="button">Go to homepage</a>
</div>
</div>
</body>
</html>