Repository navigation
Expand file tree
/
Copy pathoffline.html
More file actions
37 lines (37 loc) · 2.15 KB
/
Copy pathoffline.html
File metadata and controls
37 lines (37 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>Offline</title>
<!-- Offline mode (sw.js): shown for a page that isn't saved on this device while there's no internet. Self-contained on purpose. -->
<style>
:root { --bg: #f6f4ef; --ink: #1d1b26; --ink-2: #6b6876; --line: #dcd8ce; --accent: #c4561c; }
@media (prefers-color-scheme: dark) { :root { --bg: #15122a; --ink: #f2f0ea; --ink-2: #a7a3b5; --line: #34304a; --accent: #f0a23b; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); color: var(--ink);
font: 16px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; }
main { max-width: 380px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin: 0 auto 18px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
p { color: var(--ink-2); margin: 0 0 1.4rem; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
a, button { font: inherit; font-weight: 600; font-size: 14px; padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid var(--line);
background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
button { background: var(--ink); color: var(--bg); border-color: var(--ink); }
</style>
</head>
<body>
<main>
<div class="dot"></div>
<h1>You're offline</h1>
<p>This isn't saved on this device yet. Open it once with internet and it will work offline after that. Games you've already played here still work; online matches come back when you reconnect.</p>
<div class="row">
<button type="button" onclick="location.reload()">Try again</button>
<a href="/" id="home">Home page</a>
</div>
</main>
<script>/* Inside a game frame the page around it has its own Back button. */ if (window.top !== window) document.getElementById('home').remove();</script>
</body>
</html>