-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (155 loc) · 5.9 KB
/
index.html
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<html>
<head>
<title>Order Splitter</title>
<meta charset="UTF-8">
<!-- Chrome for Android theme color -->
<meta name="theme-color" content="#11923B">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="PSK">
<link rel="icon" sizes="192x192" href="ordersplitter192.png" asnyc>
<!-- chrome favicon -->
<link rel="icon" sizes="16x16" href="ordersplitter16.png">
<!-- firefox favicon -->
<link rel="icon" sizes="32x32" href="ordersplitter32.png">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Order Splitter">
<link rel="apple-touch-icon" href="ordersplitter152.png" asnyc>
<!-- Tile color for Win8 -->
<meta name="msapplication-TileColor" content="#3372DF">
<!-- Tile icon for Win8 (144x144) -->
<meta name="msapplication-TileImage" content="ordersplitter144.png" async>
<!--
<script>
if('customElements' in window) {
document.getElementById('webcomponent-polyfill').remove();
} else {
console.warn("polyfilling window.customElements");
}
</script>
<script src="./node_modules/webcomponentsjs/custom-elements-es5-adapter.js"></script>
<script src="./node_modules/webcomponentsjs/webcomponents-lite.js" id="webcomponent-polyfill"></script>
-->
<script src="sw-install.js"></script>
<link rel="manifest" href="manifest.json">
<script src="elements/order-input.js" type="module"></script>
<script src="elements/order-split-results-table.js" type="module"></script>
<script src="elements/github-link.js" type="module"></script>
<style>
body {
background-color: #eaeaea;
font-family: 'Arial', sans-serif;
font-size: 16px;
}
.wrapper {
display: grid;
grid-gap: 10px;
/*grid-template-columns: 500px;*/
grid-template-columns: repeat(auto-fit, minmax(200px, 550px));
justify-content: center;
}
.left-panel {
padding: 30px;
background-color: white;
}
.right-panel {
padding: 40px;
background-color: #b8232e;
color: white;
}
h1, h3 {
margin-top: 0;
font-family: 'Arial Black', 'Arial', sans-serif;
}
.logo-wrapper {
text-align: center;
margin-bottom: 30px;
}
.logo-wrapper img {
width: 70px;
height: 70px;
}
.logo-wrapper h1 {
margin-bottom: 0;
}
.version {
opacity: 0.7;
}
.version:before {
content: 'v';
}
.number {
background-color: rgba(0, 0, 0, 0.12);
display: inline-block;
position: relative;
border-radius: 110px;
text-align: center;
width: 55px;
height: 55px;
margin-right: 10px;
}
.number h3 {
margin: 0;
display: inline;
position: relative;
top: 5px;
font-size: 30px;
margin-bottom: 15px;
}
/* .step:not(:first-of-type) { */
/* margin-bottom: 20px; */
/* } */
.step {
margin-bottom: 20px;
}
.step-text {
font-size: 20px;
}
</style>
</head>
<body>
<div align="right" id="sha">INSERT_SHA</div>
<div align="right">INSERT_BUILD_TIME</div>
<script>
// this is to help with debugging any SW caching issues if they appear
var scriptSha = 'INSERT_SHA';
var htmlSha = document.querySelector('#sha').innerText;
console.debug(`script version: ${scriptSha}`);
console.debug(`html version: ${htmlSha}`);
if (scriptSha !== htmlSha) {
alert('Whoops. The cached files on your machine are out of sync with each other. That\'s our bad. Please hard-refresh the page?');
}
</script>
<order-split-results-table id="table"></order-split-results-table>
<div class="wrapper">
<div class="left-panel">
<div class="logo-wrapper">
<img src="images/ordersplitter-logo.png" alt="Order Splitter">
<h1>Order Splitter</h1>
<span class="version">INSERT_VERSION</span>
</div>
<order-input></order-input>
</div>
<div class="right-panel">
<div class="step">
<h1>How it Works</h1>
<span class="number"><h3>1</h3></span>
<span class="step-text">Copy OrderUp summary page (⌘-A ⌘-C)</span>
</div>
<div class="step">
<span class="number"><h3>2</h3></span>
<span class="step-text">Paste here</span>
</div>
<div class="step">
<span class="number"><h3>3</h3></span>
<span class="step-text">Share the results</span>
</div>
</div>
</div>
<center>
<github-link></github-link
</center>
</body>
</html>