-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffline.html
85 lines (75 loc) · 2.23 KB
/
offline.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Offline - Variable Weather</title>
<link rel="stylesheet" href="resources/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="resources/font-awesome/all.min.css">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(to bottom, #4B79A1 0%, #283E51 100%);
margin: 0;
padding: 0;
min-height: 100vh;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
}
.offline-container {
max-width: 500px;
padding: 30px;
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.icon {
font-size: 80px;
margin-bottom: 20px;
color: #f8f9fa;
}
h1 {
margin-bottom: 20px;
}
p {
margin-bottom: 30px;
font-size: 18px;
line-height: 1.6;
}
.btn {
background-color: #1e88e5;
color: white;
border: none;
padding: 12px 25px;
border-radius: 50px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
}
.btn:hover {
background-color: #1565c0;
transform: translateY(-2px);
}
</style>
</head>
<body>
<div class="offline-container">
<div class="icon">
<i class="bi bi-exclamation-diamond-fill"></i>
</div>
<h1>You're Offline</h1>
<p>It looks like you don't have an internet connection right now. The Weather App needs to be online to fetch
the latest weather data.</p>
<button class="btn" onclick="tryReconnect()">Try Again</button>
</div>
<script>
function tryReconnect() {
window.location.reload();
}
</script>
</body>
</html>