-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
421 lines (416 loc) · 17.6 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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>flagwall</title>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://isqua.github.io/flagwall/" />
<meta property="og:title" content="Showcase your journey • Flagwall" />
<meta
property="og:description"
content="Pick the countries you’ve visited and seamlessly create your personalized wallpaper."
/>
<meta property="og:image" content="/flagwall/flagwall.910d720c.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
</head>
<body>
<main class="landing">
<header class="hero">
<h1 class="hero-title">Showcase your journey</h1>
<p>
Pick the countries you’ve visited and seamlessly create your
personalized wallpaper.
</p>
<p>
Download your customized wallpapers and share them with
friends and family to showcase your unique travel
achievements.
</p>
</header>
<div class="demo">
<svg
class="demo-pic"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1419 2796"
width="320"
>
<image
xlink:href="./background.png"
x="100"
y="100"
width="1219"
height="2596"
clip-path="url(#clip)"
/>
<image
xlink:href="./phone.png"
x="0"
y="0"
width="1419"
height="2796"
/>
<text
x="709"
y="800"
text-anchor="middle"
fill="#fff"
font-size="360"
font-family="inherit"
font-weight="bold"
>
09:41
</text>
<defs>
<rect
id="rect"
x="100"
y="100"
width="1219"
height="2596"
rx="120"
ry="120"
/>
<clipPath id="clip">
<use xlink:href="#rect" />
</clipPath>
</defs>
</svg>
</div>
<button type="button" class="start to-app">Start crafting</button>
</main>
<div class="app">
<button
type="button"
aria-controls="sidebar"
aria-expanded="false"
aria-label="Open settings"
aria-haspopup="true"
class="sidebar-control"
>
<div class="burger">
<span class="burger-line"></span>
<span class="burger-line"></span>
<span class="burger-line"></span>
</div>
</button>
<aside id="sidebar" class="sidebar hidden">
<div role="tablist" class="sidebar-tablist">
<button
class="sidebar-tab"
id="countries-tab"
type="button"
role="tab"
aria-selected="true"
aria-controls="countries"
>
<svg
class="sidebar-icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<use xlink:href="#countries-icon" />
</svg>
</button>
<button
class="sidebar-tab"
id="theme-tab"
type="button"
role="tab"
aria-selected="false"
aria-controls="theme"
tabindex="-1"
>
<svg
class="sidebar-icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<use xlink:href="#theme-icon" />
</svg>
</button>
<button
class="sidebar-tab"
id="help-tab"
type="button"
role="tab"
aria-selected="false"
aria-controls="help"
tabindex="-1"
>
<svg
class="help-icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<use xlink:href="#help-icon" />
</svg>
</button>
</div>
<form action="#" class="sidebar-content form">
<div
id="countries"
role="tabpanel"
tabindex="0"
aria-labelledby="countries-tab"
class="sidebar-tabpanel with-header"
>
<div class="sidebar-sticky-header">
<input
type="search"
id="countries-search"
name="countries-search"
class="countries-search"
placeholder="Type to filter"
/>
</div>
<ul class="countries-list"></ul>
</div>
<div
id="theme"
role="tabpanel"
tabindex="0"
aria-labelledby="theme-tab"
class="sidebar-tabpanel sidebar-tabpanel-hidden"
>
<ul class="colors-list"></ul>
<button type="button" class="button add-color">
<span class="add-color-icon">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="3"
stroke="currentColor"
class="size-6"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 4.5v15m7.5-7.5h-15"
/>
</svg>
</span>
<span class="add-color-text">Add color</span>
</button>
</div>
<div
id="help"
role="tabpanel"
tabindex="0"
aria-labelledby="help-tab"
class="sidebar-tabpanel sidebar-tabpanel-hidden"
>
<dl class="faq">
<dt class="faq-question">
How to download the image on a smartphone?
</dt>
<dd class="faq-answer">
Tap and hold on the image for a second or two
until a menu appears, then select "Download
image" or "Save image".
</dd>
<dt class="faq-question">
What to do with the downloaded image?
</dt>
<dd class="faq-answer">
We made this app to set the wallpaper for a
phone lock screen, but you can use the image as
you want.
</dd>
<dt class="faq-question">
What is the resolution of the picture?
</dt>
<dd class="faq-answer">
The same as your device screen.
</dd>
<dt class="faq-question">
How to share my flag set with my friends?
</dt>
<dd class="faq-answer">
Just share the address of the current page as
you usually share with friends. When you add a
country, we update the page address.
</dd>
<dt class="faq-question">
Where is my data stored? Is it private?
</dt>
<dd class="faq-answer">
We do not store any data on our servers. All
data is stored in your browser (localStorage).
</dd>
<dt class="faq-question">Who made this app?</dt>
<dd class="faq-answer">
It's me, Alex, with the help of
<a
target="_blank"
href="https://github.com/isqua/flagwall/graphs/contributors"
>contributors</a
>. Check out my other
<a
target="_blank"
href="https://isqua.github.io"
>projects</a
>
and my
<a
target="_blank"
href="https://isqua.ru/en/blog/"
>blog</a
>.
</dd>
</dl>
</div>
</form>
</aside>
<div class="workbench">
<canvas class="canvas"></canvas>
<div class="device">
<img alt="flag wall" class="device-screen" />
</div>
</div>
<footer class="footer">
<div class="footer-inner">
<p>Get $3 off your first travel eSIM</p>
<p>
Use code <b>ALEXEY2076</b> when you sign up or apply it
at checkout.
<a target="_blank" href="https://ref.airalo.com/Qjg3"
>https://ref.airalo.com/Qjg3</a
>
</p>
</div>
</footer>
<dialog class="add-color-dialog">
<h1 class="add-color-dialog-title">Add Color</h1>
<form name="new-color" method="dialog">
<input name="color" type="color" />
<div class="new-color-actions">
<button
class="button new-color-button"
type="submit"
name="add"
>
Add
</button>
<button
class="button new-color-button"
type="button"
name="cancel"
>
Cancel
</button>
</div>
</form>
</dialog>
</div>
<template id="country">
<li class="country-item">
<input
type="checkbox"
name="country"
class="country-checkbox visually-hidden"
/>
<label class="button country-label">
<img
class="country-flag"
src=""
width="24px"
height="18px"
/>
<span class="country-name"></span>
</label>
</li>
</template>
<template id="color">
<li class="color-item">
<input
type="radio"
name="background"
class="color-radio visually-hidden"
/>
<label class="button color-label">
<span class="color-flag"></span>
<span class="color-name"></span>
</label>
</li>
</template>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
<symbol id="countries-icon" viewBox="0 0 24 24">
<path
fill="none"
stroke-width="1.5"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"
/>
</symbol>
<symbol id="theme-icon" viewBox="0 0 24 24">
<path
fill="none"
stroke-width="1.5"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
d="M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"
/>
</symbol>
<symbol id="help-icon" viewBox="0 0 24 24">
<path
fill="none"
stroke-width="1.5"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"
/>
</symbol>
</svg>
<script type="module" src="/src/main.ts"></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (m, e, t, r, i, k, a) {
m[i] =
m[i] ||
function () {
(m[i].a = m[i].a || []).push(arguments);
};
m[i].l = 1 * new Date();
for (var j = 0; j < document.scripts.length; j++) {
if (document.scripts[j].src === r) {
return;
}
}
(k = e.createElement(t)),
(a = e.getElementsByTagName(t)[0]),
(k.async = 1),
(k.src = r),
a.parentNode.insertBefore(k, a);
})(
window,
document,
"script",
"https://mc.yandex.ru/metrika/tag.js",
"ym",
);
ym(28698696, "init", {
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
});
</script>
<noscript
><div>
<img
src="https://mc.yandex.ru/watch/28698696"
style="position: absolute; left: -9999px"
alt=""
/></div
></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>