mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
nodejs/template: merge some updates from web editor
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
Visit <a href="<%= more_info.link || 'https://www.cloudflare.com/' %>" target="_blank" rel="noopener noreferrer"><%= more_info.text || 'cloudflare.com' %></a> for <%= more_info.for || 'more information' %>.
|
Visit <a href="<%= more_info.link || 'https://www.cloudflare.com/' %>" target="_blank" rel="noopener noreferrer"><%= more_info.text || 'cloudflare.com' %></a> for <%= more_info.for || 'more information' %>.
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
<div class="mt-3"><%= params.time %></div>
|
<div class="<%= more_info.hidden ? '' : 'mt-3' %>"><%= params.time %></div>
|
||||||
</header>
|
</header>
|
||||||
<div class="my-8 bg-gradient-gray">
|
<div class="my-8 bg-gradient-gray">
|
||||||
<div class="w-240 lg:w-full mx-auto">
|
<div class="w-240 lg:w-full mx-auto">
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
if (item.status_text_color) {
|
if (item.status_text_color) {
|
||||||
text_color = item.status_text_color;
|
text_color = item.status_text_color;
|
||||||
} else if (status === 'ok') {
|
} else if (status === 'ok') {
|
||||||
text_color = '#9bca3e';
|
text_color = '#9bca3e'; // text-green-success
|
||||||
} else if (status === 'error') {
|
} else if (status === 'error') {
|
||||||
text_color = '#bd2426';
|
text_color = '#bd2426'; // text-red-error
|
||||||
}
|
}
|
||||||
const status_text = item.status_text || (status === 'ok' ? 'Working' : 'Error');
|
const status_text = item.status_text || (status === 'ok' ? 'Working' : 'Error');
|
||||||
const is_error_source = params.error_source === id;
|
const is_error_source = params.error_source === id;
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
<span class="cf-icon-<%= status %> w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
|
<span class="cf-icon-<%= status %> w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
|
||||||
</div>
|
</div>
|
||||||
<span class="md:block w-full truncate"><%= item.location || default_location %></span>
|
<span class="md:block w-full truncate"><%= item.location || default_location %></span>
|
||||||
<h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3" <%= (item.name || default_name) === 'Cloudflare' ? 'style="color: #2f7bbf;"' : '' %>><%= item.name || default_name %></h3>
|
<h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3" <%- (item.name || default_name) === 'Cloudflare' ? 'style="color: #2f7bbf;"' : '' %>><%= item.name || default_name %></h3>
|
||||||
<span class="leading-1.3 text-2xl" style="color: <%= text_color %>"><%= status_text %></span>
|
<span class="leading-1.3 text-2xl" style="color: <%= text_color %>"><%= status_text %></span>
|
||||||
</div>
|
</div>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
|
|||||||
Reference in New Issue
Block a user