Nacre/assets/servo/neterror.html

34 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Couldn't open this page</title>
<style>
:root { font-family: system-ui, sans-serif; --bg: #fdfbff; --text: #1a1b1f; --muted: #44474e; --card: #f1f0f4; --primary: #415f91; --on-primary: #ffffff; --tonal: #d6e3ff; --on-tonal: #001b3e; --error: #ffdad6; --on-error: #410002; --line: #c4c6d0; }
@media (prefers-color-scheme: dark) { :root { --bg: #101114; --text: #e3e2e6; --muted: #c4c6d0; --card: #1d1e22; --primary: #aac7ff; --on-primary: #0a305f; --tonal: #284777; --on-tonal: #d6e3ff; --error: #93000a; --on-error: #ffdad6; --line: #44474e; } }
html { background: var(--bg); color: var(--text); }
body { max-width: 520px; margin: 14vh auto; padding: 0 24px; line-height: 1.5; text-align: center; background: var(--bg); color: var(--text); }
.mark { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--error); color: var(--on-error); font-size: 34px; font-weight: 600; line-height: 72px; }
h1 { font-size: 1.75em; font-weight: 600; margin: 0 0 8px; }
p { margin: 8px 0; color: var(--muted); }
p.url { word-break: break-all; color: var(--text); }
code, pre { font-family: ui-monospace, monospace; word-break: break-all; }
.detail { font-size: 0.85em; }
.actions { margin-top: 28px; }
button { font: inherit; font-weight: 600; height: 40px; padding: 0 24px; margin: 0 4px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--primary); cursor: pointer; }
button.main { border-color: transparent; background: var(--primary); color: var(--on-primary); }
button:hover { filter: brightness(1.08); }
details { margin-top: 20px; text-align: left; color: var(--muted); }
details pre { white-space: pre-wrap; font-size: 12px; background: var(--card); padding: 12px; border-radius: 12px; }
</style>
</head>
<body>
<div class="mark">!</div>
<h1>Couldn't open this page</h1>
<p class="url" id="url"></p>
<p>The server didn't answer or the connection broke. Check that the address is right and that you're online. If you use Nacre's VPN, it may still be connecting.</p>
<p class="detail">Details: <code>${reason}</code></p>
<div class="actions"><button class="main" onclick="location.reload()">Try again</button><button onclick="history.back()">Go back</button></div>
<script>document.getElementById('url').textContent = location.href;</script>
</body>
</html>