Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
881 lines (754 loc) · 37.9 KB
/
Copy pathindex.html
File metadata and controls
881 lines (754 loc) · 37.9 KB
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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ivan Kuznetsov — design engineer</title>
<meta name="description" content="Selected work by Ivan Kuznetsov, design engineer: a client site running in production and eight games built from scratch, six of them playable right in the browser.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--paper: #0b0c0f;
--panel: #14161b;
--ink: #f2f1ee;
--ink-dim: #9b988f;
--ink-faint: #6b6862;
--hair: #23262d;
--rail-gap: 64px;
--panel-size: min(42vh, 396px);
--ease: cubic-bezier(.2, 0, 0, 1);
--ease-out: cubic-bezier(.05, .7, .1, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: 'Archivo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
font-size: 16px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
a { color: inherit; }
.mono {
font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--ink-faint);
}
/* ── колода разделов ─────────────────────────────────────────────────── */
.deck { position: fixed; inset: 0; will-change: transform; }
.cat {
position: relative;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
.cat__head {
position: absolute;
top: max(6vh, 54px);
left: 6vw;
display: flex;
align-items: baseline;
gap: 16px;
}
.cat__head h2 {
margin: 0;
font-size: clamp(30px, 5.2vh, 56px);
font-weight: 700;
letter-spacing: -.04em;
line-height: 1;
}
.cat__count { color: var(--ink-faint); }
/* ── лента ───────────────────────────────────────────────────────────── */
.rail {
display: flex;
align-items: center;
gap: var(--rail-gap);
padding: 0 6vw;
will-change: transform;
}
.panel {
position: relative;
flex: 0 0 auto;
background: var(--panel);
overflow: hidden;
}
.panel--work { width: var(--panel-size); height: var(--panel-size); }
/* сайт — в своей пропорции, кадр целиком */
.panel--site {
height: min(52vh, 500px);
aspect-ratio: 16 / 10;
width: auto;
}
.panel--site .panel__shot img { object-fit: contain; background: #08090b; }
.panel--site .panel__label { top: 0; left: 0; padding: 9px 14px; background: rgba(8,8,9,.72); text-shadow: none; }
.panel--site .panel__name { font-size: clamp(30px, 5vh, 52px); }
.panel__label {
position: absolute;
top: 16px;
left: 18px;
z-index: 3;
white-space: nowrap;
color: rgba(255,255,255,.78);
text-shadow: 0 1px 10px rgba(0,0,0,.6);
opacity: 0;
transition: opacity .4s var(--ease) .25s;
}
.panel.in .panel__label { opacity: 1; }
/* имя целиком внутри панели — ничего не режем */
.panel__name {
position: absolute;
left: 16px;
right: 16px;
bottom: 12px;
z-index: 2;
margin: 0;
font-size: clamp(30px, 5.6vh, 58px);
font-weight: 700;
letter-spacing: -.045em;
line-height: .84;
color: #fff;
text-shadow: 0 2px 24px rgba(0,0,0,.6);
pointer-events: none;
overflow: hidden;
will-change: transform;
}
.panel__name span {
display: inline-block;
transform: translateY(105%);
transition: transform .62s var(--ease-out) .1s;
}
.panel.in .panel__name span { transform: translateY(0); }
.panel__shot { position: absolute; inset: 0; overflow: hidden; }
.panel__shot::after {
content: "";
position: absolute;
inset: auto 0 0;
height: 46%;
background: linear-gradient(to top, rgba(6,6,8,.8), rgba(6,6,8,0));
pointer-events: none;
}
.panel__shot img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
will-change: transform;
animation: breathe 18s ease-in-out infinite alternate;
transition: filter .5s var(--ease);
}
@keyframes breathe {
from { transform: scale(1.02); }
to { transform: scale(1.08); }
}
.panel--work:hover .panel__shot img,
.panel--work:focus-within .panel__shot img { filter: saturate(1.12) contrast(1.04); }
.panel__meta {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 4;
padding: 92px 20px 20px;
background: linear-gradient(to top, rgba(6,6,8,.95) 34%, rgba(6,6,8,0));
color: #fff;
transform: translateY(14px);
opacity: 0;
transition: transform .34s var(--ease-out), opacity .28s var(--ease-out);
}
.panel--work:hover .panel__meta,
.panel--work:focus-within .panel__meta { transform: translateY(0); opacity: 1; }
.panel__meta p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: #c7c4bd; }
.blob {
position: absolute;
border-radius: 50%;
background: var(--accent, #00e5ff);
mix-blend-mode: screen;
opacity: .55;
z-index: 1;
animation: drift 24s ease-in-out infinite alternate;
pointer-events: none;
}
@keyframes drift {
from { transform: translate3d(0, 0, 0); }
to { transform: translate3d(-18px, 24px, 0); }
}
/* ── кнопки ──────────────────────────────────────────────────────────── */
.actions { display: flex; gap: 8px; align-items: center; }
.btn {
display: inline-flex;
align-items: center;
height: 33px;
padding: 0 15px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
border-radius: 999px;
transition: transform .16s var(--ease), background .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--play { background: var(--accent, #fff); color: #08080a; }
.btn--code { background: rgba(255,255,255,.14); color: #fff; }
.btn--code:hover { background: rgba(255,255,255,.24); }
.btn--soon { display: inline-flex; align-items: center; height: 33px; font-size: 12px; color: #8f8c86; }
:focus-visible { outline: 2px solid var(--accent, var(--ink)); outline-offset: 3px; border-radius: 4px; }
.panel--text :focus-visible { outline-color: var(--ink); }
/* ── текстовые панели ────────────────────────────────────────────────── */
.panel--text {
width: min(40vw, 500px);
height: min(52vh, 470px);
padding: 42px 38px 34px;
display: flex;
flex-direction: column;
}
.panel--text .panel__label { position: static; color: var(--ink-faint); text-shadow: none; margin-bottom: 18px; }
.intro__title {
margin: 0 0 18px;
font-size: clamp(26px, 3.9vh, 40px);
font-weight: 600;
letter-spacing: -.035em;
line-height: 1.08;
max-width: 17ch;
}
.intro__title em { font-style: normal; color: var(--ink-dim); }
.intro__text { margin: 0 0 14px; max-width: 44ch; font-size: clamp(13.5px, 1.8vh, 16px); color: var(--ink-dim); }
.intro__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; }
.intro__foot a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.intro__foot a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.contact-list { margin: 8px 0 0; padding: 0; list-style: none; }
.contact-list li {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 16px;
padding: 13px 0;
border-top: 1px solid var(--hair);
font-size: clamp(16px, 2.2vh, 20px);
font-weight: 500;
letter-spacing: -.02em;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--ink-dim); }
/* ── навигация ───────────────────────────────────────────────────────── */
.nav {
position: fixed;
left: 6vw;
bottom: max(6vh, 44px);
z-index: 6;
display: flex;
flex-direction: column;
gap: 9px;
}
.nav button {
appearance: none;
background: none;
border: 0;
padding: 0;
display: flex;
align-items: center;
gap: 9px;
cursor: pointer;
font: inherit;
color: var(--ink-faint);
transition: color .25s var(--ease);
}
.nav b { display: block; width: 16px; height: 2px; background: currentColor; transition: width .3s var(--ease-out); }
.nav button.on { color: var(--ink); }
.nav button.on b { width: 34px; }
.nav button:hover { color: var(--ink); }
/* стрелки — для тех, кто не станет угадывать жесты */
.arrow {
position: fixed;
z-index: 6;
width: 46px;
height: 46px;
display: grid;
place-items: center;
border: 1px solid var(--hair);
border-radius: 50%;
background: rgba(20,22,27,.72);
backdrop-filter: blur(6px);
color: var(--ink-dim);
cursor: pointer;
transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), opacity .25s var(--ease);
}
.arrow:hover { color: var(--ink); border-color: var(--ink-faint); }
.arrow:active { transform: scale(.94); }
.arrow[disabled] { opacity: .22; pointer-events: none; }
.arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.arrow--prev { left: max(2vw, 16px); top: 50%; margin-top: -23px; }
.arrow--next { right: max(2vw, 16px); top: 50%; margin-top: -23px; }
.arrow--up { right: 6vw; bottom: calc(max(6vh, 44px) + 56px); }
.arrow--down { right: 6vw; bottom: max(6vh, 44px); }
.steps {
position: fixed;
right: calc(6vw + 62px);
bottom: max(6vh, 44px);
z-index: 6;
display: flex;
align-items: center;
gap: 4px;
height: 46px;
}
.steps i {
display: block;
width: 12px;
height: 2px;
background: var(--ink-faint);
opacity: .45;
transition: opacity .25s var(--ease), width .3s var(--ease-out), background .25s var(--ease);
}
.steps i.on { opacity: 1; width: 26px; background: var(--ink); }
/* переключатель языка */
.lang {
position: fixed;
top: max(6vh, 54px);
right: 6vw;
z-index: 7;
display: flex;
gap: 2px;
}
.lang button {
appearance: none;
border: 0;
background: none;
padding: 6px 9px;
cursor: pointer;
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
letter-spacing: .1em;
color: var(--ink-faint);
transition: color .2s var(--ease);
}
.lang button.on { color: var(--ink); }
.lang button:hover { color: var(--ink); }
.aim {
position: fixed;
top: 0; left: 0;
width: 15px; height: 15px;
margin: -7.5px 0 0 -7.5px;
z-index: 8;
pointer-events: none;
opacity: .3;
transform: translate3d(50vw, 50vh, 0);
will-change: transform;
transition: opacity .3s var(--ease);
}
.aim.hot { opacity: .85; }
.aim::before, .aim::after { content: ""; position: absolute; background: var(--ink); }
.aim::before { left: 50%; top: 0; width: 1px; height: 100%; }
.aim::after { top: 50%; left: 0; height: 1px; width: 100%; }
.panel { opacity: 0; transform: translate3d(24px, 12px, 0) scale(.97); }
.panel.in {
opacity: 1;
transform: none;
transition: opacity .5s var(--ease-out), transform .58s var(--ease-out);
}
/* ── телефон ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
body { overflow: auto; }
.deck { position: static; transform: none !important; }
.cat { height: auto; padding: 54px 0 10px; }
.cat__head { position: static; padding: 0 18px 22px; }
.rail { flex-direction: column; align-items: stretch; padding: 0 18px; gap: 34px; transform: none !important; }
.panel--work, .panel--site { width: auto; height: auto; aspect-ratio: 1; }
.panel--site { aspect-ratio: 16 / 10; }
.panel--text { width: auto; height: auto; }
.panel__meta { opacity: 1; transform: none; }
.panel__name { top: 42px; bottom: auto; font-size: clamp(34px, 10vw, 64px); }
.panel__shot::after { height: 64%; }
.nav, .steps, .aim, .arrow { display: none; }
.lang { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
.panel { opacity: 1; transform: none; }
.panel__name span { transform: none; }
.panel__shot img, .blob { animation: none; }
}
</style>
</head>
<body>
<div class="aim" aria-hidden="true"></div>
<div class="lang" id="lang">
<button data-lang="en">EN</button>
<button data-lang="ru">RU</button>
</div>
<nav class="nav mono" id="nav" aria-label="Sections"></nav>
<button class="arrow arrow--prev" id="prev" aria-label="Previous work"><svg viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg></button>
<button class="arrow arrow--next" id="next" aria-label="Next work"><svg viewBox="0 0 24 24"><path d="M9 5l7 7-7 7"/></svg></button>
<button class="arrow arrow--up" id="up" aria-label="Previous section"><svg viewBox="0 0 24 24"><path d="M5 15l7-7 7 7"/></svg></button>
<button class="arrow arrow--down" id="down" aria-label="Next section"><svg viewBox="0 0 24 24"><path d="M5 9l7 7 7-7"/></svg></button>
<div class="steps" id="steps" aria-hidden="true"></div>
<div class="deck" id="deck">
<!-- ── вступление ────────────────────────────────────────────────────── -->
<section class="cat" data-name-en="Intro" data-name-ru="О себе">
<div class="cat__head"><h2 data-en="Intro" data-ru="О себе">Intro</h2></div>
<div class="rail">
<article class="panel panel--text">
<span class="panel__label mono" data-en="Ivan Kuznetsov · design engineer" data-ru="Иван Кузнецов · дизайн-инженер">Ivan Kuznetsov · design engineer</span>
<h1 class="intro__title"
data-en="I design things and <em>build them until they run.</em>"
data-ru="Проектирую вещи и <em>довожу их до работающих.</em>">I design things and <em>build them until they run.</em></h1>
<p class="intro__text"
data-en="A client site running in production, and eight games made from scratch — six of them start right here, in this browser, with nothing to install."
data-ru="Сайт заказчика в проде и восемь игр, собранных с нуля — шесть из них запускаются прямо здесь, в браузере, без установки.">A client site running in production, and eight games made from scratch — six of them start right here, in this browser, with nothing to install.</p>
<p class="intro__text"
data-en="I choose the architecture and product direction, use AI to accelerate implementation, then review, test and own what ships."
data-ru="Я выбираю архитектуру и направление продукта, ускоряю реализацию с помощью ИИ, затем проверяю код и отвечаю за результат.">I choose the architecture and product direction, use AI to accelerate implementation, then review, test and own what ships.</p>
<div class="intro__foot mono">
<a href="https://github.com/JohnInWork">github.com/JohnInWork</a>
<span>2026</span>
</div>
</article>
<article class="panel panel--text">
<span class="panel__label mono" data-en="Where to find me" data-ru="Где меня найти">Where to find me</span>
<ul class="contact-list">
<li><a href="https://github.com/JohnInWork">GitHub</a> <span class="mono">JohnInWork</span></li>
<li><a href="https://johninwork.github.io/voidle/">Voidle</a> <span class="mono" data-en="play" data-ru="играть">play</span></li>
<li><a href="https://magiaprostranstva.com">Magia Prostranstva</a> <span class="mono" data-en="live" data-ru="в проде">live</span></li>
</ul>
<p class="intro__text" style="margin-top:22px"
data-en="Eight games, one client site. All of it designed and shipped end to end."
data-ru="Восемь игр и один сайт заказчика. Всё спроектировано и доведено до конца.">Eight games, one client site. All of it designed and shipped end to end.</p>
</article>
</div>
</section>
<!-- ── сайты ─────────────────────────────────────────────────────────── -->
<section class="cat" data-name-en="Sites" data-name-ru="Сайты">
<div class="cat__head">
<h2 data-en="Sites" data-ru="Сайты">Sites</h2>
<span class="cat__count mono" data-en="client work · in production" data-ru="работа с заказчиком · в проде">client work · in production</span>
</div>
<div class="rail">
<article class="panel panel--work panel--site" style="--accent:#c98a5e">
<span class="panel__label mono">Astro · Vercel</span>
<div class="panel__shot"><img src="shots/architect.jpg" alt="Magia Prostranstva — landscape architecture studio site"></div>
<h3 class="panel__name"><span>Magia</span></h3>
<div class="panel__meta">
<p data-en="Site for a landscape architecture studio. The hero photo splits into vertical blades that flip and swap frames; cases are content collections, leads go straight to Telegram."
data-ru="Сайт студии ландшафтной архитектуры. Фото первого экрана делится на вертикальные планки, они переворачиваются и меняют кадры; кейсы — контент-коллекции, заявки уходят в Telegram.">Site for a landscape architecture studio. The hero photo splits into vertical blades that flip and swap frames; cases are content collections, leads go straight to Telegram.</p>
<div class="actions">
<a class="btn btn--play" href="https://magiaprostranstva.com" data-en="Open site" data-ru="Открыть сайт">Open site</a>
<span class="btn--soon mono" data-en="Source private" data-ru="Код закрыт">Source private</span>
</div>
</div>
</article>
</div>
</section>
<!-- ── игры ──────────────────────────────────────────────────────────── -->
<section class="cat" data-name-en="Games" data-name-ru="Игры">
<div class="cat__head">
<h2 data-en="Games" data-ru="Игры">Games</h2>
<span class="cat__count mono" data-en="eight · six playable" data-ru="восемь · шесть играбельных">eight · six playable</span>
</div>
<div class="rail">
<article class="panel panel--work" style="--accent:#b59a55">
<span class="panel__label mono">Canvas · JavaScript</span>
<div class="panel__shot"><img src="shots/little-islands.jpg" alt="DNG Codex — a pixel-art hero exploring a procedural dungeon"></div>
<h3 class="panel__name"><span>DNG Codex</span></h3>
<div class="panel__meta">
<p data-en="A mobile 2D roguelike: tap to explore procedural dungeons while the hero fights and gathers loot automatically. Equipment changes the paper-doll."
data-ru="Мобильная 2D-роглайк RPG: указываешь путь тапом, герой сам сражается и собирает лут. Экипировка меняет paper-doll персонажа.">A mobile 2D roguelike: tap to explore procedural dungeons while the hero fights and gathers loot automatically. Equipment changes the paper-doll.</p>
<div class="actions">
<a class="btn btn--play" href="https://johninwork.github.io/little-islands/" data-en="Play" data-ru="Играть">Play</a>
<a class="btn btn--code" href="https://github.com/JohnInWork/little-islands" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
</article>
<article class="panel panel--work" style="--accent:#00e5ff">
<span class="panel__label mono">Godot · WebAssembly</span>
<div class="panel__shot"><img src="shots/voidle.jpg" alt="Voidle — vertical space shooter"></div>
<h3 class="panel__name"><span>Voidle</span></h3>
<div class="panel__meta">
<p data-en="The ship fires on its own; you steer it clear of bullets. Five enemy behaviours, four bosses, upgrades between runs."
data-ru="Корабль стреляет сам, ты уводишь его от пуль. Пять повадок врагов, четыре босса, прокачка между забегами.">The ship fires on its own; you steer it clear of bullets. Five enemy behaviours, four bosses, upgrades between runs.</p>
<div class="actions">
<a class="btn btn--play" href="https://johninwork.github.io/voidle/" data-en="Play" data-ru="Играть">Play</a>
<a class="btn btn--code" href="https://github.com/JohnInWork/voidle" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
</article>
<article class="panel panel--work" style="--accent:#ff3b3b">
<span class="panel__label mono">Three.js · WebGL</span>
<div class="panel__shot"><img src="shots/superhot.jpg" alt="SlowmoFPS Runner — three lanes in a wireframe city"></div>
<h3 class="panel__name"><span>Slowmo</span></h3>
<div class="panel__meta">
<p data-en="An endless runner for phones: three lanes, a wireframe city, and time you can slow down when it gets tight."
data-ru="Бесконечный раннер для телефона: три полосы, каркасный город и время, которое можно замедлить, когда становится тесно.">An endless runner for phones: three lanes, a wireframe city, and time you can slow down when it gets tight.</p>
<div class="actions">
<a class="btn btn--play" href="https://johninwork.github.io/slowmo-fps/" data-en="Play" data-ru="Играть">Play</a>
<a class="btn btn--code" href="https://github.com/JohnInWork/slowmo-fps" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
</article>
<article class="panel panel--work" style="--accent:#ff7a1a">
<span class="panel__label mono">Canvas · Matter.js</span>
<div class="panel__shot"><img src="shots/crush.jpg" alt="Crush Factory — the crusher grinding material"></div>
<h3 class="panel__name"><span>Crush</span></h3>
<div class="panel__meta">
<p data-en="A clicker where the crusher really crushes — chunks fall through spinning drums on physics. Skins, upgrades, 10 languages."
data-ru="Кликер, где дробилка правда дробит: куски падают между барабанов по физике. Скины, апгрейды, 10 языков.">A clicker where the crusher really crushes — chunks fall through spinning drums on physics. Skins, upgrades, 10 languages.</p>
<div class="actions">
<a class="btn btn--play" href="https://johninwork.github.io/crush-factory/" data-en="Play" data-ru="Играть">Play</a>
<a class="btn btn--code" href="https://github.com/JohnInWork/crush-factory" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
<div class="blob" style="--accent:#ff7a1a; width:24vh; height:24vh; right:-11vh; top:-8vh"></div>
</article>
<article class="panel panel--work" style="--accent:#c9dd00">
<span class="panel__label mono" data-en="Canvas · one HTML file" data-ru="Canvas · один HTML-файл">Canvas · one HTML file</span>
<div class="panel__shot"><img src="shots/hex.jpg" alt="Hex Quest — a hex map under fog"></div>
<h3 class="panel__name"><span>Hex</span></h3>
<div class="panel__meta">
<p data-en="A map under fog: each click reveals a tile and plays out what sits under it. Inventory, gear, 15 characters."
data-ru="Карта под туманом: клик открывает клетку и сразу разыгрывает, что под ней. Инвентарь, снаряжение, 15 персонажей.">A map under fog: each click reveals a tile and plays out what sits under it. Inventory, gear, 15 characters.</p>
<div class="actions">
<a class="btn btn--play" href="https://johninwork.github.io/hex-quest/" data-en="Play" data-ru="Играть">Play</a>
<a class="btn btn--code" href="https://github.com/JohnInWork/hex-quest" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
<div class="blob" style="--accent:#c9dd00; width:20vh; height:20vh; left:-9vh; bottom:-7vh"></div>
</article>
<article class="panel panel--work" style="--accent:#3bd16f">
<span class="panel__label mono" data-en="Canvas · vanilla JS" data-ru="Canvas · чистый JS">Canvas · vanilla JS</span>
<div class="panel__shot"><img src="shots/flow.jpg" alt="Flow Connect — a shaped level with coloured lines"></div>
<h3 class="panel__name"><span>Flow</span></h3>
<div class="panel__meta">
<p data-en="Connect matching dots without crossing pipes. 271 levels: shaped boards, bridges, a timed mode."
data-ru="Соединяешь точки одного цвета, не пересекая трубы. 271 уровень: фигурные поля, мосты, режим на время.">Connect matching dots without crossing pipes. 271 levels: shaped boards, bridges, a timed mode.</p>
<div class="actions">
<a class="btn btn--play" href="https://johninwork.github.io/flow-connect/" data-en="Play" data-ru="Играть">Play</a>
<a class="btn btn--code" href="https://github.com/JohnInWork/flow-connect" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
</article>
<article class="panel panel--work" style="--accent:#59b0ea">
<span class="panel__label mono">Node.js · Socket.IO</span>
<div class="panel__shot"><img src="shots/mmorpg.jpg" alt="Browser MMORPG — isometric world"></div>
<h3 class="panel__name"><span>MMO</span></h3>
<div class="panel__meta">
<p data-en="An online world with a map editor built in: paint the terrain, assemble mobs and NPCs, changes go live without a restart."
data-ru="Онлайн-мир со своим редактором карт: рисуешь местность кистью, собираешь мобов и НПС, правки уходят в игру без перезапуска.">An online world with a map editor built in: paint the terrain, assemble mobs and NPCs, changes go live without a restart.</p>
<div class="actions">
<span class="btn--soon mono" data-en="Needs a server" data-ru="Нужен сервер">Needs a server</span>
<a class="btn btn--code" href="https://github.com/JohnInWork/browser-mmorpg" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
<div class="blob" style="--accent:#59b0ea; width:22vh; height:22vh; right:-10vh; bottom:-9vh"></div>
</article>
<article class="panel panel--work" style="--accent:#c9803f">
<span class="panel__label mono">Godot 4 · GDScript</span>
<div class="panel__shot"><img src="shots/godot.jpg" alt="Dungeon Crawler — pseudo-3D maze"></div>
<h3 class="panel__name"><span>Dungeon</span></h3>
<div class="panel__meta">
<p data-en="A first-person maze drawn by raycasting, wrapped in a pixel-art handheld. Combat, stats, spells, merchants."
data-ru="Лабиринт от первого лица, нарисованный рейкастингом, внутри пиксельной консоли. Бой, характеристики, заклинания, торговцы.">A first-person maze drawn by raycasting, wrapped in a pixel-art handheld. Combat, stats, spells, merchants.</p>
<div class="actions">
<span class="btn--soon mono" data-en="Screenshots only" data-ru="Только кадры">Screenshots only</span>
<a class="btn btn--code" href="https://github.com/JohnInWork/godot-dungeon-crawler" data-en="Code" data-ru="Код">Code</a>
</div>
</div>
</article>
</div>
</section>
</div>
<script>
(() => {
const deck = document.getElementById('deck');
const nav = document.getElementById('nav');
const steps = document.getElementById('steps');
const cats = [...deck.querySelectorAll('.cat')];
const calm = matchMedia('(prefers-reduced-motion: reduce)');
const wide = matchMedia('(min-width: 861px)');
const btnPrev = document.getElementById('prev');
const btnNext = document.getElementById('next');
const btnUp = document.getElementById('up');
const btnDown = document.getElementById('down');
const state = cats.map(cat => ({
cat,
rail: cat.querySelector('.rail'),
panels: [...cat.querySelectorAll('.panel')],
x: 0, target: 0, max: 0,
}));
let index = 0, deckY = 0, deckTarget = 0, raf = 0;
// ── язык ───────────────────────────────────────────────────────────────
const langBox = document.getElementById('lang');
let lang = localStorage.getItem('lang') || ((navigator.language || '').startsWith('ru') ? 'ru' : 'en');
if (!['en', 'ru'].includes(lang)) lang = 'en';
function applyLang(next) {
lang = next;
localStorage.setItem('lang', next);
document.documentElement.lang = next;
document.querySelectorAll('[data-en]').forEach(el => {
const text = el.getAttribute('data-' + next);
if (text != null) el.innerHTML = text;
});
[...langBox.children].forEach(b => b.classList.toggle('on', b.dataset.lang === next));
navBtns.forEach((b, i) => b.querySelector('span').textContent = cats[i].getAttribute('data-name-' + next));
measure();
}
[...langBox.children].forEach(b => b.addEventListener('click', () => applyLang(b.dataset.lang)));
// ── список разделов ────────────────────────────────────────────────────
cats.forEach((cat, i) => {
const b = document.createElement('button');
b.innerHTML = '<b></b><span>' + cat.dataset.nameEn + '</span>';
b.addEventListener('click', () => go(i));
nav.appendChild(b);
});
const navBtns = [...nav.children];
function measure() {
if (!wide.matches) return;
state.forEach(s => {
s.max = Math.max(0, s.rail.scrollWidth - innerWidth);
s.x = s.target = Math.min(s.x, s.max);
});
deckTarget = deckY = -index * innerHeight;
paint(true);
}
function go(i) {
index = Math.max(0, Math.min(i, cats.length - 1));
deckTarget = -index * innerHeight;
navBtns.forEach((b, n) => b.classList.toggle('on', n === index));
buildSteps();
kick();
}
function buildSteps() {
steps.innerHTML = '';
state[index].panels.forEach(() => steps.appendChild(document.createElement('i')));
}
function slide(dx) {
const s = state[index];
s.target = Math.max(0, Math.min(s.target + dx, s.max));
kick();
}
function kick() { if (!raf) raf = requestAnimationFrame(tick); }
function tick() {
const k = calm.matches ? 1 : 0.12;
let moving = false;
const dy = deckTarget - deckY;
if (Math.abs(dy) > 0.3) { deckY += dy * k; moving = true; } else deckY = deckTarget;
state.forEach(s => {
const dx = s.target - s.x;
if (Math.abs(dx) > 0.3) { s.x += dx * k; moving = true; } else s.x = s.target;
});
paint();
raf = moving ? requestAnimationFrame(tick) : 0;
}
function paint(instant) {
deck.style.transform = `translate3d(0, ${deckY}px, 0)`;
state.forEach(s => {
s.rail.style.transform = `translate3d(${-s.x}px, 0, 0)`;
s.panels.forEach(p => {
const img = p.querySelector('.panel__shot img');
if (img) img.style.transform = `translate3d(${s.x * 0.04}px, 0, 0)`;
});
});
const s = state[index];
const p = s.max ? s.x / s.max : 0;
const active = Math.round(p * (steps.children.length - 1));
[...steps.children].forEach((t, i) => t.classList.toggle('on', i === active));
// стрелки гаснут там, где ехать больше некуда
btnPrev.disabled = s.x <= 1;
btnNext.disabled = s.x >= s.max - 1;
btnUp.disabled = index === 0;
btnDown.disabled = index === cats.length - 1;
if (!instant) aimKick();
}
const step = () => innerWidth * 0.38;
btnPrev.addEventListener('click', () => slide(-step()));
btnNext.addEventListener('click', () => slide(step()));
btnUp.addEventListener('click', () => go(index - 1));
btnDown.addEventListener('click', () => go(index + 1));
// ── ввод ───────────────────────────────────────────────────────────────
let wheelLock = 0;
addEventListener('wheel', e => {
if (!wide.matches) return;
e.preventDefault();
if (Math.abs(e.deltaX) > Math.abs(e.deltaY)) { slide(e.deltaX * 1.1); return; }
const now = performance.now();
if (now < wheelLock || Math.abs(e.deltaY) < 8) return;
wheelLock = now + 520;
go(index + Math.sign(e.deltaY));
}, { passive: false });
addEventListener('keydown', e => {
if (!wide.matches) return;
if (e.key === 'ArrowRight') { slide(step()); e.preventDefault(); }
else if (e.key === 'ArrowLeft') { slide(-step()); e.preventDefault(); }
else if (e.key === 'ArrowDown' || e.key === 'PageDown') { go(index + 1); e.preventDefault(); }
else if (e.key === 'ArrowUp' || e.key === 'PageUp') { go(index - 1); e.preventDefault(); }
else if (e.key === 'Home') { go(0); e.preventDefault(); }
});
let drag = null;
deck.addEventListener('pointerdown', e => {
if (!wide.matches || e.target.closest('a, button')) return;
drag = { x: e.clientX };
});
addEventListener('pointermove', e => {
if (!drag) return;
const dx = e.clientX - drag.x;
if (Math.abs(dx) > 2) { slide(-dx); drag.x = e.clientX; }
});
addEventListener('pointerup', () => { drag = null; });
let touch = null;
addEventListener('touchstart', e => {
if (!wide.matches) return;
touch = { x: e.touches[0].clientX, y: e.touches[0].clientY, axis: null };
}, { passive: true });
addEventListener('touchmove', e => {
if (!touch || !wide.matches) return;
const dx = e.touches[0].clientX - touch.x;
const dy = e.touches[0].clientY - touch.y;
if (!touch.axis && Math.hypot(dx, dy) > 12) touch.axis = Math.abs(dx) > Math.abs(dy) ? 'x' : 'y';
if (touch.axis === 'x') { slide(-dx); touch.x = e.touches[0].clientX; }
else if (touch.axis === 'y' && Math.abs(dy) > 60) { go(index + (dy < 0 ? 1 : -1)); touch = null; }
}, { passive: true });
addEventListener('touchend', () => { touch = null; }, { passive: true });
// ── появление панелей ─────────────────────────────────────────────────
const io = new IntersectionObserver(entries => {
entries.forEach((e, i) => {
if (!e.isIntersecting) return;
setTimeout(() => e.target.classList.add('in'), i * 55);
io.unobserve(e.target);
});
}, { rootMargin: '0px -6% 0px -6%', threshold: 0.05 });
state.forEach(s => s.panels.forEach(p => io.observe(p)));
// ── прицел ────────────────────────────────────────────────────────────
const aim = document.querySelector('.aim');
let ax = innerWidth / 2, ay = innerHeight / 2, mx = ax, my = ay, prevX = 0, speed = 0, aimRaf = 0;
function aimTick() {
ax += (mx - ax) * 0.18;
ay += (my - ay) * 0.18;
speed += (Math.abs(state[index].x - prevX) - speed) * 0.2;
prevX = state[index].x;
aim.style.transform = `translate3d(${ax}px, ${ay}px, 0) scaleX(${1 + Math.min(speed * 0.03, 1.5)})`;
aimRaf = (Math.abs(mx - ax) > 0.4 || speed > 0.2) ? requestAnimationFrame(aimTick) : 0;
}
function aimKick() { if (!calm.matches && !aimRaf) aimRaf = requestAnimationFrame(aimTick); }
addEventListener('pointermove', e => { mx = e.clientX; my = e.clientY; aimKick(); }, { passive: true });
deck.addEventListener('pointerover', e => aim.classList.toggle('hot', !!e.target.closest('.panel--work')));
deck.addEventListener('focusin', e => {
if (!wide.matches) return;
const cat = e.target.closest('.cat');
const panel = e.target.closest('.panel');
if (cat) { const i = cats.indexOf(cat); if (i !== index) go(i); }
if (panel) {
const s = state[index];
s.target = Math.max(0, Math.min(panel.offsetLeft - innerWidth * 0.2, s.max));
kick();
}
});
addEventListener('resize', measure);
applyLang(lang);
go(0);
measure();
})();
</script>
</body>
</html>