combo/combo/apps/pwa/templates/combo/pwa/offline.html

56 lines
993 B
HTML

{% load i18n static %}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body {
margin: 0; padding: 1rem;
font-family: sans-serif;
background: {{theme_color}};
}
div.info-text {
background: white;
padding: 1rem;
border-radius: 3px;
max-width: 25rem;
text-align: center;
margin: auto;
}
img {
max-width: 100%;
margin: 0 auto;
display: block;
}
p.retry {
margin-top: 2rem;
}
p.retry a {
border: 1px solid {{theme_color}};
text-decoration: none;
background: white;
padding: 0.5rem 1rem;
border-radius: 3px;
color: inherit;
}
</style>
</head>
<body>
<div class="info-text">
<img src="{% static "" %}{{ css_variant }}/{{ icon_prefix }}{{icon_sizes|last}}px.png" alt="">
{{ pwa_settings.offline_text|safe }}
{% if pwa_settings.offline_retry_button %}
<p class="retry">
<a href=".">{% trans "Retry" %}</a>
</p>
{% endif %}
</div>
</body>
</html>