-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server/web): error display pages
- Loading branch information
Showing
4 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>Spacebin</title> | ||
|
||
<meta property="og:title" content="Spacebin: Text sharing for the final frontier" /> | ||
<meta property="og:url" content="spaceb.in" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:description" | ||
content="A highly-reliable pastebin server, built in Go, that's capable of serving notes, code, or any other documents." /> | ||
<meta name="description" | ||
content="Spacebin is a highly-reliable pastebin server, built with Go, that's capable of serving notes, code, or any other documents." /> | ||
<meta property="og:color" content="#e34b4a" /> | ||
|
||
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="/static/normalize.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/global.css"> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<img src="/static/logo.svg" alt="Spacebin Logo" /> | ||
|
||
<a id="home" href="/" aria-label="Spacebin Home Page"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" | ||
class="main-grid-item-icon" fill="none" stroke="currentColor" stroke-linecap="round" | ||
stroke-linejoin="round" stroke-width="2"> | ||
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /> | ||
<polyline points="9 22 9 12 15 12 15 22" /> | ||
</svg> | ||
</a> | ||
|
||
|
||
<a id="github" href="https://github.com/orca-group/spirit" aria-label="Spacebin Github"> | ||
<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" | ||
stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22" /> | ||
</svg> | ||
</a> | ||
|
||
<a id="wiki" href="https://github.com/orca-group/spirit/blob/main/README.md/#-spirit" | ||
aria-label="Spacebin Documentation"> | ||
<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" | ||
stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" /> | ||
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" /> | ||
</svg> | ||
</a> | ||
|
||
<p id="donate" aria-label="Spacebin Donation Page"> | ||
Keep Spacebin free of ads by <a href="https://github.com/sponsors/lukewhrit">donating</a>. ❤️ | ||
</p> | ||
</header> | ||
|
||
<main> | ||
<h1 id="error"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="28" height="28" id="warning" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> | ||
<circle cx="12" cy="12" r="10" /> | ||
<line x1="12" x2="12" y1="8" y2="12" /> | ||
<line x1="12" x2="12.01" y1="16" y2="16" /> | ||
</svg> | ||
{{.Status}} | ||
</h1> | ||
<p>{{.Error}}</p> | ||
</main> | ||
|
||
<script src="/static/app.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters