summaryrefslogtreecommitdiff
path: root/lib/awprint/public/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/awprint/public/index.html')
-rw-r--r--lib/awprint/public/index.html85
1 files changed, 85 insertions, 0 deletions
diff --git a/lib/awprint/public/index.html b/lib/awprint/public/index.html
new file mode 100644
index 0000000..0f8052b
--- /dev/null
+++ b/lib/awprint/public/index.html
@@ -0,0 +1,85 @@
+<html>
+<head>
+<title>Hansel and Gretel Print Shop</title>
+<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=no'>
+<style>
+html,body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+}
+body {
+ font-family: 'Futura-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
+ font-size: 13px;
+ background: black;
+ color: white;
+}
+#react-root {
+ padding: 5px;
+}
+.print {
+ display: inline-block;
+ border: 1px solid #f00;
+ margin: 5px;
+ cursor: pointer;
+}
+.print img {
+ display: block;
+ width: 230px;
+ margin: 5px;
+}
+.print div {
+ margin: 5px;
+}
+.print.printed {
+ border: 1px solid #333;
+ cursor: default;
+}
+.modal {
+ position: fixed;
+ top: 100%;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 2;
+ background-color: rgba(0,0,0,0.7);
+ flex: 1;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ transition: opacity 250ms;
+ opacity: 0;
+ font-size: 24px;
+}
+.modal.visible {
+ top: 0%;
+ opacity: 1;
+}
+.modal .inner {
+ padding: 30px;
+ border-radius: 30px;
+ background: rgb(0,0,0);
+ text-align: center;
+ position: absolute;
+ top: 50%; left: 50%;
+ transform: translate3D(-50%, -50%, 0);
+}
+.modal img {
+ width: 70px;
+ height: 70px;
+ margin: 20px;
+}
+</style>
+</head>
+<body>
+<div id='react-root'></div>
+</body>
+
+<script src="/socket.io/socket.io.js"></script>
+<script>
+ var s = document.createElement('script');
+ s.setAttribute('src','public/bundle.js?' + Date.now());
+ document.body.appendChild(s)
+</script>
+</html>