forked from statsig-io/statsigstatus
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
168 lines (159 loc) · 5.46 KB
/
index.html
File metadata and controls
168 lines (159 loc) · 5.46 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
<html lang="en">
<head>
<title>Stability Protocol - Status Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
property="description"
content="Check the current Stability Protocol health status and view past incidents."
/>
<link rel="canonical" href="https://status.stabilityprotocol.com/" />
<link rel="icon" href="favicon.ico" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="index.js"></script>
<script
async
src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"
></script>
<script
async
src="https://cdn.jsdelivr.net/npm/dompurify@2.3.5/dist/purify.min.js"
></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
"status-green": "#10b981",
"status-yellow": "#f59e0b",
"status-orange": "#f97316",
"status-red": "#ef4444",
"status-blue": "#3b82f6",
"status-gray": "#6b7280",
},
},
},
};
</script>
</head>
<body class="bg-gray-50 font-sans text-gray-900 antialiased">
<div class="min-h-screen">
<!-- Header -->
<div class="bg-white border-b border-gray-200">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="text-center">
<img
src="stability-coverimage.png"
alt="Stability Protocol Logo"
class="mx-auto h-16 sm:h-20 mb-6"
/>
<div
id="overall-status"
class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800"
>
<div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
All Systems Operational
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Services Status -->
<div class="mb-8">
<h2 class="text-xl font-semibold text-gray-900 mb-4">
Current Status
</h2>
<div id="reports" class="space-y-4"></div>
</div>
<!-- Incident Reports -->
<div id="incidents" class="mb-8">
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6">
<div class="mb-6">
<h3 class="text-xl font-semibold text-gray-900 mb-2">
News & Updates
</h3>
<p class="text-gray-600 text-sm">
Latest incident reports and maintenance notifications
</p>
</div>
<div id="newsUpdates" class="prose prose-sm max-w-none"></div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 mt-16">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="text-center text-sm text-gray-500">
<p>Powered by Stability Protocol</p>
</div>
</div>
</footer>
</div>
<!-- Tooltip -->
<div
id="tooltip"
class="fixed z-50 bg-white border border-gray-200 rounded-lg shadow-lg p-4 opacity-0 pointer-events-none transition-opacity duration-200 max-w-xs"
>
<div
id="tooltipArrow"
class="absolute -top-2 left-1/2 transform -translate-x-1/2 w-4 h-4 bg-white border border-gray-200 rotate-45 border-b-0 border-r-0"
></div>
<div
id="tooltipDateTime"
class="text-xs font-medium text-gray-500 uppercase tracking-wide mb-1"
></div>
<div
id="tooltipStatus"
class="inline-flex items-center px-2 py-1 rounded-full text-xs font-medium mb-2"
></div>
<hr class="border-gray-200 my-2" />
<div id="tooltipDescription" class="text-sm text-gray-700"></div>
</div>
<!-- Templates -->
<div id="templates" class="hidden">
<div
id="statusSquareTemplate"
class="flex-1 h-6 rounded-sm cursor-pointer transition-opacity hover:opacity-75"
></div>
<div id="statusLineTemplate" class="flex gap-1"></div>
<div id="statusStreamContainerTemplate" class="flex gap-1 mt-3"></div>
<div
id="statusContainerTemplate"
class="bg-white rounded-lg shadow-sm border border-gray-200 p-6"
>
<div
class="flex flex-col sm:flex-row sm:items-center sm:justify-between mb-4"
>
<div class="flex-1">
<h4 class="text-lg font-semibold text-gray-900 mb-1">$title</h4>
<div
class="flex flex-col sm:flex-row sm:items-center sm:gap-4 text-sm text-gray-600"
>
<a href="$url" class="text-blue-600 hover:text-blue-800 break-all"
>$url</a
>
<div class="text-gray-500 mt-1 sm:mt-0">
$upTime uptime (30 days)
</div>
</div>
</div>
<div class="mt-3 sm:mt-0 sm:ml-4">
<span
class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium $color-badge"
>
<div class="w-2 h-2 rounded-full mr-2 $color-dot"></div>
$status
</span>
</div>
</div>
</div>
</div>
<script>
genAllReports();
window.addEventListener("load", () => {
genIncidentReport();
});
</script>
</body>
</html>