-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
174 lines (153 loc) · 4.3 KB
/
Copy pathoffline.html
File metadata and controls
174 lines (153 loc) · 4.3 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>No Internet | DeepSeek</title>
<style>
:root {
--body-bg-color: #f5f5f8;
--card-bg-color: #ffffff;
--border-color: #e5e7eb;
--title-color: #1a1a1a;
--text-color: #4b5563;
--primary-color: #1e4ae9;
--primary-hover: #1a3fc7;
--error-color: #ef4444;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: var(--body-bg-color);
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
padding: 0 20px;
}
.container {
text-align: center;
background-color: var(--card-bg-color);
padding: 40px;
border-radius: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid var(--border-color);
max-width: 420px;
width: 100%;
}
.logo {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-bottom: 24px;
}
.logo svg {
width: 36px;
height: 36px;
}
.logo span {
font-size: 24px;
font-weight: 600;
color: var(--title-color);
background: linear-gradient(90deg, #1e4ae9 0%, #0d6efd 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
h1 {
color: var(--title-color);
font-size: 24px;
font-weight: 600;
margin-bottom: 16px;
}
p {
margin: 0 0 24px;
font-size: 16px;
line-height: 1.5;
color: var(--text-color);
}
.button {
margin-top: 16px;
}
button {
background-color: var(--primary-color);
color: white;
font-weight: 500;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.2s ease;
width: 100%;
max-width: 200px;
}
button:hover {
background-color: var(--primary-hover);
}
.footer {
margin-top: 32px;
font-size: 14px;
color: var(--text-color);
opacity: 0.8;
}
.retry-message {
color: var(--error-color);
background-color: rgba(239, 68, 68, 0.1);
padding: 12px;
border-radius: 8px;
margin-top: 24px;
font-size: 14px;
display: none;
}
.illustration {
margin-bottom: 24px;
}
.illustration svg {
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<div class="container">
<div class="logo" style="flex-direction: column; gap: 8px; align-items: center; justify-content: center;">
<img src="./assets/images/icon.png" alt="DeepSeek" style="width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 8px rgba(30,74,233,0.10); background: #fff;" />
<span style="font-size: 32px; font-weight: 700; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, #1e4ae9 0%, #0d6efd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">DeepSeek</span>
</div>
<h1>No Internet Connection</h1>
<p>You're currently offline. Please check your network connection and try again.</p>
<div class="button">
<button onclick="retryConnection()">Retry Connection</button>
</div>
<div class="retry-message" id="retryMessage">
Trying to reconnect...
</div>
<div class="footer">
DeepSeek Chat - AI Assistant
</div>
</div>
<script>
function retryConnection() {
var message = document.getElementById('retryMessage');
message.style.display = 'block';
setTimeout(function() {
if (navigator.onLine) {
window.location.reload();
} else {
message.textContent = 'Still offline. Please check your connection.';
message.style.color = 'var(--error-color)';
message.style.backgroundColor = 'rgba(239, 68, 68, 0.1)';
}
}, 2000);
}
// Check connection status on load
window.addEventListener('load', function() {
if (navigator.onLine) {
window.location.reload();
}
});
</script>
</body>
</html>