-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
310 lines (291 loc) · 11.2 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE html>
<html lang="en" class="notranslate" translate="no">
<head>
<meta charset="UTF-8" />
<link rel="canonical" href="https://matchcity.dennissmuda.com/" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<title>Match colors and keep your board from filling up!</title>
<meta
name="description"
content="A chill tile-matching game built by Dennis Smuda. Try to keep your board from filling up and combine tiles of the same colors! Fully customizable theming!"
/>
<meta name="keywords" content="web game tilematching" />
<meta name="author" content="Dennis Smuda" />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="manifest" href="/manifest.json" />
<script>
navigator.serviceWorker.register("./service-worker.js");
</script>
<meta
name="twitter:image:src"
content="https://repository-images.githubusercontent.com/69121174/21e351a3-48dc-4771-97e3-212955f71d2b"
/>
<meta name="twitter:site" content="@dennissmuda" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Match City!" />
<meta
name="twitter:description"
content="A Tile-matching game written for Web. Vite, Typescript and StateManagement included! Supports multiple color schemes and style settings! - DennisSmuda/match-city: Tile-matching game written for Web. ..."
/>
<meta
property="og:image"
content="https://repository-images.githubusercontent.com/69121174/21e351a3-48dc-4771-97e3-212955f71d2b"
/>
<meta
property="og:image:alt"
content="Tile-matching game written for Web. Vite, Typescript and StateManagement included! Supports multiple color schemes and style settings! - DennisSmuda/match-city: Tile-matching game written for Web. ..."
/>
<meta property="og:site_name" content="Match City" />
<meta property="og:type" content="game" />
<meta
property="og:title"
content="Match City - a Tile-matching game written for Web. Vite, Typescript and StateManagement included! Supports multiple color schemes and style settings!"
/>
<meta property="og:url" content="https://matchcity.dennissmuda.com/" />
<meta
property="og:description"
content="Tile-matching game written for Web. Vite, Typescript and StateManagement included! Supports multiple color schemes and style settings! - DennisSmuda/match-city: Tile-matching game written for Web. ..."
/>
</head>
<body>
<h1 class="sr-only">Match City - a game by Dennis Smuda</h1>
<div id="game-header">
<div id="next-tile-container">
<div data-type="primary" class="tile next"></div>
</div>
<div id="game-message"> </div>
</div>
<button id="audio-toggle">
<svg
id="enable-audio"
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-ear"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M6 10a7 7 0 1 1 13 3.6a10 10 0 0 1 -2 2a8 8 0 0 0 -2 3a4.5 4.5 0 0 1 -6.8 1.4"
/>
<path d="M10 10a3 3 0 1 1 5 2.2" />
</svg>
<span class="sr-only">Toggle Sound</span>
<svg
id="disable-audio"
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-ear-off"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M6 10c0 -1.146 .277 -2.245 .78 -3.219m1.792 -2.208a7 7 0 0 1 10.428 9.027a10 10 0 0 1 -.633 .762m-2.045 1.96a8 8 0 0 0 -1.322 2.278a4.5 4.5 0 0 1 -6.8 1.4"
/>
<path d="M11.42 7.414a3 3 0 0 1 4.131 4.13" />
<line x1="3" y1="3" x2="21" y2="21" />
</svg>
</button>
<button id="toggle-settings-button">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-tool"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"
/>
</svg>
<span class="sr-only">Toggle Settings</span>
</button>
<div id="game-grid" class="grid">
<div class="cell" data-grid-pos="0:0"></div>
<div class="cell" data-grid-pos="1:0"></div>
<div class="cell" data-grid-pos="2:0"></div>
<div class="cell" data-grid-pos="3:0"></div>
<div class="cell" data-grid-pos="4:0"></div>
<div class="cell" data-grid-pos="0:1"></div>
<div class="cell" data-grid-pos="1:1"></div>
<div class="cell" data-grid-pos="2:1"></div>
<div class="cell" data-grid-pos="3:1"></div>
<div class="cell" data-grid-pos="4:1"></div>
<div class="cell" data-grid-pos="0:2"></div>
<div class="cell" data-grid-pos="1:2"></div>
<div class="cell" data-grid-pos="2:2"></div>
<div class="cell" data-grid-pos="3:2"></div>
<div class="cell" data-grid-pos="4:2"></div>
<div class="cell" data-grid-pos="0:3"></div>
<div class="cell" data-grid-pos="1:3"></div>
<div class="cell" data-grid-pos="2:3"></div>
<div class="cell" data-grid-pos="3:3"></div>
<div class="cell" data-grid-pos="4:3"></div>
<div class="cell" data-grid-pos="0:4"></div>
<div class="cell" data-grid-pos="1:4"></div>
<div class="cell" data-grid-pos="2:4"></div>
<div class="cell" data-grid-pos="3:4"></div>
<div class="cell" data-grid-pos="4:4"></div>
</div>
<div class="game-footer">
<!-- <div>
</div> -->
<div>
<span class="sr-only">score:</span>
<div id="score" class="score">0</div>
</div>
</div>
<!-- Themeing -->
<div id="settings">
<h2>Settings</h2>
<div id="theme-settings">
<button class="theme-toggle" id="toggle-borders-button">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-shadow"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<circle cx="12" cy="12" r="9" />
<path d="M13 12h5" />
<path d="M13 15h4" />
<path d="M13 18h1" />
<path d="M13 9h4" />
<path d="M13 6h1" />
</svg>
<span class="sr-only">toggle borders</span>
</button>
<button class="theme-toggle" id="toggle-border-radius-button">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-circle-square"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<circle cx="9.5" cy="9.5" r="6.5" />
<rect x="10" y="10" width="11" height="11" rx="2" />
</svg>
<span class="sr-only">toggle borders</span>
</button>
<button class="theme-toggle" id="toggle-tile-size-button">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-dimensions"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M3 5h11" />
<path d="M12 7l2 -2l-2 -2" />
<path d="M5 3l-2 2l2 2" />
<path d="M19 10v11" />
<path d="M17 19l2 2l2 -2" />
<path d="M21 12l-2 -2l-2 2" />
<rect x="3" y="10" width="11" height="11" rx="2" />
</svg>
<span class="sr-only">toggle cell size</span>
</button>
<button class="theme-toggle" id="toggle-gap-size-button">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-space"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M4 10v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1 -1v-3" />
</svg>
<span class="sr-only">toggle gap size</span>
</button>
</div>
<div id="demo-container">
<div id="demo-game-grid" class="demo-grid-row">
<div class="cell demo">
<div class="tile demo" data-type="primary"></div>
</div>
<div class="cell demo">
<div class="tile demo" data-type="secondary"></div>
</div>
<div class="cell demo">
<div class="tile demo" data-type="tertiary"></div>
</div>
</div>
</div>
<div id="theme-switcher"></div>
<a
href="https://github.com/DennisSmuda/match-city"
target="_blank"
rel="noopener noreferrer"
id="github-badge"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-brand-github"
width="44"
height="44"
viewBox="0 0 24 24"
stroke-width="1"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"
/>
</svg>
<span class="sr-only">Source code on github</span>
</a>
</div>
<!-- Game Over Modal -->
<div id="game-over">
<h1>Game Over</h1>
<span>Your final score is:</span>
<span id="final-score" class="score">0</span>
<div class="personal-best">
<span id="new-best-score">
your new <strong>personal best</strong>!
<span> (previously 12)</span>
</span>
<span id="old-best-score">
your personal best is
<span class="score">123</span>
</span>
</div>
<button id="restart-game-button">Restart</button>
</div>
<!-- Include Script -->
<script type="module" src="/src/main.ts"></script>
</body>
</html>