-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
260 lines (245 loc) · 7.96 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="index, follow">
<meta name="description" content="brdgm.me - Board Game Solo Apps">
<link rel="icon" type="image/svg+xml" href="resources/images/icon/favicon.svg" sizes="any">
<link rel="icon" href="resources/images/icon/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="resources/images/icon/apple-touch-icon.png">
<title>brdgm.me - Board Game Solo Apps</title>
<link href="resources/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/css/styles.css" rel="stylesheet">
<!-- Matomo Tracking: Cookie-less and GDPR-conformant -->
<script>
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.brdgm.me/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body>
<div class="container-fluid">
<div class="row flex-nowrap">
<!-- Sidebar -->
<div class="sidebar">
<div class="mb-auto text-center">
<a href="/" class="logo">
<img class="icon" src="resources/images/icon/sidebar-logo.svg" alt="">
<div class="title">brdgm.me</div>
</a>
<div class="menuOpener"></div>
<div class="sidebarLink active text-start">
<a href="/">Games</a>
</div>
<div class="sidebarLink text-start">
<a href="others.html">Others</a>
</div>
<div class="sidebarLink text-start">
<a href="about.html">About</a>
</div>
<div class="sidebarLink text-start">
<a href="https://ko-fi.com/brdgm_me" target="_blank">Donate</a>
</div>
<div class="sidebarLink text-start mb-3">
<a href="imprint.html">Imprint</a>
</div>
</div>
</div>
<div class="col p-0">
<!-- Header image -->
<div class="header shadow-sm">
<img src="resources/images/top-image.webp" alt="">
</div>
<!-- Content -->
<div class="container-fluid mt-3 mb-5 ps-3">
<h1>Board Game Solo Apps</h1>
<p>Web applications for playing board game's solo modes.</p>
<div id="game-cards"></div>
</div>
</div>
</div>
</div>
<script>
const games = [
{
name: "blitzkrieg",
title: "Blitzkrieg!",
languages: ["en", "de"]
},
{
name: "monumental",
title: "Monumental",
languages: ["en", "fr"]
},
{
name: "rurik",
title: "Rurik: Dawn of Kiev",
languages: ["en", "de"]
},
{
name: "ark-nova",
title: "Ark Nova",
languages: ["en", "de", "ca", "cn", "es", "fr", "it", "nl", "pl"]
},
{
name: "terra-mystica",
title: "Terra Mystica",
languages: ["en", "de"]
},
{
name: "stroganov",
title: "Stroganov",
languages: ["en", "de"]
},
{
name: "joan-of-arc-orleans",
title: "Joan of Arc: Orléans",
languages: ["it", "en", "de"]
},
{
name: "skymines",
title: "Skymines",
languages: ["en", "de", "ca", "fr"]
},
{
name: "weather-machine",
title: "Weather Machine",
languages: ["en", "de", "es", "fr", "pl"]
},
{
name: "autobahn",
title: "Autobahn",
languages: ["en", "de"]
},
{
name: "praga-caput-regni",
title: "Praga Caput Regni",
languages: ["en", "de"]
},
{
name: "ultimate-railroads",
title: "Ultimate Railroads",
languages: ["en", "de"]
},
{
name: "roll-for-the-galaxy",
title: "Roll for the Galaxy",
languages: ["it", "en", "de"]
},
{
name: "carnegie",
title: "Carnegie",
languages: ["en", "de"]
},
{
name: "fractal",
title: "Fractal",
languages: ["en", "fr"]
},
{
name: "welcome-to-the-moon",
title: "Welcome to the Moon",
languages: ["en", "de", "es", "fr", "ru"]
},
{
name: "gaia-project",
title: "Gaia Project",
languages: ["en", "de", "es", "fr", "it"]
},
{
name: "el-burro",
title: "El Burro",
languages: ["en", "de"]
},
{
name: "apiary",
title: "Apiary",
languages: ["en", "de"]
},
{
name: "barrage",
title: "Barrage",
languages: ["it", "en", "de"]
},
{
name: "age-of-innovation",
title: "Age of Innovation",
languages: ["es", "en", "de"]
},
{
name: "dinogenics",
title: "DinoGenics",
languages: ["en"]
},
{
name: "civolution",
title: "Civolution",
languages: ["en", "de"],
new: true
},
];
document.addEventListener("DOMContentLoaded", () => {
const container = document.querySelector("#game-cards");
games.sort((a, b) => a.title.localeCompare(b.title));
games.forEach(game => {
const card = document.createElement("div");
card.className = "card game-card shadow";
if (game.new) {
const ribbon = document.createElement("div");
ribbon.className = "ribbon";
ribbon.textContent = "NEW";
card.appendChild(ribbon);
}
const langDiv = document.createElement("div");
langDiv.className = "lang";
// sort languages, put en always first
game.languages.sort((a, b) => {
if (a === "en") return -1;
if (b === "en") return 1;
return a.localeCompare(b);
});
game.languages.forEach(lang => {
const badge = document.createElement("div");
badge.className = "badge";
badge.textContent = lang.toUpperCase();
langDiv.appendChild(badge);
});
card.appendChild(langDiv);
const link = document.createElement("a");
link.href = `https://brdgm.me/${game.name}`;
const img = document.createElement("img");
img.src = `resources/images/games/${game.name}.webp`;
img.className = "card-img-top";
img.alt = game.title;
link.appendChild(img);
card.appendChild(link);
const cardBody = document.createElement("div");
cardBody.className = "card-body";
const cardTitle = document.createElement("h5");
cardTitle.className = "card-title";
cardTitle.textContent = game.title;
cardBody.appendChild(cardTitle);
const playButton = document.createElement("a");
playButton.href = `https://brdgm.me/${game.name}`;
playButton.className = "btn btn-primary";
playButton.textContent = "Play Solo";
cardBody.appendChild(playButton);
card.appendChild(cardBody);
container.appendChild(card);
});
});
</script>
<script src="resources/js/bootstrap.bundle.min.js"></script>
<script src="resources/js/menu.js"></script>
</body>
</html>