-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
79 lines (71 loc) · 1.88 KB
/
offline.html
File metadata and controls
79 lines (71 loc) · 1.88 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#10b981" />
<title>Ta-Da! — You're offline</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #fafaf9;
color: #1c1917;
min-height: 100svh;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
}
@media (prefers-color-scheme: dark) {
body { background: #1c1917; color: #f5f5f4; }
.card { background: #292524; border-color: #44403c; }
.subtitle { color: #a8a29e; }
}
.card {
background: #fff;
border: 1px solid #e7e5e4;
border-radius: 1rem;
padding: 2.5rem 2rem;
max-width: 22rem;
width: 100%;
text-align: center;
}
.emoji { font-size: 3rem; margin-bottom: 1rem; }
h1 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.subtitle {
font-size: 0.9rem;
color: #78716c;
margin-bottom: 2rem;
line-height: 1.5;
}
button {
background: #10b981;
color: #fff;
border: none;
border-radius: 0.5rem;
padding: 0.75rem 1.5rem;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
width: 100%;
}
button:active { background: #059669; }
</style>
</head>
<body>
<div class="card">
<div class="emoji">⚡</div>
<h1>You're offline</h1>
<p class="subtitle">
Pages you've already opened still work, and an in-progress timer keeps
ticking. New entries will need to wait until you're connected again.
</p>
<button onclick="window.location.reload()">Try again</button>
</div>
</body>
</html>