Archived
Serve Bootstrap, MDI and Dropzone locally, self-contained 502 page
deploy / deploy (push) Successful in 9s
deploy / deploy (push) Successful in 9s
The print server has to work without internet. The stylesheets, scripts and icon fonts came from jsdelivr and unpkg, offline the pages had no styles, icons or drag and drop. They are now in public/vendor, the same versions. The 502 page of nginx has its styles and the icon inline, as the app's files are not there while it is down. The proxied brother_ql_web pages get the MDI stylesheet for the navbar's printer icon, which was missing there.
This commit is contained in:
1 parent
563772197d
commit
0f7c18141b
12 files changed
+64
-15
No files matched your search
+16
-10
@@ -5,19 +5,25 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="refresh" content="5">
|
||||
<title>Print server</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css" rel="stylesheet">
|
||||
<!-- Self-contained: nginx serves it while the app (and its /vendor files) is down -->
|
||||
<style>
|
||||
body { background: #212529; color: #adb5bd; }
|
||||
.mdi-printer-off { font-size: 4rem; color: #6c757d; }
|
||||
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
||||
background: #212529; color: #adb5bd; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; }
|
||||
svg { width: 4rem; height: 4rem; fill: #6c757d; }
|
||||
h1 { margin: 1rem 0 .5rem; font-weight: 500; color: #dee2e6; }
|
||||
p { color: #6c757d; }
|
||||
.spinner { width: 2rem; height: 2rem; margin: .5rem auto 0; border: .25em solid #6c757d; border-right-color: transparent;
|
||||
border-radius: 50%; animation: spin .75s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
</style>
|
||||
</head>
|
||||
<body class="d-flex align-items-center justify-content-center vh-100">
|
||||
<div class="text-center">
|
||||
<i class="mdi mdi-printer-off"></i>
|
||||
<h1 class="mt-3">Tlačiareň spí</h1>
|
||||
<p class="text-muted">Print server práve nabieha alebo sa reštartuje.<br>Stránka sa sama skúsi znova o chvíľu...</p>
|
||||
<div class="spinner-border text-secondary mt-2" role="status"></div>
|
||||
<body>
|
||||
<div>
|
||||
<!-- mdi-printer-off from Material Design Icons 7.4.47 -->
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6,3V4.18L8.82,7H18V3H6M2.28,3L1,4.27L4.75,8C3.19,8.15 2,9.44 2,11V17H6V21H17.73L19.73,23L21,21.72L2.28,3M9.82,8L18.82,17H22V11A3,3 0 0,0 19,8H9.82M19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10M8,14H10.73L15.73,19H8V14Z"/></svg>
|
||||
<h1>Tlačiareň spí</h1>
|
||||
<p>Print server práve nabieha alebo sa reštartuje.<br>Stránka sa sama skúsi znova o chvíľu...</p>
|
||||
<div class="spinner" role="status"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user