-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
217 lines (196 loc) · 9.17 KB
/
offline.html
File metadata and controls
217 lines (196 loc) · 9.17 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>You're Offline | IPEC Consulting</title>
<!-- Meta Tags -->
<meta name="robots" content="noindex, follow">
<meta name="theme-color" content="#10b981">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="IPEC Consulting">
<link rel="icon" type="image/png" sizes="32x32" href="assets/images/cropped-ipec-logo-32x32.png">
<link rel="apple-touch-icon" href="assets/images/ipec.jpg">
<link rel="manifest" href="manifest.json">
<!-- Tailwind CSS & Config -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: { sans: ['Inter', 'sans-serif'] },
colors: {
ipec: {
red: '#D93025',
green: '#1E8E3E',
dark: '#0F172A'
}
}
}
}
}
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="js/theme.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
/* Distinct Gradient Background */
.hero-bg {
background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #fff7ed 100%);
}
.dark .hero-bg {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.offline-animation {
animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
}
}
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "IPEC Consulting",
"url": "https://i.fouralpha.org",
"logo": "https://i.fouralpha.org/assets/images/cropped-ipec-logo-32x32.png",
"sameAs": [
"https://ipecconsulting.org/",
"https://www.linkedin.com/company/ipec-consulting/",
"https://twitter.com/ipecconsulting"
],
"@id": "https://i.fouralpha.org/#organization"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "IPEC Expense Manager",
"url": "https://i.fouralpha.org",
"publisher": {
"@id": "https://i.fouralpha.org/#organization"
},
"potentialAction": {
"@type": "SearchAction",
"target": "https://i.fouralpha.org/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
</head>
<body
class="bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100 antialiased flex flex-col min-h-screen transition-colors duration-300 hero-bg">
<!-- Navigation -->
<nav
class="border-b border-slate-100 dark:border-slate-800 bg-white/80 dark:bg-slate-900/80 backdrop-blur-md sticky top-0 z-50 transition-colors duration-300">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-20 items-center">
<div class="flex items-center gap-3">
<img src="assets/images/ipec.jpg" alt="IPEC Logo" class="h-10 w-auto grayscale opacity-80">
<div class="flex flex-col">
<span class="font-bold text-lg leading-tight text-slate-500 dark:text-slate-400">IPEC
Consulting</span>
<span class="text-[10px] text-slate-400 font-medium uppercase tracking-wider">Connection
Lost</span>
</div>
</div>
<div class="hidden md:flex gap-8 text-sm font-medium text-slate-600 dark:text-slate-400 items-center">
<button onclick="toggleTheme()"
class="w-8 h-8 rounded-full bg-slate-100 dark:bg-slate-800 text-slate-500 dark:text-yellow-400 hover:bg-slate-200 dark:hover:bg-slate-700 transition flex items-center justify-center">
<i class="fa-solid fa-moon theme-toggle-icon"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="flex-grow flex items-center justify-center p-4">
<div class="text-center max-w-2xl mx-auto animate-fade-in-up">
<div class="mb-8 relative inline-block">
<div
class="bg-white dark:bg-slate-800 rounded-full p-8 shadow-xl border border-slate-100 dark:border-slate-700 relative z-10">
<i class="fa-solid fa-wifi-slash text-6xl text-red-500 offline-animation"></i>
</div>
<div
class="absolute inset-0 bg-red-100 dark:bg-red-900/20 rounded-full blur-xl scale-125 z-0 animate-pulse">
</div>
</div>
<h1 class="text-3xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4">You are currently offline
</h1>
<p class="text-lg text-slate-600 dark:text-slate-400 mb-8 max-w-lg mx-auto">
We can't connect to the IPEC servers right now. Please check your internet connection and try again.
</p>
<div
class="bg-white dark:bg-slate-800 rounded-xl p-6 shadow-sm border border-slate-200 dark:border-slate-700 max-w-md mx-auto mb-8 text-left">
<h3 class="text-sm font-bold text-slate-700 dark:text-slate-200 uppercase mb-3"><i
class="fa-solid fa-circle-question mr-2 text-green-500"></i> troubleshooting</h3>
<ul class="space-y-2 text-sm text-slate-600 dark:text-slate-400">
<li class="flex items-start gap-2"><i class="fa-solid fa-check text-green-500 mt-1"></i> Check if
your Wi-Fi or mobile data is enabled.</li>
<li class="flex items-start gap-2"><i class="fa-solid fa-check text-green-500 mt-1"></i> Ensure
Airplane mode is turned off.</li>
<li class="flex items-start gap-2"><i class="fa-solid fa-check text-green-500 mt-1"></i> Your
previously loaded data may still be accessible from cache.</li>
</ul>
</div>
<div class="flex flex-col sm:flex-row gap-4 justify-center">
<button onclick="window.location.reload()"
class="px-8 py-3 rounded-lg bg-ipec-green hover:bg-green-700 text-white font-semibold transition shadow-lg shadow-green-200 dark:shadow-none flex items-center justify-center gap-2 transform hover:scale-105 duration-200">
<i class="fa-solid fa-rotate-right"></i> Retry Connection
</button>
<a href="index.html"
class="px-8 py-3 rounded-lg bg-slate-100 hover:bg-slate-200 dark:bg-slate-800 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-300 font-semibold transition border border-slate-200 dark:border-slate-700 flex items-center justify-center gap-2 transform hover:scale-105 duration-200">
<i class="fa-solid fa-house"></i> Go to Homepage
</a>
</div>
</div>
</main>
<!-- Footer -->
<footer
class="bg-white dark:bg-slate-900 border-t border-slate-200 dark:border-slate-800 py-8 mt-auto transition-colors duration-300">
<div class="max-w-7xl mx-auto px-4 text-center">
<p class="text-slate-500 dark:text-slate-400 text-sm">© 2026 IPEC Council. Currently running in offline
mode.</p>
</div>
</footer>
<script>
// Auto-reload when online
window.addEventListener('online', () => {
const toast = document.createElement('div');
toast.className = 'fixed bottom-5 left-1/2 transform -translate-x-1/2 bg-green-600 text-white px-6 py-3 rounded-lg shadow-lg z-50 flex items-center gap-3 animate-bounce';
toast.innerHTML = '<i class="fa-solid fa-wifi"></i> Connection RESTORED! Reloading...';
document.body.appendChild(toast);
setTimeout(() => window.location.reload(), 2000);
});
</script>
<!-- AI Support Chat -->
<script type="module">
import { AISupport } from './js/ai-support.js';
setTimeout(() => {
new AISupport({
name: 'Visitor',
role: 'Offline Guest',
department: 'Technical Support'
});
}, 5000);
</script>
</body>
</html>