Skip to main content

max / makenotwork

3.6 KB · 107 lines History Blame Raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Something Went Wrong - makenot.work</title>
7 <meta http-equiv="refresh" content="15">
8 <style>
9 /* Self-hosted, and this used to be three requests to Google Fonts.
10 These two pages are rendered BY the app (Caddy proxies its own 404
11 and 500 to /__errors/, see deploy/Caddyfile), so /static resolves
12 and the house faces are one origin away. A page shown when
13 something has already gone wrong is the last page that should be
14 blocking on somebody else's CDN, and it leaked a visitor's IP to
15 one for the sake of a font. */
16 @font-face {
17 font-family: "Quasi Body";
18 src: url("/static/fonts/QuasiBody.woff2") format("woff2");
19 font-weight: 200 800;
20 font-display: swap;
21 }
22 @font-face {
23 font-family: "Quasi Mono";
24 src: url("/static/fonts/QuasiMono.woff2") format("woff2");
25 font-weight: 200 800;
26 font-display: swap;
27 }
28 @font-face {
29 font-family: "Young Serif";
30 src: url("/static/fonts/ysrf.woff2") format("woff2");
31 font-display: swap;
32 }
33 </style>
34 <style>
35 * { margin: 0; padding: 0; box-sizing: border-box; }
36 body {
37 min-height: 100vh;
38 display: flex;
39 flex-direction: column;
40 align-items: center;
41 justify-content: center;
42 padding: 2rem;
43 background: #ede8e1;
44 color: #3d3530;
45 font-family: "Quasi Body", sans-serif;
46 }
47 .wordmark {
48 position: absolute;
49 top: 2rem;
50 left: 2rem;
51 font-family: "Young Serif", Georgia, "Times New Roman", serif;
52 font-size: 1.25rem;
53 color: #3d3530;
54 text-decoration: none;
55 }
56 .wordmark .dot { color: #6c5ce7; }
57 .container { text-align: center; max-width: 500px; }
58 .code {
59 font-size: 8rem;
60 font-weight: 400;
61 line-height: 1;
62 margin-bottom: 1rem;
63 font-family: "Young Serif", Georgia, "Times New Roman", serif;
64 color: #3d3530;
65 }
66 .title {
67 font-size: 1.25rem;
68 font-family: "Quasi Mono", monospace;
69 color: #8a8480;
70 margin-bottom: 1.5rem;
71 }
72 .message {
73 color: #8a8480;
74 margin-bottom: 2rem;
75 line-height: 1.6;
76 }
77 .retry {
78 font-family: "Quasi Mono", monospace;
79 font-size: 0.85rem;
80 color: #8a8480;
81 }
82 a.btn {
83 display: inline-block;
84 padding: 0.75rem 1.5rem;
85 background: #3d3530;
86 color: #ede8e1;
87 text-decoration: none;
88 border-radius: 6px;
89 font-weight: 500;
90 transition: opacity 0.2s;
91 margin-bottom: 1.5rem;
92 }
93 a.btn:hover { opacity: 0.85; }
94 </style>
95 </head>
96 <body>
97 <a href="/" class="wordmark">Makenot<span class="dot">.</span>work</a>
98 <div class="container">
99 <div class="code">500</div>
100 <div class="title">Something went wrong</div>
101 <p class="message">An unexpected error occurred. This has been noted and will be looked into.</p>
102 <a href="/" class="btn">Go Home</a>
103 <p class="retry">This page will retry automatically.</p>
104 </div>
105 </body>
106 </html>
107