-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
189 lines (159 loc) · 2.91 KB
/
Copy pathoffline.html
File metadata and controls
189 lines (159 loc) · 2.91 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Offline | Python Learning</title>
<style>
*{margin:0;padding:0;box-sizing:border-box}
body{
font-family:Segoe UI,Arial,sans-serif;
background:linear-gradient(135deg,#020617,#0f172a,#111827);
color:#fff;
display:flex;
align-items:center;
justify-content:center;
height:100vh;
overflow:hidden;
}
.bg{
position:fixed;
inset:0;
background:
radial-gradient(circle at top left,#38bdf830 0%,transparent 35%),
radial-gradient(circle at bottom right,#2563eb30 0%,transparent 35%);
animation:bgMove 8s linear infinite alternate;
}
.card{
position:relative;
z-index:2;
width:92%;
max-width:520px;
padding:40px;
border-radius:24px;
background:rgba(15,23,42,.82);
backdrop-filter:blur(18px);
border:1px solid rgba(255,255,255,.12);
box-shadow:0 25px 70px rgba(0,0,0,.45);
text-align:center;
animation:fade .8s ease;
}
.logo{
width:95px;
height:95px;
margin:auto;
border-radius:50%;
background:linear-gradient(135deg,#38bdf8,#2563eb);
display:flex;
align-items:center;
justify-content:center;
font-size:42px;
font-weight:700;
box-shadow:0 0 35px rgba(56,189,248,.55);
animation:pulse 2s infinite;
}
h1{
margin:28px 0 12px;
font-size:34px;
font-weight:700;
}
p{
font-size:17px;
line-height:1.8;
color:#cbd5e1;
margin-bottom:28px;
}
.status{
display:inline-flex;
align-items:center;
gap:10px;
padding:12px 20px;
background:#1e293b;
border-radius:30px;
border:1px solid #334155;
font-size:15px;
margin-bottom:30px;
}
.dot{
width:10px;
height:10px;
border-radius:50%;
background:#ef4444;
animation:blink 1s infinite;
}
.actions{
display:flex;
gap:14px;
justify-content:center;
flex-wrap:wrap;
}
button{
border:none;
cursor:pointer;
padding:14px 28px;
font-size:16px;
font-weight:600;
border-radius:12px;
transition:.3s;
}
.retry{
background:#38bdf8;
color:#02111f;
}
.retry:hover{
background:#fff;
transform:translateY(-3px);
}
.home{
background:#1e293b;
color:#fff;
border:1px solid #334155;
}
.home:hover{
background:#334155;
transform:translateY(-3px);
}
footer{
margin-top:28px;
font-size:13px;
color:#94a3b8;
}
@keyframes pulse{
50%{transform:scale(1.08)}
}
@keyframes blink{
50%{opacity:.2}
}
@keyframes fade{
from{opacity:0;transform:translateY(20px)}
to{opacity:1;transform:translateY(0)}
}
@keyframes bgMove{
from{transform:scale(1)}
to{transform:scale(1.15)}
}
</style>
</head>
<body>
<div class="bg"></div>
<div class="card">
<div class="logo">Py</div>
<h1>No Internet Connection</h1>
<p>
Python Learning is currently offline.<br>
Please check your internet connection and try again.
</p>
<div class="status">
<div class="dot"></div>
Offline Mode
</div>
<div class="actions">
<button class="retry" onclick="location.reload()">Retry</button>
<button class="home" onclick="window.location.href='home.html'">Open Home</button>
</div>
<footer>
Python Learning • Progressive Web App
</footer>
</div>
</body>
</html>