summaryrefslogtreecommitdiff
path: root/lib/awprint/public/index.html
blob: 0f8052bdf4087386a8bb9a2cf9a3da143bb83919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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>