Skip to content

Commit cd6fc75

Browse files
committed
Added alert for not running instance
1 parent a29c657 commit cd6fc75

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/pages/cloud/dash.astro

+16-6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ import BaseLayout from '../../layouts/BaseLayout.astro';
6868
<div class="row instances-row" id="instances-row" style="margin-top: 4rem;">
6969

7070
</div>
71+
<div class="alert alert-warning text-white mt-4" role="alert" id="instances-warning-alert" style="display: none;">
72+
<span class="alert-icon"><i class="ni ni-ui-04"></i></span>
73+
<span class="alert-text"><strong>One or more of your instances appear to be offline. If you are having any issues with the test phase or need any support, please contact us through the box below 👇</strong></span>
74+
</div>
7175
</section>
7276
</div>
7377
</div>
@@ -90,24 +94,24 @@ import BaseLayout from '../../layouts/BaseLayout.astro';
9094
</div>
9195
</header>
9296

93-
<!--
97+
9498
<section class="container my-2 py-5">
9599
<div class="row">
96100
<div class="col col-lg-3 col-md-2 col-sm-0 col-xs-0 col-0"></div>
97101
<div class="col col-12 col-lg-6 col-md-8 col-sm-12 col-xs-12 text-center">
98-
<h2 class="mb-4">Got Feedback?</h2>
102+
<h2 class="mb-4">🤔 Issues 💭 Feedback 💡 Ideas?</h2>
99103
<form id="feedback-form">
100104
<div class="form-group">
101-
<label for="feedbackTextArea">Please share your thought about Edgebox with us. We will read this message!</label>
102-
<textarea class="form-control" id="feedbackTextArea" rows="3"></textarea>
105+
<label for="feedbackTextArea">Please share any thoughts that can help us improve the experience, or let us know directly in case you're having any issues. The team looks daily at early tester messages.</label>
106+
<textarea class="form-control" id="feedbackTextArea" rows="8"></textarea>
103107
</div>
104-
<input type="submit" class="btn btn-success" value="Submit">
108+
<input type="submit" class="btn btn-success" value="Send Message">
105109
</form>
106110
</div>
107111
<div class="col col-lg-3 col-md-2 col-sm-0 col-xs-0 col-0"></div>
108112
</div>
109113

110-
</section> -->
114+
</section>
111115

112116
<section class="container my-2 py-5">
113117
<div class="row">
@@ -185,6 +189,12 @@ import BaseLayout from '../../layouts/BaseLayout.astro';
185189
console.log(instance)
186190

187191
const instance_status = instance.running ? 'Online <span style="font-size: 12px;">🟢</span>' : 'Offline <span style="font-size: 12px;">🔴</span>'
192+
193+
// if instance is offline, show warning alert
194+
if( !instance.running ) {
195+
document.getElementById('instances-warning-alert').style.display = 'block';
196+
}
197+
188198
// Set the instance started date, in the Following format: dd Mo YYYY. Example: 16 Nov 2023
189199
const date = new Date(instance.created);
190200
const options = { year: 'numeric', month: 'short', day: 'numeric' };

0 commit comments

Comments
 (0)