2022-03-31 16:58:45 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Budibase</title>
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<script>
|
2022-04-25 17:39:44 +02:00
|
|
|
function checkStatusButton() {
|
|
|
|
if (window.location.href.includes("budibase.app")) {
|
|
|
|
var button = document.getElementById("statusButton")
|
|
|
|
button.removeAttribute("hidden")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-31 16:58:45 +02:00
|
|
|
function goToStatus() {
|
|
|
|
window.location.href = "https://status.budibase.com";
|
|
|
|
}
|
|
|
|
function goHome() {
|
|
|
|
window.location.href = window.location.origin;
|
|
|
|
}
|
|
|
|
function getStatus() {
|
|
|
|
var http = new XMLHttpRequest()
|
|
|
|
var url = window.location.href
|
|
|
|
http.open('GET', url, true)
|
|
|
|
http.send()
|
|
|
|
http.onreadystatechange = (e) => {
|
|
|
|
var status = http.status
|
|
|
|
document.getElementById("status").innerHTML = status
|
|
|
|
|
|
|
|
var message
|
|
|
|
if (status === 502) {
|
|
|
|
message = "Bad gateway. Please try again later."
|
|
|
|
} else if (status === 503) {
|
|
|
|
message = "Service Unavailable. Please try again later."
|
|
|
|
} else if (status === 504) {
|
|
|
|
message = "Gateway timeout. Please try again later."
|
|
|
|
} else {
|
|
|
|
message = "Please try again later."
|
|
|
|
}
|
|
|
|
|
|
|
|
document.getElementById("message").innerHTML = message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-25 17:39:44 +02:00
|
|
|
window.onload = function() {
|
|
|
|
checkStatusButton()
|
|
|
|
getStatus()
|
|
|
|
};
|
|
|
|
|
2022-03-31 16:58:45 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2022-04-25 17:39:44 +02:00
|
|
|
|
|
|
|
:root {
|
|
|
|
--spectrum-global-color-gray-600: rgb(144,144,144);
|
|
|
|
--spectrum-global-color-gray-900: rgb(255,255,255);
|
|
|
|
--spectrum-global-color-gray-800: rgb(227,227,227);
|
2023-10-31 10:48:19 +01:00
|
|
|
--bb-indigo: #6E56FF;
|
|
|
|
--bb-indigo-light: #9F8FFF;
|
2022-04-25 17:39:44 +02:00
|
|
|
}
|
|
|
|
|
2022-03-31 16:58:45 +02:00
|
|
|
html, body {
|
|
|
|
background-color: #1a1a1a;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
color: #e7e7e7;
|
2022-04-25 17:39:44 +02:00
|
|
|
font-family: 'Roboto', sans-serif;
|
2022-03-31 16:58:45 +02:00
|
|
|
}
|
2022-04-25 17:39:44 +02:00
|
|
|
button {
|
|
|
|
color: #e7e7e7;
|
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
border: none;
|
|
|
|
font-size: 15px;
|
|
|
|
border-radius: 15px;
|
|
|
|
padding: 8px 22px;
|
|
|
|
}
|
|
|
|
button:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2022-03-31 16:58:45 +02:00
|
|
|
.main {
|
|
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-10-31 10:48:19 +01:00
|
|
|
align-items: flex-start;
|
2022-03-31 16:58:45 +02:00
|
|
|
}
|
|
|
|
.status {
|
|
|
|
color: var(--spectrum-global-color-gray-600)
|
|
|
|
}
|
|
|
|
.title {
|
|
|
|
font-weight: 400;
|
|
|
|
color: var(--spectrum-global-color-gray-900)
|
|
|
|
}
|
|
|
|
.message {
|
|
|
|
font-weight: 200;
|
|
|
|
color: var(--spectrum-global-color-gray-800)
|
|
|
|
}
|
|
|
|
.buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2023-10-31 10:48:19 +01:00
|
|
|
justify-content: flex-start;
|
2022-03-31 16:58:45 +02:00
|
|
|
margin-top: 15px;
|
|
|
|
}
|
2022-04-25 17:39:44 +02:00
|
|
|
.homeButton {
|
2023-10-31 10:48:19 +01:00
|
|
|
background-color: var(--bb-indigo);
|
2022-04-25 17:39:44 +02:00
|
|
|
}
|
|
|
|
.homeButton:hover {
|
2023-10-31 10:48:19 +01:00
|
|
|
background-color: var(--bb-indigo-light);
|
2022-04-25 17:39:44 +02:00
|
|
|
}
|
2022-03-31 16:58:45 +02:00
|
|
|
.statusButton {
|
2022-04-25 17:39:44 +02:00
|
|
|
background-color: transparent;
|
2022-03-31 16:58:45 +02:00
|
|
|
margin-left: 20px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
.hero {
|
2023-10-31 10:48:19 +01:00
|
|
|
height: 60px;
|
|
|
|
margin: 10px 40px 10px 0;
|
2023-10-30 11:52:21 +01:00
|
|
|
}
|
|
|
|
.hero img {
|
|
|
|
height: 100%;
|
2022-03-31 16:58:45 +02:00
|
|
|
}
|
|
|
|
.content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2023-10-30 11:52:21 +01:00
|
|
|
align-items: center;
|
2022-03-31 16:58:45 +02:00
|
|
|
justify-content: center;
|
2023-10-31 10:48:19 +01:00
|
|
|
padding: 0 40px;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
margin-top: 0;
|
2022-03-31 16:58:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
|
|
.content {
|
|
|
|
flex-direction: column;
|
2023-10-31 10:48:19 +01:00
|
|
|
align-items: flex-start;
|
2022-03-31 16:58:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script src="">
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<body>
|
2022-04-25 17:39:44 +02:00
|
|
|
<div class="main">
|
|
|
|
<div class="content">
|
|
|
|
<div class="hero">
|
2023-10-30 11:52:21 +01:00
|
|
|
<img src="https://res.cloudinary.com/daog6scxm/image/upload/v1696515725/Branding/Assets/Symbol/RGB/Full%20Colour/Budibase_Symbol_RGB_FullColour_cbqvha_1_z5cwq2.svg" alt="Budibase Logo">
|
2022-04-25 17:39:44 +02:00
|
|
|
</div>
|
|
|
|
<div class="info">
|
|
|
|
<div>
|
2023-10-31 10:48:19 +01:00
|
|
|
<h4 id="status" class="status"> </h4>
|
2022-04-25 17:39:44 +02:00
|
|
|
<h1 class="title">
|
|
|
|
Houston we have a problem!
|
|
|
|
</h1>
|
2023-10-31 10:48:19 +01:00
|
|
|
<h3 id="message" class="message"> </h3>
|
2022-03-31 16:58:45 +02:00
|
|
|
</div>
|
2022-04-25 17:39:44 +02:00
|
|
|
<div class="buttons">
|
|
|
|
<button class="homeButton" onclick=goHome()>Return home</button>
|
|
|
|
<button id="statusButton" class="statusButton" hidden="true" onclick=goToStatus()>Check out status</button>
|
2022-03-31 16:58:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-25 17:39:44 +02:00
|
|
|
</div>
|
2022-03-31 16:58:45 +02:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|