-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstalker-single-page.haml
160 lines (153 loc) · 6.29 KB
/
stalker-single-page.haml
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
!!!
%html
%head
%title STALKER:ShoC autogenerated maps
-#%script( async src="https://www.googletagmanager.com/gtag/js?id=UA-109200828-1" )
-#%script
-# window.dataLayer = window.dataLayer || [];
-# function gtag(){dataLayer.push(arguments);}
-# gtag("js", new Date());
-# gtag("config", "UA-109200828-1");
:css
html, body { height: 100% }
h2 { grid-column: 1/5 }
grid img { width: 100%; height: auto }
grid {
display: grid; width: 100%; padding: 1em; row-gap: 0.5em; column-gap: 0.5em;
grid-template-rows: auto auto 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr;
}
grid > div { color: #ccc }
grid > div {
display: flex;
align-items: center;
justify-content: center;
}
grid > div:nth-child(-n+5) {
font-weight: bold;
font-size: larger;
text-decoration: underline;
}
.JesterBox div {
position: fixed;
z-index: 75;
visibility: hidden;
top: 2%; right: 2%; bottom: 2%; left: 2%;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.JesterBox div:before {
position: fixed;
z-index: 74;
content: "";
top: 0; right: 0; bottom: 0; left: 0;
background-color: rgba(0, 0, 0, 0);
transition: all 0.5s ease-out;
}
.JesterBox div img {
position: relative;
z-index: 77;
max-width: 100%;
max-height: 100%;
opacity: 0;
transition-property: all, opacity;
transition-duration: 0.5s, 0.2s;
transition-timing-function: ease-in-out, ease-out;
}
.JesterBox div:target { visibility: visible }
.JesterBox div:target:before { background-color: rgba(0, 0, 0, 0.7) }
.JesterBox div:target img { opacity: 1 }
%body( style="margin: 0; display: flex; flex-direction: column; font-family: Verdana, sans-serif; background-color: dimgray; color: white; text-align: center" )
%h1
S.T.A.L.K.E.R.: Shadow of Chernobyl
%br
autogenerated maps (EN, RU)
%div
light (#{`du -sh preview`.split.first}) version is
%a( href="stalker.htm" ) here
%div( style="display: flex; flex-direction: column" )
- [ |
%w{ Cordon 4 4 6 5 4 6 5 l01_escape }, |
%w{ Garbage 1 1 3 5 1 3 5 l02_garbage }, |
%w{ Agroprom 1 1 3 5 1 3 5 l03_agroprom }, |
%w{ Agroprom\ Underground 1 1 3 1 1 3 1 l03u_agr_underground }, |
%w{ Dark\ Valley 1 1 3 1 1 3 1 l04_darkvalley }, |
%w{ X-18 1 1 3 1 1 3 1 l04u_labx18 }, |
%w{ Bar 1 1 3 1 1 3 1 l05_bar }, |
%w{ Rostok 1 1 2 1 1 2 1 l06_rostok }, |
%w{ Military\ Warehouses 1 1 1 1 1 1 1 l07_military }, |
%w{ Yantar 1 1 1 1 1 1 1 l08_yantar }, |
%w{ X-16 1 1 1 1 1 1 1 l08u_brainlab }, |
%w{ Radar 1 1 1 1 1 1 1 l10_radar }, |
%w{ X-10 2 2 2 2 2 2 2 l10u_bunker }, |
%w{ Pripyat 1 1 1 1 1 1 1 l11_pripyat }, |
%w{ CNPP-1 1 1 1 1 1 1 1 l12_stancia }, |
%w{ CNPP-2 1 1 1 1 1 1 1 l12_stancia_2 }, |
%w{ Sarcofag-1 2 2 3 2 2 3 2 l12u_sarcofag }, |
%w{ Sarcofag-2 2 2 2 2 2 2 2 l12u_control_monolith }, |
].each_with_index do |(h, f1, f2, f3, f4, f5, f6, f7, t), i| |
- require "base64"; id = Base64::strict_encode64 h
- storage = "https://storage.yandexcloud.net/unversioned.www.nakilon.pro/"
- if t
%a( id=id class="JesterBox" href="##{id}" )
%div{ id: 1 + 7 * i }
%img( src="#{storage}stalker_v#{f1}/#{t}_mutants_eng.jpg" )
%div{ id: 2 + 7 * i }
%img( src="#{storage}stalker_v#{f2}/#{t}_anomalies.jpg" )
%div{ id: 3 + 7 * i }
%img( src="#{storage}stalker_v#{f3}/#{t}_npcs_eng.jpg" )
%div{ id: 4 + 7 * i }
%img( src="#{storage}stalker_v#{f4}/#{t}_artifacts_eng.jpg" )
%div{ id: 5 + 7 * i }
%img( src="#{storage}stalker_v#{f5}/#{t}_mutants_rus.jpg" )
%div{ id: 6 + 7 * i }
%img( src="#{storage}stalker_v#{f6}/#{t}_npcs_rus.jpg" )
%div{ id: 7 + 7 * i }
%img( src="#{storage}stalker_v#{f7}/#{t}_artifacts_rus.jpg" )
%div( style="display: flex" )
%grid
%h2= h
%div DANGEROUS MUTANTS
%div DEADLY ANOMALIES
%div ANARCHISTS AND BANDITS
%div ARTIFACTS
- if t
%a( href="##{1 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_mutants_eng.jpg" )
- else
%div TO DO
- if t
%a( href="##{2 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_anomalies.jpg" )
- else
%div TO DO
- if t
%a( href="##{3 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_npcs_eng.jpg" )
- else
%div TO DO
- if t
%a( href="##{4 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_artifacts_eng.jpg" )
- else
%div TO DO
- if t
%a( href="##{5 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_mutants_rus.jpg" )
- else
%div TO DO
%div
in fact there are no Russian names
%br
for anomalies in game files
- if t
%a( href="##{6 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_npcs_rus.jpg" )
- else
%div TO DO
- if t
%a( href="##{7 + 7 * i}" )
%img( src="#{storage}stalker_preview/#{t}_artifacts_rus.jpg" )
- else
%div TO DO