Files
haproxy-protection/haproxy/template/maintenance.html
Thomas Lynch 14922d7e2f Refactor fetching header for difference between applet and transaction mode.
Improve locale_strings map by re json.encode.
Add method to put translation jsons into txn var and read with a json_query fetch inside template files not served by a lua view e.g. maintenance page
2023-05-21 15:18:55 +10:00

30 lines
1.3 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>%[var(txn.lang_json),json_query($.Maintenance Mode)]</title>
<style type="text/css">
:root{--text-color:#c5c8c6;--bg-color:#1d1f21}
@media (prefers-color-scheme:light){:root{--text-color:#333;--bg-color:#fff}}
a,a:visited{color:var(--text-color)}
body,html{height:100%%}
body{display:flex;flex-direction:column;background-color:var(--bg-color);color:var(--text-color);font-family:Helvetica,Arial,sans-serif;max-width:60em;margin:0 auto;padding: 0 20px}
code{background-color:#dfdfdf30;border-radius:4px;padding:0 3px;color:#ff6590}
.pt{padding-top:30vh;display:flex;align-items:center;word-break:break-all;justify-content: center;flex-direction: column;}
img,h3{margin:0 0 5px 0;font-weight:normal}
footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-top:1px solid #80808040;padding:10px}
</style>
</head>
<body>
<h3 class="pt">
<img src="/.basedflare/pow-icon" width="64" height="64" alt=" ">
%[var(txn.lang_json),json_query($.Under maintenance\. Please try again soon!)]
</h3>
<footer>
<p>Node: <code>%[env(RAY_ID)]</code></p>
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
</footer>
</body>
</html>