cdn/app/views/errors/internal_server_error.html.erb
2026-01-30 13:45:56 -05:00

62 lines
1.9 KiB
Text

<!DOCTYPE html>
<html data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<title>Something went wrong - CDN</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="/icon.png" type="image/png">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
background: #f6f8fa;
color: #24292f;
}
@media (prefers-color-scheme: dark) {
body { background: #0d1117; color: #c9d1d9; }
.error-box { background: #161b22; border-color: #30363d; }
code { background: #21262d; }
}
.error-box {
text-align: center;
padding: 48px;
background: white;
border: 1px solid #d0d7de;
border-radius: 12px;
max-width: 480px;
margin: 16px;
}
h1 { margin: 0 0 16px; font-size: 24px; }
p { margin: 0 0 16px; color: #656d76; }
code {
display: inline-block;
padding: 4px 12px;
background: #f6f8fa;
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
font-size: 14px;
}
a { color: #0969da; text-decoration: none; }
a:hover { text-decoration: underline; }
</style>
</head>
<body>
<div class="error-box">
<h1>Something went wrong</h1>
<% if local_assigns[:error_message] && error_message.present? %>
<p><%= error_message %></p>
<% else %>
<p>We've been notified and are looking into it.</p>
<% end %>
<% if local_assigns[:error_id] && error_id.present? %>
<p>
Error ID: <code><%= error_id %></code>
</p>
<% end %>
<p><a href="/">← Back to home</a></p>
</div>
</body>
</html>